fsx: increase number of logged operations
[xfstests-dev.git] / src / global.h
1 /*
2  * Copyright (c) 2000-2003 Silicon Graphics, Inc.
3  * All Rights Reserved.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it would be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write the Free Software Foundation,
16  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  */
18  
19 #ifndef GLOBAL_H
20 #define GLOBAL_H
21
22 #include <config.h>
23
24 #ifdef HAVE_XFS_XFS_H
25 #include <xfs/xfs.h>
26 #endif
27
28 #ifdef HAVE_XFS_LIBXFS_H
29 #include <xfs/libxfs.h>
30 #endif
31
32 #ifdef HAVE_XFS_JDM_H
33 #include <xfs/jdm.h>
34 #endif
35
36 #ifdef HAVE_ATTR_ATTRIBUTES_H
37 #include <attr/attributes.h>
38 #endif
39
40 #ifdef HAVE_SYS_TYPES_H
41 #include <sys/types.h>
42 #endif
43
44 #ifdef HAVE_SYS_STAT_H
45 #include <sys/stat.h>
46 #endif
47
48 #ifdef HAVE_SYS_STATVFS_H
49 #include <sys/statvfs.h>
50 #endif
51
52 #ifdef HAVE_SYS_TIME_H
53 #include <sys/time.h>
54 #endif
55
56 #ifdef HAVE_SYS_IOCTL_H
57 #include <sys/ioctl.h>
58 #endif
59
60 #ifdef HAVE_SYS_WAIT_H
61 #include <sys/wait.h>
62 #endif
63
64 #ifdef HAVE_MALLOC_H
65 #include <malloc.h>
66 #endif
67
68 #ifdef HAVE_DIRENT_H
69 #include <dirent.h>
70 #endif
71
72 #ifdef HAVE_STDLIB_H
73 #include <stdlib.h>
74 #endif
75
76 #ifdef HAVE_UNISTD_H
77 #include <unistd.h>
78 #endif
79
80 #ifdef HAVE_ERRNO_H
81 #include <errno.h>
82 #endif
83
84 #ifdef HAVE_STRING_H
85 #include <string.h>
86 #endif
87
88 #ifdef HAVE_SYS_FCNTL_H
89 #include <fcntl.h>
90 #endif
91
92 #ifdef HAVE_TIME_H
93 #include <sys/time.h>
94 #endif
95
96 #ifdef HAVE_WAIT_H
97 #include <sys/wait.h>
98 #endif
99
100 #ifdef HAVE_DIRENT_H
101 #include <dirent.h>
102 #endif
103
104 #ifdef HAVE_SYS_PARAM_H
105 #include <sys/param.h>
106 #endif
107
108 #ifdef HAVE_SYS_ATTRIBUTES_H
109 #include <sys/attributes.h>
110 #endif
111
112 #ifdef HAVE_LIBGEN_H
113 #include <libgen.h>
114 #endif
115
116 #ifdef HAVE_ASSERT_H
117 #include <assert.h>
118 #endif
119
120 #ifdef STDC_HEADERS
121 #include <signal.h>
122 #endif
123
124 #ifdef HAVE_STRINGS_H
125 #include <strings.h>
126 #endif
127
128 #ifdef HAVE_SYS_SYSSGI_H
129 #include <sys/syssgi.h>
130 #endif
131
132 #ifdef HAVE_SYS_UUID_H
133 #include <sys/uuid.h>
134 #endif
135
136 #ifdef HAVE_SYS_FS_XFS_FSOPS_H
137 #include <sys/fs/xfs_fsops.h>
138 #endif
139
140 #ifdef HAVE_SYS_FS_XFS_ITABLE_H
141 #include <sys/fs/xfs_itable.h>
142 #endif
143
144 #ifdef HAVE_BSTRING_H
145 #include <bstring.h>
146 #endif
147
148 #ifdef HAVE_SYS_PARAM_H
149 #include <sys/param.h>
150 #endif
151
152 #ifdef HAVE_LINUX_FALLOC_H
153 #include <linux/falloc.h>
154
155 #ifndef FALLOC_FL_KEEP_SIZE
156 #define FALLOC_FL_KEEP_SIZE             0x01
157 #endif
158
159 #ifndef FALLOC_FL_PUNCH_HOLE
160 #define FALLOC_FL_PUNCH_HOLE            0x02
161 #endif
162
163 #ifndef FALLOC_FL_NO_HIDE_STALE
164 #define FALLOC_FL_NO_HIDE_STALE         0x04
165 #endif
166
167 #ifndef FALLOC_FL_COLLAPSE_RANGE
168 #define FALLOC_FL_COLLAPSE_RANGE        0x08
169 #endif
170
171 #ifndef FALLOC_FL_ZERO_RANGE
172 #define FALLOC_FL_ZERO_RANGE            0x10
173 #endif
174
175 #endif /* HAVE_LINUX_FALLOC_H */
176
177 #endif /* GLOBAL_H */