V6/usr/man/man2/gtty.2

Find at most related files.
including files from this version of Unix.

.th GTTY II 8/5/73
.sh NAME
gtty  \*-  get typewriter status
.sh SYNOPSIS
(gtty = 32.)
.br
(file descriptor in r0)
.ft B
.br
sys gtty; arg
.br
.li
...
.br
arg: .=.+6
.s3
gtty(fildes, arg)
.br
int arg[3];
.ft R
.sh DESCRIPTION
.it Gtty
stores in the three words addressed by
.it arg
the status
of the typewriter whose file descriptor is given in r0
(resp. given as the first argument).
The format is the same as that passed by
.it stty.
.sh "SEE ALSO"
stty (II)
.sh DIAGNOSTICS
Error bit
(c-bit) is set if the file descriptor does not refer
to a typewriter.
From C, a \*-1 value is returned for an
error, 0, for a successful call.