Sign in
mojo
/
mojo-tools
/
ed4bdf2b045dcf76699eb5095f037df4b8750a28
/
.
/
fusl
/
src
/
network
/
sockatmark.c
blob: f474551aafe44b15eb90fd19b37fef5696d6a3a1 [
file
]
#include
<sys/socket.h>
#include
<sys/ioctl.h>
int
sockatmark
(
int
s
)
{
int
ret
;
if
(
ioctl
(
s
,
SIOCATMARK
,
&
ret
)
<
0
)
return
-
1
;
return
ret
;
}