Go to the documentation of this file. 24 #ifndef FOLLY_NO_CONFIG 28 #if __has_include(<features.h>) 32 #if defined(__GLIBC__) && !defined(__APPLE__) 33 #if __GLIBC_PREREQ(2, 9) 34 #define FOLLY_GLIBC_2_9 39 #ifdef FOLLY_GLIBC_2_9 40 #include <sys/eventfd.h> 44 #include <sys/syscall.h> 53 #define __NR_eventfd2 290 54 #elif defined(__i386__) 56 #define __NR_eventfd2 328 58 #error "Can't define __NR_eventfd2 for your architecture." 64 #define EFD_SEMAPHORE EFD_SEMAPHORE 66 #define EFD_CLOEXEC EFD_CLOEXEC 68 #define EFD_NONBLOCK EFD_NONBLOCK 74 #define eventfd(initval, flags) syscall(__NR_eventfd2, (initval), (flags))