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 9 struct passwd { 10 char *pw_name; 11 uid_t pw_uid; 12 gid_t pw_gid; 13 char *pw_dir; 14 char *pw_shell; 15 }; 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 extern struct passwd *getpwuid(uid_t); 22 extern struct passwd *getpwnam(const char *); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 #endif 29