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

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

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

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

Go to the source code of this file.

Functions

int __wrap_scandir (const char *dirp, struct dirent ***namelist, int(*filter)(const struct dirent *), int(*compar)(const struct dirent **, const struct dirent **))
 

Detailed Description

Header declaring a mock function for scandir().

Function Documentation

◆ __wrap_scandir()

int __wrap_scandir ( const char *  dirp,
struct dirent ***  namelist,
int(*)(const struct dirent *)  filter,
int(*)(const struct dirent **, const struct dirent **)  compar 
)

Mock function for scandir().

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