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