1
0

eventfd.h 404 B

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