
#ifndef	_PWD_H
#define	_PWD_H

#include <features.h>
#include <sys/types.h>

/* The passwd structure.  */
struct passwd
{
  char *pw_name;		/* Username.  */
  char *pw_passwd;		/* Password.  */
  uid_t pw_uid;			/* User ID.  */
  gid_t pw_gid;			/* Group ID.  */
  char *pw_gecos;		/* Real name.  */
  char *pw_dir;			/* Home directory.  */
  char *pw_shell;		/* Shell program.  */
};


extern void setpwent __P ((void));
extern void endpwent __P ((void));
extern struct passwd *getpwent __P ((void));
extern int getpw __P ((__uid_t __uid, char *__buf));

extern struct passwd *getpwuid __P ((__uid_t __uid));
extern struct passwd *getpwnam __P ((__const char *__name));

#endif /* pwd.h  */
