1 /* Generated by ./xlat/gen.sh from ./xlat/wait4_options.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #ifndef WSTOPPED 7 #endif 8 #if defined(__WCLONE) || (defined(HAVE_DECL___WCLONE) && HAVE_DECL___WCLONE) 9 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 10 static_assert((__WCLONE) == (0x80000000), "__WCLONE != 0x80000000"); 11 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 12 #else 13 # define __WCLONE 0x80000000 14 #endif 15 #if defined(__WALL) || (defined(HAVE_DECL___WALL) && HAVE_DECL___WALL) 16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 17 static_assert((__WALL) == (0x40000000), "__WALL != 0x40000000"); 18 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 19 #else 20 # define __WALL 0x40000000 21 #endif 22 #if defined(__WNOTHREAD) || (defined(HAVE_DECL___WNOTHREAD) && HAVE_DECL___WNOTHREAD) 23 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 24 static_assert((__WNOTHREAD) == (0x20000000), "__WNOTHREAD != 0x20000000"); 25 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 26 #else 27 # define __WNOTHREAD 0x20000000 28 #endif 29 30 #ifndef XLAT_MACROS_ONLY 31 32 # ifdef IN_MPERS 33 34 # error static const struct xlat wait4_options in mpers mode 35 36 # else 37 38 static 39 const struct xlat wait4_options[] = { 40 #if defined(WNOHANG) || (defined(HAVE_DECL_WNOHANG) && HAVE_DECL_WNOHANG) 41 XLAT(WNOHANG), 42 #endif 43 #ifndef WSTOPPED 44 #if defined(WUNTRACED) || (defined(HAVE_DECL_WUNTRACED) && HAVE_DECL_WUNTRACED) 45 XLAT(WUNTRACED), 46 #endif 47 #endif 48 #if defined(WEXITED) || (defined(HAVE_DECL_WEXITED) && HAVE_DECL_WEXITED) 49 XLAT(WEXITED), 50 #endif 51 #if defined(WTRAPPED) || (defined(HAVE_DECL_WTRAPPED) && HAVE_DECL_WTRAPPED) 52 XLAT(WTRAPPED), 53 #endif 54 #if defined(WSTOPPED) || (defined(HAVE_DECL_WSTOPPED) && HAVE_DECL_WSTOPPED) 55 XLAT(WSTOPPED), 56 #endif 57 #if defined(WCONTINUED) || (defined(HAVE_DECL_WCONTINUED) && HAVE_DECL_WCONTINUED) 58 XLAT(WCONTINUED), 59 #endif 60 #if defined(WNOWAIT) || (defined(HAVE_DECL_WNOWAIT) && HAVE_DECL_WNOWAIT) 61 XLAT(WNOWAIT), 62 #endif 63 XLAT(__WCLONE), 64 XLAT(__WALL), 65 XLAT(__WNOTHREAD), 66 XLAT_END 67 }; 68 69 # endif /* !IN_MPERS */ 70 71 #endif /* !XLAT_MACROS_ONLY */ 72