1 /* Generated by ./xlat/gen.sh from ./xlat/msgctl_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(MSG_STAT) || (defined(HAVE_DECL_MSG_STAT) && HAVE_DECL_MSG_STAT) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((MSG_STAT) == (11), "MSG_STAT != 11"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define MSG_STAT 11 40 #endif 41 #if defined(MSG_INFO) || (defined(HAVE_DECL_MSG_INFO) && HAVE_DECL_MSG_INFO) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((MSG_INFO) == (12), "MSG_INFO != 12"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define MSG_INFO 12 47 #endif 48 #if defined(MSG_STAT_ANY) || (defined(HAVE_DECL_MSG_STAT_ANY) && HAVE_DECL_MSG_STAT_ANY) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((MSG_STAT_ANY) == (13), "MSG_STAT_ANY != 13"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define MSG_STAT_ANY 13 54 #endif 55 56 #ifndef XLAT_MACROS_ONLY 57 58 # ifdef IN_MPERS 59 60 extern const struct xlat msgctl_flags[]; 61 62 # else 63 64 # if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS) 65 static 66 # endif 67 const struct xlat msgctl_flags[] = { 68 69 XLAT(IPC_RMID), 70 XLAT(IPC_SET), 71 XLAT(IPC_STAT), 72 XLAT(IPC_INFO), 73 XLAT(MSG_STAT), 74 XLAT(MSG_INFO), 75 XLAT(MSG_STAT_ANY), 76 XLAT_END 77 }; 78 79 # endif /* !IN_MPERS */ 80 81 #endif /* !XLAT_MACROS_ONLY */ 82