2001-10-24 10:30:29 +05:30
|
|
|
#ifndef __CONFIG_PWD_H
|
|
|
|
#define __CONFIG_PWD_H
|
2001-01-27 11:31:43 +05:30
|
|
|
|
2002-06-05 01:40:23 +05:30
|
|
|
#if !defined CONFIG_USE_BB_PWD_GRP
|
2002-07-04 04:49:26 +05:30
|
|
|
#include <pwd.h>
|
2002-06-05 01:40:23 +05:30
|
|
|
|
2001-01-27 11:31:43 +05:30
|
|
|
#else
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <features.h>
|
|
|
|
#include <stdio.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. */
|
|
|
|
};
|
|
|
|
|
2001-01-27 13:54:39 +05:30
|
|
|
extern void setpwent __P ((void));
|
|
|
|
extern void endpwent __P ((void));
|
|
|
|
extern struct passwd * getpwent __P ((void));
|
2001-01-27 11:31:43 +05:30
|
|
|
|
2001-01-27 13:54:39 +05:30
|
|
|
extern int putpwent __P ((__const struct passwd * __p, FILE * __f));
|
|
|
|
extern int getpw __P ((uid_t uid, char *buf));
|
2001-01-27 11:31:43 +05:30
|
|
|
|
2001-01-27 13:54:39 +05:30
|
|
|
extern struct passwd * fgetpwent __P ((FILE * file));
|
2001-01-27 11:31:43 +05:30
|
|
|
|
2001-01-27 13:54:39 +05:30
|
|
|
extern struct passwd * getpwuid __P ((__const uid_t));
|
|
|
|
extern struct passwd * getpwnam __P ((__const char *));
|
2001-01-27 11:31:43 +05:30
|
|
|
|
2001-01-27 13:54:39 +05:30
|
|
|
extern struct passwd * __getpwent __P ((__const int passwd_fd));
|
2001-01-27 11:31:43 +05:30
|
|
|
|
|
|
|
#endif /* USE_SYSTEM_PWD_GRP */
|
2001-10-24 10:30:29 +05:30
|
|
|
#endif /* __CONFIG_PWD_H */
|
2001-01-27 11:31:43 +05:30
|
|
|
|