• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/sigpoll_codes.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(POLL_IN) || (defined(HAVE_DECL_POLL_IN) && HAVE_DECL_POLL_IN)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((POLL_IN) == (1), "POLL_IN != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define POLL_IN 1
12 #endif
13 #if defined(POLL_OUT) || (defined(HAVE_DECL_POLL_OUT) && HAVE_DECL_POLL_OUT)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((POLL_OUT) == (2), "POLL_OUT != 2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define POLL_OUT 2
19 #endif
20 #if defined(POLL_MSG) || (defined(HAVE_DECL_POLL_MSG) && HAVE_DECL_POLL_MSG)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((POLL_MSG) == (3), "POLL_MSG != 3");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define POLL_MSG 3
26 #endif
27 #if defined(POLL_ERR) || (defined(HAVE_DECL_POLL_ERR) && HAVE_DECL_POLL_ERR)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((POLL_ERR) == (4), "POLL_ERR != 4");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define POLL_ERR 4
33 #endif
34 #if defined(POLL_PRI) || (defined(HAVE_DECL_POLL_PRI) && HAVE_DECL_POLL_PRI)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((POLL_PRI) == (5), "POLL_PRI != 5");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define POLL_PRI 5
40 #endif
41 #if defined(POLL_HUP) || (defined(HAVE_DECL_POLL_HUP) && HAVE_DECL_POLL_HUP)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((POLL_HUP) == (6), "POLL_HUP != 6");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define POLL_HUP 6
47 #endif
48 
49 #ifndef XLAT_MACROS_ONLY
50 
51 # ifdef IN_MPERS
52 
53 extern const struct xlat sigpoll_codes[];
54 
55 # else
56 
57 #  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
58 static
59 #  endif
60 const struct xlat sigpoll_codes[] = {
61  XLAT(POLL_IN),
62  XLAT(POLL_OUT),
63  XLAT(POLL_MSG),
64  XLAT(POLL_ERR),
65  XLAT(POLL_PRI),
66  XLAT(POLL_HUP),
67  XLAT_END
68 };
69 
70 # endif /* !IN_MPERS */
71 
72 #endif /* !XLAT_MACROS_ONLY */
73