blob: 92045454e42fd494e215971ed65d793322ab18df (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include <asm-generic/sockios.h> // for SIOCATMARK
#include <syscall.h> // for __syscall_3, syscall
int sockatmark(int s)
{
int arg = 0;
return syscall(ioctl, s, SIOCATMARK, &arg) < 0 ? -1 : arg;
}
|