1 /* Generated by ./xlat/gen.sh from ./xlat/shm_flags.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(SHM_EXEC) || (defined(HAVE_DECL_SHM_EXEC) && HAVE_DECL_SHM_EXEC)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((SHM_EXEC) == (0100000), "SHM_EXEC != 0100000");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define SHM_EXEC 0100000
12 #endif
13 
14 #ifndef XLAT_MACROS_ONLY
15 
16 # ifdef IN_MPERS
17 
18 #  error static const struct xlat shm_flags in mpers mode
19 
20 # else
21 
22 static
23 const struct xlat shm_flags[] = {
24 #if defined(SHM_RDONLY) || (defined(HAVE_DECL_SHM_RDONLY) && HAVE_DECL_SHM_RDONLY)
25   XLAT(SHM_RDONLY),
26 #endif
27 #if defined(SHM_RND) || (defined(HAVE_DECL_SHM_RND) && HAVE_DECL_SHM_RND)
28   XLAT(SHM_RND),
29 #endif
30 #if defined(SHM_REMAP) || (defined(HAVE_DECL_SHM_REMAP) && HAVE_DECL_SHM_REMAP)
31   XLAT(SHM_REMAP),
32 #endif
33  XLAT(SHM_EXEC),
34  XLAT_END
35 };
36 
37 # endif /* !IN_MPERS */
38 
39 #endif /* !XLAT_MACROS_ONLY */
40