summaryrefslogtreecommitdiff
path: root/src/network/sockatmark.c
blob: f474551aafe44b15eb90fd19b37fef5696d6a3a1 (plain)
1
2
3
4
5
6
7
8
9
10
#include <sys/socket.h>
#include <sys/ioctl.h>

int sockatmark(int s)
{
	int ret;
	if (ioctl(s, SIOCATMARK, &ret) < 0)
		return -1;
	return ret;
}