.th gtty IV 4/21/86
.sh NAME
gtty  -  get terminal status
.sh SYNOPSIS
gtty(fildes, arg)
.br
int arg[3];
.ft R
.sh DESCRIPTION
Gtty stores in the three words addressed by arg the status of the
terminal whose file descriptor is given in the first argument.  The
format is the same as that passed by stty.
.sh "SEE ALSO"
stty (IV)
.sh DIAGNOSTICS
Error bit (c-bit) is set if the file descriptor does not refer to a
terminal.  From C, a -1 value is returned for an error, 0, for a
successful call.
.sh KSOS
As the manipulation of terminal speeds (and parity) is an NKSR function
under KSOS, the terminal speed information returned by this call is
meaningless.
