Crinit -- Configurable Rootfs Init
Loading...
Searching...
No Matches
mock-getgrgid_r.h File Reference

(/usr/bin/git 2025-02-19, commit: 5f1bbfa)

Header declaring a mock function for getgrgid_r(). More...

#include <fcntl.h>
#include <grp.h>
#include <stddef.h>
#include <sys/stat.h>
Include dependency graph for mock-getgrgid_r.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int __wrap_getgrgid_r (gid_t gid, struct group *__restrict resultbuf, char *__restrict buffer, size_t buflen, struct group **__restrict result)
 

Detailed Description

Header declaring a mock function for getgrgid_r().

Function Documentation

◆ __wrap_getgrgid_r()

int __wrap_getgrgid_r ( gid_t  gid,
struct group *__restrict  resultbuf,
char *__restrict  buffer,
size_t  buflen,
struct group **__restrict  result 
)

Mock function for getgrgid_r().

Checks that the right parameters are given and return a preset value.