home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man2 / gtty.2 < prev    next >
Encoding:
Text File  |  1975-06-26  |  630 b   |  38 lines

  1. .th GTTY II 8/5/73
  2. .sh NAME
  3. gtty  \*-  get typewriter status
  4. .sh SYNOPSIS
  5. (gtty = 32.)
  6. .br
  7. (file descriptor in r0)
  8. .ft B
  9. .br
  10. sys gtty; arg
  11. .br
  12. .li
  13. ...
  14. .br
  15. arg: .=.+6
  16. .s3
  17. gtty(fildes, arg)
  18. .br
  19. int arg[3];
  20. .ft R
  21. .sh DESCRIPTION
  22. .it Gtty
  23. stores in the three words addressed by
  24. .it arg
  25. the status
  26. of the typewriter whose file descriptor is given in r0
  27. (resp. given as the first argument).
  28. The format is the same as that passed by
  29. .it stty.
  30. .sh "SEE ALSO"
  31. stty (II)
  32. .sh DIAGNOSTICS
  33. Error bit
  34. (c-bit) is set if the file descriptor does not refer
  35. to a typewriter.
  36. From C, a \*-1 value is returned for an
  37. error, 0, for a successful call.
  38.