Crinit -- Configurable Rootfs Init
Loading...
Searching...
No Matches
mock-getgrnam_r.c File Reference

(/usr/bin/git 2025-03-27, commit: 72cdbda)

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"
Include dependency graph for mock-getgrnam_r.c:

Functions

int __wrap_getgrnam_r (const char *__restrict name, struct group *__restrict resultbuf, char *__restrict buffer, size_t buflen, struct group **__restrict result)
 

Detailed Description

Implementation of a mock function for getgrnam_r().

Function Documentation

◆ __wrap_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.