1 2 3 4 5 6 7 8 9 10
#ifndef _CRABC_SYS_EVENTFD_H #define _CRABC_SYS_EVENTFD_H #include <stdint.h> #include <fcntl.h> int eventfd(unsigned int, int); #define EFD_CLOEXEC O_CLOEXEC #define EFD_NONBLOCK O_NONBLOCK #define EFD_SEMAPHORE 1 #endif