(2023-10-16, commit: 49337e0)
#include <stdbool.h>
Go to the source code of this file.
◆ crinitStatFilter()
bool crinitStatFilter |
( |
const char * |
name, |
|
|
int |
baseDirFd, |
|
|
bool |
followLinks |
|
) |
| |
Filters out everything that is not a regular file (or a symlink to it, depending on settings).
- Parameters
-
name | Filename of the file to be fed to the filter. |
baseDirFd | Opened file descriptor of the directory, the file in question resides. |
followLinks | If symbolic links should be followed to its destination before filtering (true) or generally filtered out (false). |
- Returns
- true if name refers to a regular file, false if not.
◆ crinitStatFilterTestFstatatFail()
void crinitStatFilterTestFstatatFail |
( |
void ** |
state | ) |
|
◆ crinitStatFilterTestSisregFail()
void crinitStatFilterTestSisregFail |
( |
void ** |
state | ) |
|
◆ crinitStatFilterTestSuccess()
void crinitStatFilterTestSuccess |
( |
void ** |
state | ) |
|