* [patch] Change the name of first ioctl arg to 'fd'.
@ 2013-08-05 19:36 Sam Clegg
0 siblings, 0 replies; only message in thread
From: Sam Clegg @ 2013-08-05 19:36 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
linux-man-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 108 bytes --]
I noticed this inconsistency between the ioctl man pages and the pages
for all other FD accepting syscalls.
[-- Attachment #2: 0001-Change-the-name-of-first-ioctl-arg-from-d-to-fd.patch --]
[-- Type: text/x-patch, Size: 1041 bytes --]
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-05 19:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-05 19:36 [patch] Change the name of first ioctl arg to 'fd' Sam Clegg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).