Crinit -- Configurable Rootfs Init
Loading...
Searching...
No Matches
mock-getpwuid_r.h File Reference

(/usr/bin/git 2025-02-19, commit: 5f1bbfa)

Header declaring a mock function for getpwuid_r(). More...

#include <fcntl.h>
#include <pwd.h>
#include <stddef.h>
#include <sys/stat.h>
Include dependency graph for mock-getpwuid_r.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int __wrap_getpwuid_r (uid_t uid, struct passwd *__restrict resultbuf, char *__restrict buffer, size_t buflen, struct passwd **__restrict result)
 

Detailed Description

Header declaring a mock function for getpwuid_r().

Function Documentation

◆ __wrap_getpwuid_r()

int __wrap_getpwuid_r ( uid_t  uid,
struct passwd *__restrict  resultbuf,
char *__restrict  buffer,
size_t  buflen,
struct passwd **__restrict  result 
)

Mock function for getpwuid_r().

Checks that the right parameters are given and return a preset value.