projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
initial check-in, version 0.5.0
[oweals/musl.git]
/
src
/
network
/
sockatmark.c
1
#include <sys/socket.h>
2
#include <sys/ioctl.h>
3
#include "socketcall.h"
4
5
int sockatmark(int s)
6
{
7
int ret;
8
if (ioctl(s, SIOCATMARK, &ret) < 0)
9
return -1;
10
return ret;
11
}