utmp.h 718 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #define ut_time ut_tv.tv_sec
  11. #define ut_name ut_user
  12. #define ut_exit __ut_exit
  13. #define e_termination __e_termination
  14. #define e_exit __e_exit
  15. #define utmp utmpx
  16. #define utmpname(x) (-1)
  17. void endutent(void);
  18. struct utmp *getutent(void);
  19. struct utmp *getutid(const struct utmp *);
  20. struct utmp *getutline(const struct utmp *);
  21. struct utmp *pututline(const struct utmp *);
  22. void setutent(void);
  23. void updwtmp(const char *, const struct utmp *);
  24. #define _PATH_UTMP "/dev/null"
  25. #define _PATH_WTMP "/dev/null"
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif