Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
29f3202b731185d993a399f04d2f3e3f78db5a81
/
.
/
src
/
network
/
sockatmark.c
blob: f474551aafe44b15eb90fd19b37fef5696d6a3a1 [
file
] [
log
] [
blame
]
#include
<sys/socket.h>
#include
<sys/ioctl.h>
int
sockatmark
(
int
s
)
{
int
ret
;
if
(
ioctl
(
s
,
SIOCATMARK
,
&
ret
)
<
0
)
return
-
1
;
return
ret
;
}