Annotation of cci/usr/src/man/man3/stty.3c, revision 1.1

1.1     ! root        1: .TH STTY 3C "1 April 1983"
        !             2: .UC 4
        !             3: .SH NAME
        !             4: stty, gtty \- set and get terminal state (defunct)
        !             5: .SH SYNOPSIS
        !             6: .nf
        !             7: .B #include <sgtty.h>
        !             8: .sp
        !             9: .B stty(fd, buf)
        !            10: .B int fd;
        !            11: .B struct sgttyb *buf;
        !            12: .sp
        !            13: .B gtty(fd, buf)
        !            14: .B int fd;
        !            15: .B struct sgttyb *buf;
        !            16: .fi
        !            17: .SH DESCRIPTION
        !            18: .ft B
        !            19: This interface is obsoleted by ioctl(2).
        !            20: .ft R
        !            21: .PP
        !            22: .I Stty
        !            23: sets the state of the terminal associated with
        !            24: .IR fd .
        !            25: .I Gtty
        !            26: retrieves the state of the terminal associated
        !            27: with
        !            28: .IR fd .
        !            29: To set the state of a terminal the call must have
        !            30: write permission.
        !            31: .PP
        !            32: The
        !            33: .I stty
        !            34: call is actually ``ioctl(fd, TIOCSETP, buf)'', while
        !            35: the
        !            36: .I gtty
        !            37: call is ``ioctl(fd, TIOCGETP, buf)''.
        !            38: See 
        !            39: .IR ioctl (2)
        !            40: and
        !            41: .IR tty (4)
        !            42: for an explanation.
        !            43: .SH DIAGNOSTICS
        !            44: If the call is successful 0 is returned, otherwise \-1 is
        !            45: returned and the global variable
        !            46: .I errno
        !            47: contains the reason for the failure.
        !            48: .SH SEE ALSO
        !            49: ioctl(2),
        !            50: tty(4)

unix.superglobalmegacorp.com

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