shadow.h 721 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef _SHADOW_H
  2. #define _SHADOW_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define __NEED_FILE
  7. #define __NEED_size_t
  8. #include <bits/alltypes.h>
  9. #define SHADOW "/etc/shadow"
  10. struct spwd {
  11. char *sp_namp;
  12. char *sp_pwdp;
  13. long sp_lstchg;
  14. long sp_min;
  15. long sp_max;
  16. long sp_warn;
  17. long sp_inact;
  18. long sp_expire;
  19. unsigned long sp_flag;
  20. };
  21. void setspent(void);
  22. void endspent(void);
  23. struct spwd *getspent(void);
  24. struct spwd *fgetspent(FILE *);
  25. struct spwd *sgetspent(const char *);
  26. int putspent(const struct spwd *, FILE *);
  27. struct spwd *getspnam(const char *);
  28. int getspnam_r(const char *, struct spwd *, char *, size_t, struct spwd **);
  29. int lckpwdf(void);
  30. int ulckpwdf(void);
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif