blob: cf6ab896b0ecb448efe43ca8c689a4346178e5b0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#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;
}
|