1 /* Generated by ./xlat/gen.sh from ./xlat/semctl_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(GETPID) || (defined(HAVE_DECL_GETPID) && HAVE_DECL_GETPID) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((GETPID) == (11), "GETPID != 11"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define GETPID 11 40 #endif 41 #if defined(GETVAL) || (defined(HAVE_DECL_GETVAL) && HAVE_DECL_GETVAL) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((GETVAL) == (12), "GETVAL != 12"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define GETVAL 12 47 #endif 48 #if defined(GETALL) || (defined(HAVE_DECL_GETALL) && HAVE_DECL_GETALL) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((GETALL) == (13), "GETALL != 13"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define GETALL 13 54 #endif 55 #if defined(GETNCNT) || (defined(HAVE_DECL_GETNCNT) && HAVE_DECL_GETNCNT) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((GETNCNT) == (14), "GETNCNT != 14"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define GETNCNT 14 61 #endif 62 #if defined(GETZCNT) || (defined(HAVE_DECL_GETZCNT) && HAVE_DECL_GETZCNT) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((GETZCNT) == (15), "GETZCNT != 15"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define GETZCNT 15 68 #endif 69 #if defined(SETVAL) || (defined(HAVE_DECL_SETVAL) && HAVE_DECL_SETVAL) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((SETVAL) == (16), "SETVAL != 16"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define SETVAL 16 75 #endif 76 #if defined(SETALL) || (defined(HAVE_DECL_SETALL) && HAVE_DECL_SETALL) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((SETALL) == (17), "SETALL != 17"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define SETALL 17 82 #endif 83 #if defined(SEM_STAT) || (defined(HAVE_DECL_SEM_STAT) && HAVE_DECL_SEM_STAT) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((SEM_STAT) == (18), "SEM_STAT != 18"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define SEM_STAT 18 89 #endif 90 #if defined(SEM_INFO) || (defined(HAVE_DECL_SEM_INFO) && HAVE_DECL_SEM_INFO) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((SEM_INFO) == (19), "SEM_INFO != 19"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define SEM_INFO 19 96 #endif 97 #if defined(SEM_STAT_ANY) || (defined(HAVE_DECL_SEM_STAT_ANY) && HAVE_DECL_SEM_STAT_ANY) 98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 99 static_assert((SEM_STAT_ANY) == (20), "SEM_STAT_ANY != 20"); 100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 101 #else 102 # define SEM_STAT_ANY 20 103 #endif 104 105 #ifndef XLAT_MACROS_ONLY 106 107 # ifdef IN_MPERS 108 109 # error static const struct xlat semctl_flags in mpers mode 110 111 # else 112 113 static 114 const struct xlat semctl_flags[] = { 115 116 XLAT(IPC_RMID), 117 XLAT(IPC_SET), 118 XLAT(IPC_STAT), 119 XLAT(IPC_INFO), 120 XLAT(GETPID), 121 XLAT(GETVAL), 122 XLAT(GETALL), 123 XLAT(GETNCNT), 124 XLAT(GETZCNT), 125 XLAT(SETVAL), 126 XLAT(SETALL), 127 XLAT(SEM_STAT), 128 XLAT(SEM_INFO), 129 XLAT(SEM_STAT_ANY), 130 XLAT_END 131 }; 132 133 # endif /* !IN_MPERS */ 134 135 #endif /* !XLAT_MACROS_ONLY */ 136