Annotation of 43BSDTahoe/man/man2/ioctl.2, revision 1.1

1.1     ! root        1: .\" Copyright (c) 1980 Regents of the University of California.
        !             2: .\" All rights reserved.  The Berkeley software License Agreement
        !             3: .\" specifies the terms and conditions for redistribution.
        !             4: .\"
        !             5: .\"    @(#)ioctl.2     6.3 (Berkeley) 3/4/86
        !             6: .\"
        !             7: .TH IOCTL 2 "March 4, 1986"
        !             8: .UC 4
        !             9: .SH NAME
        !            10: ioctl \- control device
        !            11: .SH SYNOPSIS
        !            12: .nf
        !            13: .ft B
        !            14: #include <sys/ioctl.h>
        !            15: .PP
        !            16: .ft B
        !            17: ioctl(d, request, argp)
        !            18: int d;
        !            19: unsigned long request;
        !            20: char *argp;
        !            21: .fi
        !            22: .ft R
        !            23: .SH DESCRIPTION
        !            24: .I Ioctl
        !            25: performs a variety of functions
        !            26: on open descriptors.  In particular, many operating
        !            27: characteristics of character special files (e.g. terminals)
        !            28: may be controlled with
        !            29: .I ioctl
        !            30: requests.
        !            31: The writeups of various devices in section 4 discuss how
        !            32: .I ioctl
        !            33: applies to them.
        !            34: .PP
        !            35: An  ioctl
        !            36: .I request
        !            37: has encoded in it whether the argument is an \*(lqin\*(rq parameter
        !            38: or \*(lqout\*(rq parameter, and the size of the argument \fIargp\fP in bytes.
        !            39: Macros and defines used in specifying an ioctl
        !            40: .I request
        !            41: are located in the file
        !            42: .IR <sys/ioctl.h> .
        !            43: .SH "RETURN VALUE
        !            44: If an error has occurred, a value of \-1 is returned and
        !            45: .I errno
        !            46: is set to indicate the error.
        !            47: .SH ERRORS
        !            48: .I Ioctl
        !            49: will fail if one or more of the following are true:
        !            50: .TP 15
        !            51: [EBADF]
        !            52: \fID\fP is not a valid descriptor.
        !            53: .TP 15
        !            54: [ENOTTY]
        !            55: \fID\fP is not associated with a character
        !            56: special device.
        !            57: .TP 15
        !            58: [ENOTTY]
        !            59: The specified request does not apply to the kind
        !            60: of object that the descriptor \fId\fP references.
        !            61: .TP 15
        !            62: [EINVAL]
        !            63: \fIRequest\fP or \fIargp\fP is not valid.
        !            64: .SH "SEE ALSO"
        !            65: execve(2), fcntl(2), mt(4), tty(4), intro(4N)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.