libc: Consistently call _ioctl() internally, not ioctl().
This commit is contained in:
parent
99e4638821
commit
1c0046d792
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user