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

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

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

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

Functions

int __wrap_open (const char *pathname, int flags)
 

Detailed Description

Implementation of a mock function for open().

Function Documentation

◆ __wrap_open()

int __wrap_open ( const char *  pathname,
int  flags 
)

Mock function for open().

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