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