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

(/usr/bin/git 2023-11-27, commit: bad6102)

Implementation of a mock function for dirfd(). More...

#include "mock-dirfd.h"
#include "unit_test.h"
Include dependency graph for mock-dirfd.c:

Functions

int __wrap_dirfd (DIR *dirp)
 

Detailed Description

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