1
0

pwd.h 835 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. #ifndef __PWD
  10. #define __PWD
  11. #ifndef _POSIX_SOURCE
  12. This header file is not defined in pure ANSI
  13. #endif
  14. #pragma lib "/$M/lib/ape/libap.a"
  15. #include <sys/types.h>
  16. struct passwd {
  17. char *pw_name;
  18. uid_t pw_uid;
  19. gid_t pw_gid;
  20. char *pw_dir;
  21. char *pw_shell;
  22. };
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. extern struct passwd *getpwuid(uid_t);
  27. extern struct passwd *getpwnam(const char *);
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif