blob: 6841880052aaf0bc58e725160834328f2d649852 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <sys/socket.h>
#include <sys/ioctl.h>
int sockatmark(int s)
{
int ret;
if (ioctl(s, SIOCATMARK, &ret) < 0)
return -1;
return ret;
}
#ifdef TEST
int
main(void) {
return 0;
}
#endif
|