1 /* Generated by ./xlat/gen.sh from ./xlat/shmctl_flags.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(IPC_RMID) || (defined(HAVE_DECL_IPC_RMID) && HAVE_DECL_IPC_RMID)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((IPC_RMID) == (0), "IPC_RMID != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define IPC_RMID 0
12 #endif
13 #if defined(IPC_SET) || (defined(HAVE_DECL_IPC_SET) && HAVE_DECL_IPC_SET)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((IPC_SET) == (1), "IPC_SET != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define IPC_SET 1
19 #endif
20 #if defined(IPC_STAT) || (defined(HAVE_DECL_IPC_STAT) && HAVE_DECL_IPC_STAT)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((IPC_STAT) == (2), "IPC_STAT != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define IPC_STAT 2
26 #endif
27 #if defined(IPC_INFO) || (defined(HAVE_DECL_IPC_INFO) && HAVE_DECL_IPC_INFO)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((IPC_INFO) == (3), "IPC_INFO != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define IPC_INFO 3
33 #endif
34 #if defined(SHM_LOCK) || (defined(HAVE_DECL_SHM_LOCK) && HAVE_DECL_SHM_LOCK)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((SHM_LOCK) == (11), "SHM_LOCK != 11");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define SHM_LOCK 11
40 #endif
41 #if defined(SHM_UNLOCK) || (defined(HAVE_DECL_SHM_UNLOCK) && HAVE_DECL_SHM_UNLOCK)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((SHM_UNLOCK) == (12), "SHM_UNLOCK != 12");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define SHM_UNLOCK 12
47 #endif
48 #if defined(SHM_STAT) || (defined(HAVE_DECL_SHM_STAT) && HAVE_DECL_SHM_STAT)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((SHM_STAT) == (13), "SHM_STAT != 13");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define SHM_STAT 13
54 #endif
55 #if defined(SHM_INFO) || (defined(HAVE_DECL_SHM_INFO) && HAVE_DECL_SHM_INFO)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((SHM_INFO) == (14), "SHM_INFO != 14");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define SHM_INFO 14
61 #endif
62 #if defined(SHM_STAT_ANY) || (defined(HAVE_DECL_SHM_STAT_ANY) && HAVE_DECL_SHM_STAT_ANY)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((SHM_STAT_ANY) == (15), "SHM_STAT_ANY != 15");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define SHM_STAT_ANY 15
68 #endif
69 
70 #ifndef XLAT_MACROS_ONLY
71 
72 # ifdef IN_MPERS
73 
74 extern const struct xlat shmctl_flags[];
75 
76 # else
77 
78 #  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
79 static
80 #  endif
81 const struct xlat shmctl_flags[] = {
82 
83  XLAT(IPC_RMID),
84  XLAT(IPC_SET),
85  XLAT(IPC_STAT),
86  XLAT(IPC_INFO),
87  XLAT(SHM_LOCK),
88  XLAT(SHM_UNLOCK),
89  XLAT(SHM_STAT),
90  XLAT(SHM_INFO),
91  XLAT(SHM_STAT_ANY),
92  XLAT_END
93 };
94 
95 # endif /* !IN_MPERS */
96 
97 #endif /* !XLAT_MACROS_ONLY */
98