pwd.h 499 B

123456789101112131415161718192021222324252627
  1. #ifndef _PWD_H_
  2. #define _PWD_H_
  3. /*
  4. * pwd.h doesn't exist on NT, so we put together our own.
  5. */
  6. struct passwd {
  7. char *pw_name;
  8. char *pw_passwd;
  9. unsigned pw_uid; /* Vista's TrustedInstaller has a very large RID */
  10. unsigned pw_gid;
  11. int pw_quota;
  12. char *pw_gecos;
  13. char *pw_dir;
  14. char *pw_shell;
  15. };
  16. typedef unsigned uid_t;
  17. typedef uid_t gid_t;
  18. struct passwd * getpwnam (char *);
  19. struct passwd * getpwuid (unsigned);
  20. #endif /* _PWD_H_ */