1 /* Generated by ./xlat/gen.sh from ./xlat/sigev_value.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(SIGEV_SIGNAL) || (defined(HAVE_DECL_SIGEV_SIGNAL) && HAVE_DECL_SIGEV_SIGNAL)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((SIGEV_SIGNAL) == (0), "SIGEV_SIGNAL != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define SIGEV_SIGNAL 0
12 #endif
13 #if defined(SIGEV_NONE) || (defined(HAVE_DECL_SIGEV_NONE) && HAVE_DECL_SIGEV_NONE)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((SIGEV_NONE) == (1), "SIGEV_NONE != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define SIGEV_NONE 1
19 #endif
20 #if defined(SIGEV_THREAD) || (defined(HAVE_DECL_SIGEV_THREAD) && HAVE_DECL_SIGEV_THREAD)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((SIGEV_THREAD) == (2), "SIGEV_THREAD != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define SIGEV_THREAD 2
26 #endif
27 #if defined(SIGEV_THREAD_ID) || (defined(HAVE_DECL_SIGEV_THREAD_ID) && HAVE_DECL_SIGEV_THREAD_ID)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((SIGEV_THREAD_ID) == (4), "SIGEV_THREAD_ID != 4");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define SIGEV_THREAD_ID 4
33 #endif
34 
35 #ifndef XLAT_MACROS_ONLY
36 
37 # ifdef IN_MPERS
38 
39 extern const struct xlat sigev_value[];
40 
41 # else
42 
43 #  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
44 static
45 #  endif
46 const struct xlat sigev_value[] = {
47  XLAT(SIGEV_SIGNAL),
48  XLAT(SIGEV_NONE),
49  XLAT(SIGEV_THREAD),
50  XLAT(SIGEV_THREAD_ID),
51  XLAT_END
52 };
53 
54 # endif /* !IN_MPERS */
55 
56 #endif /* !XLAT_MACROS_ONLY */
57