new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / headers / fs_op.h
1 /* @(#) $Id: ./src/headers/dirtree_op.h, 2011/09/08 dcid Exp $
2  */
3
4 /* Copyright (C) 2014 Trend Micro Inc.
5  * All rights reserved.
6  *
7  * This program is a free software; you can redistribute it
8  * and/or modify it under the terms of the GNU General Public
9  * License (version 2) as published by the FSF - Free Software
10  * Foundation.
11  *
12  * License details at the LICENSE file included with OSSEC or
13  * online at: http://www.ossec.net/en/licensing.html
14  */
15
16 /* Common API for dealing with file system information */
17
18
19 #ifndef _OS_FS
20 #define _OS_FS
21
22 #ifndef WIN32
23
24 #ifdef Linux
25 #include <sys/vfs.h>
26 #endif
27
28 #ifdef FreeBSD
29 #include <sys/param.h>
30 #include <sys/mount.h>
31 #endif
32
33 #endif
34
35 struct file_system_type {
36     const char *name;
37 #ifdef WIN32
38     const unsigned __int32 f_type;
39 #else
40     const uint32_t f_type;
41 #endif
42     const int flag;
43 };
44
45 extern const struct file_system_type network_file_systems[];
46
47 short IsNFS(const char *file)  __attribute__((nonnull));
48 short skipFS(const char *file)  __attribute__((nonnull));
49
50 #endif
51
52 /* EOF */