blob: 5328a8556f35977c7bb0f2f17dcc95940ba4cb29 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#include <sys/socket.h>
#include <sys/ioctl.h>
#include "socketcall.h"
int sockatmark(int s)
{
int ret;
if (ioctl(s, SIOCATMARK, &ret) < 0)
return -1;
return ret;
}
|