Go to the documentation of this file.
36 #include "oscap_export.h"
38 #if defined(__linux__) || defined(_AIX)
fsdev_t * fsdev_init(void)
Initialize the fsdev_t structure from an array of filesystem names.
Definition: fsdev.c:289
int fsdev_search(fsdev_t *lfs, void *id)
Search an id in the fsdev_t structure.
Definition: fsdev.c:321
int fsdev_path(fsdev_t *lfs, const char *path)
Check whether a path points points to a place on any of the devices in the fsdev_t structure.
Definition: fsdev.c:347
uint16_t cnt
Number of items in the array.
Definition: fsdev.h:47
Filesystem device structure.
Definition: fsdev.h:45
int fsdev_fd(fsdev_t *lfs, int fd)
Check whether a file descriptor is associated with a file that resides on any of the devices in the f...
Definition: fsdev.c:357
void fsdev_free(fsdev_t *lfs)
Free the fsdev_t structure.
Definition: fsdev.c:312
dev_t * ids
Sorted array of device ids
Definition: fsdev.h:46