OSDN Git Service

(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git] / original / man2 / ioctl.2
index 5891d94..665c11e 100644 (file)
@@ -1,6 +1,7 @@
 .\" Copyright (c) 1980, 1991 Regents of the University of California.
 .\" All rights reserved.
 .\"
+.\" %%%LICENSE_START(BSD_4_CLAUSE_UCB)
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
 .\" are met:
@@ -28,6 +29,7 @@
 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
+.\" %%%LICENSE_END
 .\"
 .\"     @(#)ioctl.2    6.4 (Berkeley) 3/10/91
 .\"
 .\" Modified 1999-06-25 by Rachael Munns <vashti@dream.org.uk>
 .\" Modified 2000-09-21 by Andries Brouwer <aeb@cwi.nl>
 .\"
-.TH IOCTL 2 2000-09-21 "Linux" "Linux Programmer's Manual"
+.TH IOCTL 2 2013-11-08 "Linux" "Linux Programmer's Manual"
 .SH NAME
 ioctl \- control device
 .SH SYNOPSIS
 .B #include <sys/ioctl.h>
 .sp
-.BI "int ioctl(int " d ", int " request ", ...);"
+.BI "int ioctl(int " d ", 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
 The
 .BR ioctl ()
@@ -78,7 +82,7 @@ Macros and defines used in specifying an
 .I request
 are located in the file
 .IR <sys/ioctl.h> .
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 Usually, on success zero is returned.
 A few
 .BR ioctl ()
@@ -135,7 +139,7 @@ call has unwanted side effects, that can be avoided under Linux
 by giving it the
 .B O_NONBLOCK
 flag.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR execve (2),
 .BR fcntl (2),
 .BR ioctl_list (2),
@@ -143,3 +147,11 @@ flag.
 .\" .BR mt (4),
 .BR sd (4),
 .BR tty (4)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.