1 /* Generated by ./xlat/gen.sh from ./xlat/efd_flags.in; do not edit. */ 2 #if !(defined(EFD_SEMAPHORE) || (defined(HAVE_DECL_EFD_SEMAPHORE) && HAVE_DECL_EFD_SEMAPHORE)) 3 # define EFD_SEMAPHORE 1 4 #endif 5 #if defined EFD_CLOEXEC || defined O_CLOEXEC 6 #if !(defined(EFD_CLOEXEC) || (defined(HAVE_DECL_EFD_CLOEXEC) && HAVE_DECL_EFD_CLOEXEC)) 7 # define EFD_CLOEXEC O_CLOEXEC 8 #endif 9 #endif 10 #if !(defined(EFD_NONBLOCK) || (defined(HAVE_DECL_EFD_NONBLOCK) && HAVE_DECL_EFD_NONBLOCK)) 11 # define EFD_NONBLOCK O_NONBLOCK 12 #endif 13 14 #ifdef IN_MPERS 15 16 # error static const struct xlat efd_flags in mpers mode 17 18 #else 19 20 static 21 const struct xlat efd_flags[] = { 22 XLAT(EFD_SEMAPHORE), 23 #if defined EFD_CLOEXEC || defined O_CLOEXEC 24 XLAT(EFD_CLOEXEC), 25 #endif 26 XLAT(EFD_NONBLOCK), 27 XLAT_END 28 }; 29 30 #endif /* !IN_MPERS */ 31