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

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

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

Functions

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

Detailed Description

Implementation of 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.