.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" %sccs.include.redist.man%
.\" @(#)ioctl.2 8.1 (Berkeley) %G%
.Fd #include <sys/ioctl.h>
.Fn ioctl "int d" "unsigned long request" "char *argp"
function manipulates the underlying device parameters of special files.
In particular, many operating
characteristics of character special files (e.g. terminals)
must be an open file descriptor.
has encoded in it whether the argument is an
parameter, and the size of the argument
Macros and defines used in specifying an ioctl
If an error has occurred, a value of -1 is returned and
is set to indicate the error.
is not a valid descriptor.
is not associated with a character
The specified request does not apply to the kind
of object that the descriptor
function call appeared in Version 7 AT&T UNIX.