ioctl
¶Removed in POSIX.1-2024.
POSIX.1-2017 specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/ioctl.html
LSB specification:
Portability problems fixed by Gnulib:
ioctl
is called
ioctlsocket
, and error codes from this function are not placed in
errno
, and WSAGetLastError
must be used instead.
unsigned long
rather than int
on some platforms:
glibc 2.26, macOS 14, FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.5, Haiku 2017.
Portability problems not fixed by Gnulib:
ioctl
requests are platform and hardware specific.