I noticed this inconsistency between the ioctl man pages and the pages for all other FD accepting syscalls.
diff --git a/man2/ioctl.2 b/man2/ioctl.2 index 3d7a11c..d00e71a 100644 --- a/man2/ioctl.2 +++ b/man2/ioctl.2 @@ -44,7 +44,7 @@ ioctl \- control device .SH SYNOPSIS .B #include <sys/ioctl.h> .sp -.BI "int ioctl(int " d ", int " request ", ...);" +.BI "int ioctl(int " fd ", int " request ", ...);" .SH DESCRIPTION The .BR ioctl () @@ -54,7 +54,7 @@ In particular, many operating characteristics of character special files .BR ioctl () requests. The argument -.I d +.I fd must be an open file descriptor. .PP The second argument is a device-dependent request code. @@ -92,8 +92,8 @@ is set appropriately. .SH ERRORS .TP 0.7i .B EBADF -.I d -is not a valid descriptor. +.I fd +is not a valid file descriptor. .TP .B EFAULT .I argp @@ -106,13 +106,13 @@ or is not valid. .TP .B ENOTTY -.I d +.I fd is not associated with a character special device. .TP .B ENOTTY The specified request does not apply to the kind of object that the descriptor -.I d +.I fd references. .SH CONFORMING TO No single standard. -- 1.8.3