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

(/usr/bin/git 2025-09-19, commit: 507e44b6)

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

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

Functions

int __wrap_openat (int dirfd, const char *pathname, int flags)
 

Detailed Description

Implementation of a mock function for openat().

Function Documentation

◆ __wrap_openat()

int __wrap_openat ( int  dirfd,
const char *  pathname,
int  flags 
)

Mock function for openat().

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