GTTY(II) − PWB/UNIX 8/5/73
NAME
gtty − get typewriter status
SYNOPSIS
(gtty = 32.)
(file descriptor in r0)
sys gtty; arg
arg: .=.+6 gtty(fildes, arg)
int arg[3];
DESCRIPTION
Gtty stores in the three words addressed by 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 stty.
SEE ALSO
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.