summaryrefslogtreecommitdiff
path: root/lib/libc/sys/eventfd_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/eventfd_read.c')
-rw-r--r--lib/libc/sys/eventfd_read.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/libc/sys/eventfd_read.c b/lib/libc/sys/eventfd_read.c
deleted file mode 100644
index 78d73623..00000000
--- a/lib/libc/sys/eventfd_read.c
+++ /dev/null
@@ -1,8 +0,0 @@
-#include <sys/eventfd.h>
-#include <syscall.h>
-#include <unistd.h>
-
-int eventfd_read(int fildes, eventfd_t *value)
-{
- return (sizeof(*value) == read(fildes, value, sizeof(*value))) ? 0 : -1;
-}