Open SCAP Library
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
fsdev.h File Reference

fsdev header file More...

#include <stddef.h>
#include <stdint.h>
#include <sys/stat.h>
#include "oscap_export.h"
Include dependency graph for fsdev.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  fsdev_t
 Filesystem device structure. More...
 

Functions

fsdev_tfsdev_init (void)
 Initialize the fsdev_t structure from an array of filesystem names.
 
void fsdev_free (fsdev_t *lfs)
 Free the fsdev_t structure.
 
int fsdev_search (fsdev_t *lfs, void *id)
 Search an id in the fsdev_t structure.
 
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.
 
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 fsdev_t structure.
 

Detailed Description

fsdev header file

Author
"Daniel Kopecek" dkope.nosp@m.cek@.nosp@m.redha.nosp@m.t.co.nosp@m.m

Function Documentation

◆ fsdev_fd()

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 fsdev_t structure.

Parameters
lfspointer to the fsdev_t structure
fdfile descriptor
Return values
1if found
0otherwise
-1error

◆ fsdev_path()

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.

Parameters
lfspointer to the fsdev_t structure
pathpath
Return values
1if found
0otherwise
-1error