1/* 2 Needed by getpwnam.c 3*/ 4 5/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ 6#ifndef __dj_include_pwd_h_ 7#define __dj_include_pwd_h_ 8 9#ifdef __cplusplus 10extern "C" { 11#endif 12 13#ifndef __dj_ENFORCE_ANSI_FREESTANDING 14 15#ifndef __STRICT_ANSI__ 16 17#include <sys/djtypes.h> 18 19__DJ_gid_t 20#undef __DJ_gid_t 21#define __DJ_gid_t 22__DJ_uid_t 23#undef __DJ_uid_t 24#define __DJ_uid_t 25 26struct passwd { 27 char * pw_name; /* Username. */ 28 uid_t pw_uid; /* User ID. */ 29 gid_t pw_gid; /* Group ID. */ 30 char * pw_dir; /* Home directory. */ 31 char * pw_shell; /* Shell program. */ 32 char * pw_gecos; /* Real name. */ 33 char * pw_passwd; /* Password. */ 34}; 35 36struct passwd * getpwuid(uid_t _uid); 37struct passwd * getpwnam(const char *_name); 38 39#ifndef _POSIX_SOURCE 40 41struct passwd *getpwent(void); 42void setpwent(void); 43void endpwent(void); 44 45#endif /* !_POSIX_SOURCE */ 46#endif /* !__STRICT_ANSI__ */ 47#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */ 48 49#ifndef __dj_ENFORCE_FUNCTION_CALLS 50#endif /* !__dj_ENFORCE_FUNCTION_CALLS */ 51 52#ifdef __cplusplus 53} 54#endif 55 56#endif /* !__dj_include_pwd_h_ */ 57