Open SCAP Library
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
src
OVAL
probes
public
findfile.h
Go to the documentation of this file.
1
8
/*
9
* Copyright 2009 Red Hat Inc., Durham, North Carolina.
10
* All Rights Reserved.
11
*
12
* This library is free software; you can redistribute it and/or
13
* modify it under the terms of the GNU Lesser General Public
14
* License as published by the Free Software Foundation; either
15
* version 2.1 of the License, or (at your option) any later version.
16
*
17
* This library is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
* Lesser General Public License for more details.
21
*
22
* You should have received a copy of the GNU Lesser General Public
23
* License along with this library; if not, write to the Free Software
24
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
*
26
* Authors:
27
* Peter Vrabec <pvrabec@redhat.com>
28
*/
29
30
#ifndef FINDFILE_H
31
#define FINDFILE_H
32
33
#include "seap.h"
34
#include "
probe-api.h
"
35
#include "
fsdev.h
"
36
37
#define MTAB_PATH "/etc/mtab"
38
#define LOCAL_FILESYSTEMS { "btrfs", \
39
"ext2", "ext3", "ext4", \
40
"ffs", \
41
"gfs", \
42
"hpfs", \
43
"jfs", \
44
"reiser4", "reiserfs", \
45
"ufs", \
46
"xfs", \
47
"zfs", NULL}
48
58
int
find_files
(
SEXP_t
*spath,
SEXP_t
*sfilename,
SEXP_t
*behaviors,
59
int
(*cb) (
const
char
*,
const
char
*,
void
*),
void
*arg);
60
61
#endif
62
fsdev.h
fsdev API public header file
find_files
int find_files(SEXP_t *spath, SEXP_t *sfilename, SEXP_t *behaviors, int(*cb)(const char *, const char *, void *), void *arg)
Search the filesystem according to the specified path, filename and behaviors.
Definition:
findfile.c:85
SEXP
Definition:
sexp-types.h:82
probe-api.h
Probe API public header.
Generated by
1.8.5