Skip to contentSkip to conversation

Change the name of first ioctl arg to 'fd'.

PATCH New Sam Clegg 1 participant 1 message Aug 5, 2013 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

Sam Clegg

author
#0 lore raw

PATCH 1/1 Change the name of first ioctl arg to 'fd'.

I noticed this inconsistency between the ioctl man pages and the pages for all other FD accepting syscalls.

man2/ioctl.2 +6 -6
index 3d7a11c..d00e71a 100644
@@ -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.
Signature · 1 line
1.8.3