1
0

utmp.h 599 B

1234567891011121314151617181920212223242526272829303132
  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. #define _PATH_UTMP "/dev/null"
  21. #define _PATH_WTMP "/dev/null"
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif