• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/inotify_init_flags.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(IN_NONBLOCK) || (defined(HAVE_DECL_IN_NONBLOCK) && HAVE_DECL_IN_NONBLOCK)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((IN_NONBLOCK) == (O_NONBLOCK), "IN_NONBLOCK != O_NONBLOCK");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define IN_NONBLOCK O_NONBLOCK
12 #endif
13 #if defined IN_CLOEXEC || defined O_CLOEXEC
14 #if defined(IN_CLOEXEC) || (defined(HAVE_DECL_IN_CLOEXEC) && HAVE_DECL_IN_CLOEXEC)
15 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
16 static_assert((IN_CLOEXEC) == (O_CLOEXEC), "IN_CLOEXEC != O_CLOEXEC");
17 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
18 #else
19 # define IN_CLOEXEC O_CLOEXEC
20 #endif
21 #endif
22 
23 #ifndef XLAT_MACROS_ONLY
24 
25 # ifdef IN_MPERS
26 
27 #  error static const struct xlat inotify_init_flags in mpers mode
28 
29 # else
30 
31 static
32 const struct xlat inotify_init_flags[] = {
33  XLAT(IN_NONBLOCK),
34 #if defined IN_CLOEXEC || defined O_CLOEXEC
35  XLAT(IN_CLOEXEC),
36 #endif
37  XLAT_END
38 };
39 
40 # endif /* !IN_MPERS */
41 
42 #endif /* !XLAT_MACROS_ONLY */
43