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