1
0

pwd.h 423 B

12345678910111213141516171819202122232425262728
  1. #ifndef __PWD
  2. #define __PWD
  3. #ifndef _POSIX_SOURCE
  4. This header file is not defined in pure ANSI
  5. #endif
  6. #pragma lib "/$M/lib/ape/libap.a"
  7. #include <sys/types.h>
  8. struct passwd {
  9. char *pw_name;
  10. uid_t pw_uid;
  11. gid_t pw_gid;
  12. char *pw_dir;
  13. char *pw_shell;
  14. };
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. extern struct passwd *getpwuid(uid_t);
  19. extern struct passwd *getpwnam(const char *);
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif