svn commit: r287996 - head/lib/libc/net

Jilles Tjoelker jilles at FreeBSD.org
Sat Sep 19 20:27:10 UTC 2015


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;
 }


More information about the svn-src-all mailing list