home *** CD-ROM | disk | FTP | other *** search
- /* pwd.h (c) Copyright 1990 H.Rogers */
-
- #ifndef __PWD_H
- #define __PWD_H
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- struct passwd
- {
- char *pw_name;
- char *pw_passwd;
- int pw_uid;
- int pw_gid;
- int pw_quota;
- char *pw_comment;
- char *pw_gecos;
- char *pw_dir;
- char *pw_shell;
- };
-
- extern struct passwd *getpwent(void);
- #ifdef FILE
- extern struct passwd *fgetpwent(FILE *);
- #else
- extern struct passwd *fgetpwent(void *);
- #endif
- extern struct passwd *getpwuid(int);
- extern struct passwd *getpwnam(char *);
- extern int setpwent(void);
- extern int endpwent(void);
- extern int setpwfile(char *);
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-