Find Files
[Probes and S-expression]

Auxiliary find_files() function. More...

Files

file  findfile.h

Defines

#define MTAB_PATH   "/etc/mtab"
#define LOCAL_FILESYSTEMS   {"ext2", "ext3", "reiserfs", "xfs", NULL}

Functions

int find_files (SEXP_t *path, SEXP_t *filename, SEXP_t *behaviors, int(*cb)(const char *, const char *, void *arg), void *arg)
 Search the filesystem according to the specified path, filename and behaviors.

Detailed Description

Auxiliary find_files() function.


Function Documentation

int find_files ( SEXP_t path,
SEXP_t filename,
SEXP_t behaviors,
int(*)(const char *, const char *, void *arg)  cb,
void *  arg 
)

Search the filesystem according to the specified path, filename and behaviors.

For all paths and files that satisfy these requirements call the provided callback function.

Parameters:
path the requested path in a sexp form, which may specify the matching operation or a var_ref
filenam the requested filename in a sexp form, which may specify the matching operation or a var_ref
behaviors the behaviors may specify the recursion depth or direction
cb for each match, the callback function cb is called with first argument being the matched path and the second being the matched filename
arg an optional argument to the callback function

Generated on 24 Mar 2010 for Open SCAP Library by  doxygen 1.6.1