Date: Sat, 19 Sep 2015 20:27:09 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287996 - head/lib/libc/net Message-ID: <201509192027.t8JKR9ZY081918@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509192027.t8JKR9ZY081918>