1 /* Generated by ./xlat/gen.sh from ./xlat/epollflags.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined EPOLL_CLOEXEC || defined O_CLOEXEC 7 #if defined(EPOLL_CLOEXEC) || (defined(HAVE_DECL_EPOLL_CLOEXEC) && HAVE_DECL_EPOLL_CLOEXEC) 8 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 9 static_assert((EPOLL_CLOEXEC) == (O_CLOEXEC), "EPOLL_CLOEXEC != O_CLOEXEC"); 10 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 11 #else 12 # define EPOLL_CLOEXEC O_CLOEXEC 13 #endif 14 #endif 15 16 #ifndef XLAT_MACROS_ONLY 17 18 # ifdef IN_MPERS 19 20 # error static const struct xlat epollflags in mpers mode 21 22 # else 23 24 static 25 const struct xlat epollflags[] = { 26 #if defined EPOLL_CLOEXEC || defined O_CLOEXEC 27 XLAT(EPOLL_CLOEXEC), 28 #endif 29 XLAT_END 30 }; 31 32 # endif /* !IN_MPERS */ 33 34 #endif /* !XLAT_MACROS_ONLY */ 35