1
0
mirror of https://github.com/fluencelabs/musl synced 2025-06-16 08:21:55 +00:00
Files
musl/src/linux/eventfd_read.c

8 lines
163 B
C
Raw Normal View History

#include <sys/eventfd.h>
#include <unistd.h>
int eventfd_read(int fd, eventfd_t *value)
{
return (sizeof(*value) == read(fd, value, sizeof(*value))) ? 0 : -1;
}