summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/eventfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/eventfd.c')
-rw-r--r--libc/sysdeps/linux/common/eventfd.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/eventfd.c b/libc/sysdeps/linux/common/eventfd.c
new file mode 100644
index 000000000..cc3f3f0f7
--- /dev/null
+++ b/libc/sysdeps/linux/common/eventfd.c
@@ -0,0 +1,18 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * eventfd() for uClibc
+ *
+ * Copyright (C) 2011 Jean-Christian de Rivaz <jc@eclis.ch>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <sys/syscall.h>
+#include <sys/eventfd.h>
+
+/*
+ * eventfd()
+ */
+#ifdef __NR_eventfd
+_syscall2(int, eventfd, int, count, int, flags)
+#endif