1 /* Generated by ./xlat/gen.sh from ./xlat/ipccalls.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(SEMOP) || (defined(HAVE_DECL_SEMOP) && HAVE_DECL_SEMOP) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((SEMOP) == (1), "SEMOP != 1"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define SEMOP 1 12 #endif 13 #if defined(SEMGET) || (defined(HAVE_DECL_SEMGET) && HAVE_DECL_SEMGET) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((SEMGET) == (2), "SEMGET != 2"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define SEMGET 2 19 #endif 20 #if defined(SEMCTL) || (defined(HAVE_DECL_SEMCTL) && HAVE_DECL_SEMCTL) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((SEMCTL) == (3), "SEMCTL != 3"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define SEMCTL 3 26 #endif 27 #if defined(SEMTIMEDOP) || (defined(HAVE_DECL_SEMTIMEDOP) && HAVE_DECL_SEMTIMEDOP) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((SEMTIMEDOP) == (4), "SEMTIMEDOP != 4"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define SEMTIMEDOP 4 33 #endif 34 #if defined(MSGSND) || (defined(HAVE_DECL_MSGSND) && HAVE_DECL_MSGSND) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((MSGSND) == (11), "MSGSND != 11"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define MSGSND 11 40 #endif 41 #if defined(MSGRCV) || (defined(HAVE_DECL_MSGRCV) && HAVE_DECL_MSGRCV) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((MSGRCV) == (12), "MSGRCV != 12"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define MSGRCV 12 47 #endif 48 #if defined(MSGGET) || (defined(HAVE_DECL_MSGGET) && HAVE_DECL_MSGGET) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((MSGGET) == (13), "MSGGET != 13"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define MSGGET 13 54 #endif 55 #if defined(MSGCTL) || (defined(HAVE_DECL_MSGCTL) && HAVE_DECL_MSGCTL) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((MSGCTL) == (14), "MSGCTL != 14"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define MSGCTL 14 61 #endif 62 #if defined(SHMAT) || (defined(HAVE_DECL_SHMAT) && HAVE_DECL_SHMAT) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((SHMAT) == (21), "SHMAT != 21"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define SHMAT 21 68 #endif 69 #if defined(SHMDT) || (defined(HAVE_DECL_SHMDT) && HAVE_DECL_SHMDT) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((SHMDT) == (22), "SHMDT != 22"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define SHMDT 22 75 #endif 76 #if defined(SHMGET) || (defined(HAVE_DECL_SHMGET) && HAVE_DECL_SHMGET) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((SHMGET) == (23), "SHMGET != 23"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define SHMGET 23 82 #endif 83 #if defined(SHMCTL) || (defined(HAVE_DECL_SHMCTL) && HAVE_DECL_SHMCTL) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((SHMCTL) == (24), "SHMCTL != 24"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define SHMCTL 24 89 #endif 90 91 #ifndef XLAT_MACROS_ONLY 92 93 # ifdef IN_MPERS 94 95 # error static const struct xlat ipccalls in mpers mode 96 97 # else 98 99 static 100 const struct xlat ipccalls[] = { 101 XLAT(SEMOP), 102 XLAT(SEMGET), 103 XLAT(SEMCTL), 104 XLAT(SEMTIMEDOP), 105 XLAT(MSGSND), 106 XLAT(MSGRCV), 107 XLAT(MSGGET), 108 XLAT(MSGCTL), 109 XLAT(SHMAT), 110 XLAT(SHMDT), 111 XLAT(SHMGET), 112 XLAT(SHMCTL), 113 XLAT_END 114 }; 115 116 # endif /* !IN_MPERS */ 117 118 #endif /* !XLAT_MACROS_ONLY */ 119