ttyenth.inc 876 B

123456789101112131415161718192021222324252627282930313233343536
  1. const
  2. _PATH_TTYS = '/etc/ttys';
  3. _TTYS_OFF = 'off';
  4. _TTYS_ON = 'on';
  5. _TTYS_SECURE = 'secure';
  6. _TTYS_WINDOW = 'window';
  7. type
  8. Pttyent = ^ttyent;
  9. ttyent = record
  10. ty_name : Pchar;
  11. ty_getty : Pchar;
  12. ty_type : Pchar;
  13. ty_status : longint;
  14. ty_window : Pchar;
  15. ty_comment : Pchar;
  16. end;
  17. const
  18. TTY_ON = $01;
  19. TTY_SECURE = $02;
  20. function getttyent:Pttyent;cdecl;external clib name 'getttyent';
  21. function getttynam(__tty:Pchar):Pttyent;cdecl;external clib name 'getttynam';
  22. function setttyent:longint;cdecl;external clib name 'setttyent';
  23. function endttyent:longint;cdecl;external clib name 'endttyent';
  24. { ---------------------------------------------------------------------
  25. Borland compatibility types
  26. ---------------------------------------------------------------------}
  27. Type
  28. TTtyEnt = ttyent;