mirror of
https://github.com/fluencelabs/musl
synced 2025-05-30 08:01:38 +00:00
8 lines
163 B
C
8 lines
163 B
C
#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;
|
|
}
|