about summary refs log tree commit diff
path: root/src/linux/eventfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/eventfd.c')
-rw-r--r--src/linux/eventfd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/linux/eventfd.c b/src/linux/eventfd.c
new file mode 100644
index 00000000..cb39a7ba
--- /dev/null
+++ b/src/linux/eventfd.c
@@ -0,0 +1,7 @@
+#include <sys/eventfd.h>
+#include "syscall.h"
+
+int eventfd(unsigned int count, int flags)
+{
+	return syscall(flags ? SYS_eventfd2 : SYS_eventfd, count, flags);
+}