OSDN Git Service

LDP: Update original to LDP v3.76
[linuxjm/LDP_man-pages.git] / original / man2 / ioctl.2
index 04c7400..cac7f10 100644 (file)
 .\" Modified 1999-06-25 by Rachael Munns <vashti@dream.org.uk>
 .\" Modified 2000-09-21 by Andries Brouwer <aeb@cwi.nl>
 .\"
-.TH IOCTL 2 2013-11-08 "Linux" "Linux Programmer's Manual"
+.TH IOCTL 2 2014-12-31 "Linux" "Linux Programmer's Manual"
 .SH NAME
 ioctl \- control device
 .SH SYNOPSIS
 .B #include <sys/ioctl.h>
 .sp
-.BI "int ioctl(int " d ", unsigned long " request ", ...);"
+.BI "int ioctl(int " fd ", unsigned long " request ", ...);"
 .\" POSIX says 'request' is int, but glibc has the above
 .\" See https://bugzilla.kernel.org/show_bug.cgi?id=42705
 .SH DESCRIPTION
@@ -56,7 +56,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.
@@ -94,7 +94,7 @@ is set appropriately.
 .SH ERRORS
 .TP 0.7i
 .B EBADF
-.I d
+.I fd
 is not a valid descriptor.
 .TP
 .B EFAULT
@@ -108,13 +108,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.
@@ -148,7 +148,7 @@ flag.
 .BR sd (4),
 .BR tty (4)
 .SH COLOPHON
-This page is part of release 3.75 of the Linux
+This page is part of release 3.76 of the Linux
 .I man-pages
 project.
 A description of the project,