Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

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)