Unix |
Unix v6 |
|
![]() |
gtty(2) |
![]() |
gtty get typewriter status (gtty = 32.)
(file descriptor in r0)
sys gtty; arg
arg: .=.+6 gtty(fildes, arg)
int arg[3]; stores in the three words addressed by 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 (II) 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.
![]() |
gtty(2) | ![]() |