00001 /* The <pwd.h> header defines the items in the password file. */ 00002 00003 #ifndef _PWD_H 00004 #define _PWD_H 00005 00006 #ifndef _TYPES_H 00007 #include <minix/types.h> 00008 #endif 00009 00010 struct passwd { 00011 char *pw_name; /* login name */ 00012 uid_t pw_uid; /* uid corresponding to the name */ 00013 gid_t pw_gid; /* gid corresponding to the name */ 00014 char *pw_dir; /* user's home directory */ 00015 char *pw_shell; /* name of the user's shell */ 00016 00017 /* The following members are not defined by POSIX. */ 00018 char *pw_passwd; /* password information */ 00019 char *pw_gecos; /* just in case you have a GE 645 around */ 00020 }; 00021 00022 /* Function Prototypes. */ 00023 _PROTOTYPE( struct passwd *getpwnam, (const char *_name) ); 00024 _PROTOTYPE( struct passwd *getpwuid, (_mnx_Uid_t _uid) ); 00025 00026 #ifdef _MINIX 00027 _PROTOTYPE( void endpwent, (void) ); 00028 _PROTOTYPE( struct passwd *getpwent, (void) ); 00029 _PROTOTYPE( int setpwent, (void) ); 00030 _PROTOTYPE( void setpwfile, (const char *_file) ); 00031 #endif 00032 00033 #endif /* _PWD_H */
1.5.8