logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

eventfd.h (404B)


  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 */