butmpxh.inc 946 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. const
  2. _PATH_UTMPX = _PATH_UTMP;
  3. _PATH_WTMPX = _PATH_WTMP;
  4. const
  5. __UT_LINESIZE = 32;
  6. __UT_NAMESIZE = 32;
  7. __UT_HOSTSIZE = 256;
  8. type
  9. P__exit_status = ^__exit_status;
  10. __exit_status = record
  11. e_termination : smallint;
  12. e_exit : smallint;
  13. end;
  14. Putmpx = ^utmpx;
  15. utmpx = record
  16. ut_type : smallint;
  17. ut_pid : __pid_t;
  18. ut_line : array[0..(__UT_LINESIZE)-1] of char;
  19. ut_id : array[0..3] of char;
  20. ut_user : array[0..(__UT_NAMESIZE)-1] of char;
  21. ut_host : array[0..(__UT_HOSTSIZE)-1] of char;
  22. ut_exit : __exit_status;
  23. ut_session : longint;
  24. ut_tv : timeval;
  25. ut_addr_v6 : array[0..3] of __int32_t;
  26. __unused : array[0..19] of char;
  27. end;
  28. { ---------------------------------------------------------------------
  29. Borland compatibility types
  30. ---------------------------------------------------------------------}
  31. Type
  32. TUserTmpX = utmpx;
  33. PUserTmpX = ^TUserTmpX;