summaryrefslogtreecommitdiff
path: root/include/sys/eventfd.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-26 13:00:58 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-26 13:00:58 -0500
commitb4d8a16c1afde1d06e1d46f22f5fab2cda408122 (patch)
tree166e8762fd4bd8a4be9757a8af01ec46472f1337 /include/sys/eventfd.h
parent56c6943efed41adad6b3c11b2992628a5b0f1d27 (diff)
downloadmusl-b4d8a16c1afde1d06e1d46f22f5fab2cda408122.tar.gz
fix eventfd and inotify nonblock/cloexec flags to match arch values
Diffstat (limited to 'include/sys/eventfd.h')
-rw-r--r--include/sys/eventfd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sys/eventfd.h b/include/sys/eventfd.h
index 13bc9c4c..dc5c88f0 100644
--- a/include/sys/eventfd.h
+++ b/include/sys/eventfd.h
@@ -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 *);