summaryrefslogtreecommitdiff
path: root/lib/libc/sys/eventfd_read.c
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-15 18:44:07 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-15 18:44:07 +0100
commit01cf24ec66c663e3f40be1d5c703aa9666effc85 (patch)
tree9e5bed524b013ee2609d7e5f1282eaa96eec404c /lib/libc/sys/eventfd_read.c
parent6f6c027a90fba09f06ea0937b57cfd349661620e (diff)
Add inotify and reorganize eventfd and io_uring syscalls
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;
-}