File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / man / man3 / stty.3c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
Power 6/32 Unix version 1.2b

.TH STTY 3C "1 April 1983"
.UC 4
.SH NAME
stty, gtty \- set and get terminal state (defunct)
.SH SYNOPSIS
.nf
.B #include <sgtty.h>
.sp
.B stty(fd, buf)
.B int fd;
.B struct sgttyb *buf;
.sp
.B gtty(fd, buf)
.B int fd;
.B struct sgttyb *buf;
.fi
.SH DESCRIPTION
.ft B
This interface is obsoleted by ioctl(2).
.ft R
.PP
.I Stty
sets the state of the terminal associated with
.IR fd .
.I Gtty
retrieves the state of the terminal associated
with
.IR fd .
To set the state of a terminal the call must have
write permission.
.PP
The
.I stty
call is actually ``ioctl(fd, TIOCSETP, buf)'', while
the
.I gtty
call is ``ioctl(fd, TIOCGETP, buf)''.
See 
.IR ioctl (2)
and
.IR tty (4)
for an explanation.
.SH DIAGNOSTICS
If the call is successful 0 is returned, otherwise \-1 is
returned and the global variable
.I errno
contains the reason for the failure.
.SH SEE ALSO
ioctl(2),
tty(4)

unix.superglobalmegacorp.com

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