utmp.h 812 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef _UTMP_H
  2. #define _UTMP_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <utmpx.h>
  7. #define ACCOUNTING 9
  8. #define UT_NAMESIZE 32
  9. #define UT_HOSTSIZE 256
  10. struct lastlog {
  11. time_t ll_time;
  12. char ll_line[UT_LINESIZE];
  13. char ll_host[UT_HOSTSIZE];
  14. };
  15. #define ut_time ut_tv.tv_sec
  16. #define ut_name ut_user
  17. #define ut_exit __ut_exit
  18. #define e_termination __e_termination
  19. #define e_exit __e_exit
  20. #define utmp utmpx
  21. #define utmpname(x) (-1)
  22. void endutent(void);
  23. struct utmp *getutent(void);
  24. struct utmp *getutid(const struct utmp *);
  25. struct utmp *getutline(const struct utmp *);
  26. struct utmp *pututline(const struct utmp *);
  27. void setutent(void);
  28. void updwtmp(const char *, const struct utmp *);
  29. #define _PATH_UTMP "/dev/null"
  30. #define _PATH_WTMP "/dev/null"
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif