Crinit -- Configurable Rootfs Init
mock-dirfd.h File Reference

(2023-10-16, commit: 49337e0)

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

#include <dirent.h>
#include <sys/types.h>
Include dependency graph for mock-dirfd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int __wrap_dirfd (DIR *dirp)
 

Detailed Description

Header declaring a mock function for dirfd().

Function Documentation

◆ __wrap_dirfd()

int __wrap_dirfd ( DIR *  dirp)

Mock function for dirfd().

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