1
0

sockatmark.c 147 B

12345678910
  1. #include <sys/socket.h>
  2. #include <sys/ioctl.h>
  3. int sockatmark(int s)
  4. {
  5. int ret;
  6. if (ioctl(s, SIOCATMARK, &ret) < 0)
  7. return -1;
  8. return ret;
  9. }