proxygen
EventFDWrapper.h File Reference
#include <folly/folly-config.h>
#include <fcntl.h>
#include <sys/syscall.h>
#include <unistd.h>

Go to the source code of this file.

Macros

#define EFD_SEMAPHORE   EFD_SEMAPHORE
 
#define EFD_CLOEXEC   EFD_CLOEXEC
 
#define EFD_NONBLOCK   EFD_NONBLOCK
 
#define eventfd(initval, flags)   syscall(__NR_eventfd2, (initval), (flags))
 

Enumerations

enum  {
  EFD_SEMAPHORE = 1, EFD_SEMAPHORE = 1, EFD_CLOEXEC = 02000000, EFD_CLOEXEC = 02000000,
  EFD_NONBLOCK
}
 

Macro Definition Documentation

#define EFD_CLOEXEC   EFD_CLOEXEC

Definition at line 66 of file EventFDWrapper.h.

#define EFD_NONBLOCK   EFD_NONBLOCK
#define EFD_SEMAPHORE   EFD_SEMAPHORE

Definition at line 64 of file EventFDWrapper.h.

#define eventfd (   initval,
  flags 
)    syscall(__NR_eventfd2, (initval), (flags))

Enumeration Type Documentation

anonymous enum

Work around the lack of <sys/eventfd.h> on glibc 2.5.1 which we still need to support, sigh.

Enumerator
EFD_SEMAPHORE 
EFD_SEMAPHORE 
EFD_CLOEXEC 
EFD_CLOEXEC 
EFD_NONBLOCK 

Definition at line 62 of file EventFDWrapper.h.

62  {
63  EFD_SEMAPHORE = 1,
64 #define EFD_SEMAPHORE EFD_SEMAPHORE
65  EFD_CLOEXEC = 02000000,
66 #define EFD_CLOEXEC EFD_CLOEXEC
67  EFD_NONBLOCK = 04000
68 #define EFD_NONBLOCK EFD_NONBLOCK
69 };
#define EFD_SEMAPHORE
#define EFD_CLOEXEC
#define EFD_NONBLOCK