Crinit -- Configurable Rootfs Init
|
Implementation of a mock function for getgrnam_r(). More...
#include "mock-getgrnam_r.h"
#include <string.h>
#include <sys/types.h>
#include "common.h"
#include "unit_test.h"
Functions | |
int | __wrap_getgrnam_r (const char *__restrict name, struct group *__restrict resultbuf, char *__restrict buffer, size_t buflen, struct group **__restrict result) |
Implementation of a mock function for getgrnam_r().
int __wrap_getgrnam_r | ( | const char *__restrict | name, |
struct group *__restrict | resultbuf, | ||
char *__restrict | buffer, | ||
size_t | buflen, | ||
struct group **__restrict | result | ||
) |
Mock function for getgrnam_r().
Checks that the right parameters are given and return a preset value.