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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* Generated by ./xlat/gen.sh from ./xlat/sigpoll_codes.in; do not edit. */
 
#include "gcc_compat.h"
#include "static_assert.h"
 
#if defined(POLL_IN) || (defined(HAVE_DECL_POLL_IN) && HAVE_DECL_POLL_IN)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((POLL_IN) == (1), "POLL_IN != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define POLL_IN 1
#endif
#if defined(POLL_OUT) || (defined(HAVE_DECL_POLL_OUT) && HAVE_DECL_POLL_OUT)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((POLL_OUT) == (2), "POLL_OUT != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define POLL_OUT 2
#endif
#if defined(POLL_MSG) || (defined(HAVE_DECL_POLL_MSG) && HAVE_DECL_POLL_MSG)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((POLL_MSG) == (3), "POLL_MSG != 3");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define POLL_MSG 3
#endif
#if defined(POLL_ERR) || (defined(HAVE_DECL_POLL_ERR) && HAVE_DECL_POLL_ERR)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((POLL_ERR) == (4), "POLL_ERR != 4");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define POLL_ERR 4
#endif
#if defined(POLL_PRI) || (defined(HAVE_DECL_POLL_PRI) && HAVE_DECL_POLL_PRI)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((POLL_PRI) == (5), "POLL_PRI != 5");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define POLL_PRI 5
#endif
#if defined(POLL_HUP) || (defined(HAVE_DECL_POLL_HUP) && HAVE_DECL_POLL_HUP)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((POLL_HUP) == (6), "POLL_HUP != 6");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define POLL_HUP 6
#endif
 
#ifndef XLAT_MACROS_ONLY
 
# ifdef IN_MPERS
 
extern const struct xlat sigpoll_codes[];
 
# else
 
#  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
static
#  endif
const struct xlat sigpoll_codes[] = {
 XLAT(POLL_IN),
 XLAT(POLL_OUT),
 XLAT(POLL_MSG),
 XLAT(POLL_ERR),
 XLAT(POLL_PRI),
 XLAT(POLL_HUP),
 XLAT_END
};
 
# endif /* !IN_MPERS */
 
#endif /* !XLAT_MACROS_ONLY */