overlay/071: Don't compare inode numbers in lower overlay and nested overlay
[xfstests-dev.git] / src / global.h
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (c) 2000-2003 Silicon Graphics, Inc.
4  * All Rights Reserved.
5  */
6  
7 #ifndef GLOBAL_H
8 #define GLOBAL_H
9
10 #include <config.h>
11
12 #ifdef HAVE_XFS_XFS_H
13 #include <xfs/xfs.h>
14 #endif
15
16 #ifdef HAVE_XFS_LIBXFS_H
17 #include <xfs/libxfs.h>
18 #endif
19
20 #ifdef HAVE_XFS_JDM_H
21 #include <xfs/jdm.h>
22 #endif
23
24 #ifdef HAVE_ATTR_ATTRIBUTES_H
25 #include <attr/attributes.h>
26 #endif
27
28 #ifdef HAVE_SYS_TYPES_H
29 #include <sys/types.h>
30 #endif
31
32 #ifdef HAVE_SYS_STAT_H
33 #include <sys/stat.h>
34 #endif
35
36 #ifdef HAVE_SYS_STATVFS_H
37 #include <sys/statvfs.h>
38 #endif
39
40 #ifdef HAVE_SYS_TIME_H
41 #include <sys/time.h>
42 #endif
43
44 #ifdef HAVE_SYS_IOCTL_H
45 #include <sys/ioctl.h>
46 #endif
47
48 #ifdef HAVE_SYS_WAIT_H
49 #include <sys/wait.h>
50 #endif
51
52 #ifdef HAVE_MALLOC_H
53 #include <malloc.h>
54 #endif
55
56 #ifdef HAVE_DIRENT_H
57 #include <dirent.h>
58 #endif
59
60 #ifdef HAVE_STDLIB_H
61 #include <stdlib.h>
62 #endif
63
64 #ifdef HAVE_UNISTD_H
65 #include <unistd.h>
66 #endif
67
68 #ifdef HAVE_ERRNO_H
69 #include <errno.h>
70 #endif
71
72 #ifdef HAVE_STRING_H
73 #include <string.h>
74 #endif
75
76 #ifdef HAVE_SYS_FCNTL_H
77 #include <fcntl.h>
78 #endif
79
80 #ifdef HAVE_TIME_H
81 #include <sys/time.h>
82 #endif
83
84 #ifdef HAVE_WAIT_H
85 #include <sys/wait.h>
86 #endif
87
88 #ifdef HAVE_DIRENT_H
89 #include <dirent.h>
90 #endif
91
92 #ifdef HAVE_SYS_PARAM_H
93 #include <sys/param.h>
94 #endif
95
96 #ifdef HAVE_SYS_ATTRIBUTES_H
97 #include <sys/attributes.h>
98 #endif
99
100 #ifdef HAVE_LIBGEN_H
101 #include <libgen.h>
102 #endif
103
104 #ifdef HAVE_ASSERT_H
105 #include <assert.h>
106 #endif
107
108 #ifdef STDC_HEADERS
109 #include <signal.h>
110 #include <stdint.h>
111 #endif
112
113 #ifdef HAVE_STRINGS_H
114 #include <strings.h>
115 #endif
116
117 #ifdef HAVE_SYS_SYSSGI_H
118 #include <sys/syssgi.h>
119 #endif
120
121 #ifdef HAVE_SYS_UUID_H
122 #include <sys/uuid.h>
123 #endif
124
125 #ifdef HAVE_SYS_FS_XFS_FSOPS_H
126 #include <sys/fs/xfs_fsops.h>
127 #endif
128
129 #ifdef HAVE_SYS_FS_XFS_ITABLE_H
130 #include <sys/fs/xfs_itable.h>
131 #endif
132
133 #ifdef HAVE_BSTRING_H
134 #include <bstring.h>
135 #endif
136
137 #ifdef HAVE_SYS_PARAM_H
138 #include <sys/param.h>
139 #endif
140
141 #ifdef HAVE_LINUX_FALLOC_H
142 #include <linux/falloc.h>
143
144 #ifndef FALLOC_FL_KEEP_SIZE
145 #define FALLOC_FL_KEEP_SIZE             0x01
146 #endif
147
148 #ifndef FALLOC_FL_PUNCH_HOLE
149 #define FALLOC_FL_PUNCH_HOLE            0x02
150 #endif
151
152 #ifndef FALLOC_FL_NO_HIDE_STALE
153 #define FALLOC_FL_NO_HIDE_STALE         0x04
154 #endif
155
156 #ifndef FALLOC_FL_COLLAPSE_RANGE
157 #define FALLOC_FL_COLLAPSE_RANGE        0x08
158 #endif
159
160 #ifndef FALLOC_FL_ZERO_RANGE
161 #define FALLOC_FL_ZERO_RANGE            0x10
162 #endif
163
164 #ifndef FALLOC_FL_INSERT_RANGE
165 #define FALLOC_FL_INSERT_RANGE          0x20
166 #endif
167
168 #endif /* HAVE_LINUX_FALLOC_H */
169
170 #ifdef HAVE_SYS_MMAN_H
171 #include <sys/mman.h>
172 #endif
173
174 #endif /* GLOBAL_H */