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