.\" 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:
.\" 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 ()
.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 ()
by giving it the
.B O_NONBLOCK
flag.
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR execve (2),
.BR fcntl (2),
.BR ioctl_list (2),
.\" .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/.