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

This commit is contained in:
Jilles Tjoelker 2015-09-19 20:27:09 +00:00
parent 99e4638821
commit 1c0046d792

View File

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