diff options
author | jilles <jilles@FreeBSD.org> | 2015-09-19 20:27:09 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2015-09-19 20:27:09 +0000 |
commit | b76aba50082143fbcb47fa56a6c70fbbb604965a (patch) | |
tree | ff1ffc729f2e0150480b62bc476de99a55819645 | |
parent | 50393939f12c136c7be5d47493637924d53a5e1a (diff) | |
download | FreeBSD-src-b76aba50082143fbcb47fa56a6c70fbbb604965a.zip FreeBSD-src-b76aba50082143fbcb47fa56a6c70fbbb604965a.tar.gz |
libc: Consistently call _ioctl() internally, not ioctl().
-rw-r--r-- | lib/libc/net/sockatmark.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/net/sockatmark.c b/lib/libc/net/sockatmark.c index e416de8..ea32fe3 100644 --- a/lib/libc/net/sockatmark.c +++ b/lib/libc/net/sockatmark.c @@ -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; } |