1#pragma once 2 3#ifdef __cplusplus 4extern "C" { 5#endif 6 7#include <fcntl.h> 8#include <stdint.h> 9 10typedef uint64_t eventfd_t; 11 12#define EFD_SEMAPHORE 1 13#define EFD_CLOEXEC O_CLOEXEC 14#define EFD_NONBLOCK O_NONBLOCK 15 16int eventfd(unsigned int, int); 17int eventfd_read(int, eventfd_t*); 18int eventfd_write(int, eventfd_t); 19 20#ifdef __cplusplus 21} 22#endif 23