1
0

utmp.h 649 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _UTMP_H
  2. #define _UTMP_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <utmpx.h>
  7. #define ut_time ut_tv.tv_sec
  8. #define ut_name ut_user
  9. #define ut_exit __ut_exit
  10. #define e_termination __e_termination
  11. #define e_exit __e_exit
  12. #define utmp utmpx
  13. #define utmpname(x) (-1)
  14. void endutent(void);
  15. struct utmp *getutent(void);
  16. struct utmp *getutid(const struct utmp *);
  17. struct utmp *getutline(const struct utmp *);
  18. struct utmp *pututline(const struct utmp *);
  19. void setutent(void);
  20. void updwtmp(const char *, const struct utmp *);
  21. #define _PATH_UTMP "/dev/null"
  22. #define _PATH_WTMP "/dev/null"
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif