Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
780aede41913528781bbc8ff0d0e27505595f7c0
/
.
/
src
/
linux
/
eventfd_read.c
blob: 969e661594eba60974dbcca7f8b034869376ef3a [
file
] [
log
] [
blame
]
#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
;
}