Crinit -- Configurable Rootfs Init
|
Implementation of a mock function for getgrgid_r(). More...
#include "mock-getgrgid_r.h"
#include <string.h>
#include <sys/types.h>
#include "common.h"
#include "unit_test.h"
Functions | |
int | __wrap_getgrgid_r (gid_t gid, struct group *__restrict resultbuf, char *__restrict buffer, size_t buflen, struct group **__restrict result) |
Implementation of a mock function for 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.