1 /* Generated by ./xlat/gen.sh from ./xlat/epollctls.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(EPOLL_CTL_ADD) || (defined(HAVE_DECL_EPOLL_CTL_ADD) && HAVE_DECL_EPOLL_CTL_ADD)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((EPOLL_CTL_ADD) == (1), "EPOLL_CTL_ADD != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define EPOLL_CTL_ADD 1
12 #endif
13 #if defined(EPOLL_CTL_DEL) || (defined(HAVE_DECL_EPOLL_CTL_DEL) && HAVE_DECL_EPOLL_CTL_DEL)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((EPOLL_CTL_DEL) == (2), "EPOLL_CTL_DEL != 2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define EPOLL_CTL_DEL 2
19 #endif
20 #if defined(EPOLL_CTL_MOD) || (defined(HAVE_DECL_EPOLL_CTL_MOD) && HAVE_DECL_EPOLL_CTL_MOD)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((EPOLL_CTL_MOD) == (3), "EPOLL_CTL_MOD != 3");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define EPOLL_CTL_MOD 3
26 #endif
27 
28 #ifndef XLAT_MACROS_ONLY
29 
30 # ifdef IN_MPERS
31 
32 #  error static const struct xlat epollctls in mpers mode
33 
34 # else
35 
36 static
37 const struct xlat epollctls[] = {
38  XLAT(EPOLL_CTL_ADD),
39  XLAT(EPOLL_CTL_DEL),
40  XLAT(EPOLL_CTL_MOD),
41  XLAT_END
42 };
43 
44 # endif /* !IN_MPERS */
45 
46 #endif /* !XLAT_MACROS_ONLY */
47