Sign in
mojo
/
mojo-tools
/
73e948c3cd78ca019b82d8ad10c2326e3920fffc
/
.
/
fusl
/
src
/
network
/
sockatmark.c
blob: 48512c137b7c8a6d742a9107d24b6cb45b89a305 [
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
;
}