utmp.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _UTMP_H
  2. #include <login/utmp.h>
  3. # ifndef _ISOMAC
  4. /* Now define the internal interfaces. */
  5. extern void __updwtmp (const char *__wtmp_file, const struct utmp *__utmp);
  6. libc_hidden_proto (__updwtmp)
  7. extern int __utmpname (const char *__file);
  8. libc_hidden_proto (__utmpname)
  9. extern struct utmp *__getutent (void);
  10. libc_hidden_proto (__getutent)
  11. extern void __setutent (void);
  12. libc_hidden_proto (__setutent)
  13. extern void __endutent (void);
  14. libc_hidden_proto (__endutent)
  15. extern struct utmp *__getutid (const struct utmp *__id);
  16. libc_hidden_proto (__getutid)
  17. extern struct utmp *__getutline (const struct utmp *__line);
  18. libc_hidden_proto (__getutline)
  19. extern struct utmp *__pututline (const struct utmp *__utmp_ptr);
  20. libc_hidden_proto (__pututline)
  21. extern int __getutent_r (struct utmp *__buffer, struct utmp **__result);
  22. libc_hidden_proto (__getutent_r)
  23. extern int __getutid_r (const struct utmp *__id, struct utmp *__buffer,
  24. struct utmp **__result);
  25. libc_hidden_proto (__getutid_r)
  26. extern int __getutline_r (const struct utmp *__line,
  27. struct utmp *__buffer, struct utmp **__result);
  28. libc_hidden_proto (__getutline_r)
  29. libc_hidden_proto (login)
  30. libc_hidden_proto (login_tty)
  31. libc_hidden_proto (logout)
  32. libc_hidden_proto (logwtmp)
  33. # endif /* !_ISOMAC */
  34. #endif