utmpx.c 805 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #include <utmpx.h>
  2. #include <stddef.h>
  3. #include <errno.h>
  4. #include "libc.h"
  5. void endutxent(void)
  6. {
  7. }
  8. void setutxent(void)
  9. {
  10. }
  11. struct utmpx *getutxent(void)
  12. {
  13. return NULL;
  14. }
  15. struct utmpx *getutxid(const struct utmpx *ut)
  16. {
  17. return NULL;
  18. }
  19. struct utmpx *getutxline(const struct utmpx *ut)
  20. {
  21. return NULL;
  22. }
  23. struct utmpx *pututxline(const struct utmpx *ut)
  24. {
  25. return NULL;
  26. }
  27. void updwtmpx(const char *f, const struct utmpx *u)
  28. {
  29. }
  30. int __utmpxname(const char *f)
  31. {
  32. errno = ENOTSUP;
  33. return -1;
  34. }
  35. weak_alias(endutxent, endutent);
  36. weak_alias(setutxent, setutent);
  37. weak_alias(getutxent, getutent);
  38. weak_alias(getutxid, getutid);
  39. weak_alias(getutxline, getutline);
  40. weak_alias(pututxline, pututline);
  41. weak_alias(updwtmpx, updwtmp);
  42. weak_alias(__utmpxname, utmpname);
  43. weak_alias(__utmpxname, utmpxname);