Author: jilles
Date: Sat Sep 19 20:27:09 2015
New Revision: 287996
URL: https://svnweb.freebsd.org/changeset/base/287996

Log:
  libc: Consistently call _ioctl() internally, not ioctl().

Modified:
  head/lib/libc/net/sockatmark.c

Modified: head/lib/libc/net/sockatmark.c
==============================================================================
--- head/lib/libc/net/sockatmark.c      Sat Sep 19 20:12:53 2015        
(r287995)
+++ head/lib/libc/net/sockatmark.c      Sat Sep 19 20:27:09 2015        
(r287996)
@@ -24,13 +24,15 @@
  *
  * $FreeBSD$
  */
+#include "namespace.h"
 #include <sys/ioctl.h>
+#include "un-namespace.h"
 
 int sockatmark(int s)
 {
        int atmark;
 
-       if (ioctl(s, SIOCATMARK, &atmark) == -1)
+       if (_ioctl(s, SIOCATMARK, &atmark) == -1)
                return -1;
        return atmark;
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to