fix eventfd and inotify nonblock/cloexec flags to match arch values
This commit is contained in:
parent
56c6943efe
commit
b4d8a16c1a
2 changed files with 6 additions and 4 deletions
|
|
@ -6,12 +6,13 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
typedef uint64_t eventfd_t;
|
||||
|
||||
#define EFD_SEMAPHORE 1
|
||||
#define EFD_CLOEXEC 02000000
|
||||
#define EFD_NONBLOCK 04000
|
||||
#define EFD_CLOEXEC O_CLOEXEC
|
||||
#define EFD_NONBLOCK O_NONBLOCK
|
||||
|
||||
int eventfd(unsigned int, int);
|
||||
int eventfd_read(int, eventfd_t *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue