forked from Stichting-MINIX-Research-Foundation/minix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpwd.h
More file actions
executable file
·33 lines (26 loc) · 947 Bytes
/
Copy pathpwd.h
File metadata and controls
executable file
·33 lines (26 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* The <pwd.h> header defines the items in the password file. */
#ifndef _PWD_H
#define _PWD_H
#ifndef _TYPES_H
#include <sys/types.h>
#endif
struct passwd {
char *pw_name; /* login name */
uid_t pw_uid; /* uid corresponding to the name */
gid_t pw_gid; /* gid corresponding to the name */
char *pw_dir; /* user's home directory */
char *pw_shell; /* name of the user's shell */
/* The following members are not defined by POSIX. */
char *pw_passwd; /* password information */
char *pw_gecos; /* just in case you have a GE 645 around */
};
/* Function Prototypes. */
_PROTOTYPE( struct passwd *getpwnam, (const char *_name) );
_PROTOTYPE( struct passwd *getpwuid, (_mnx_Uid_t _uid) );
#ifdef _MINIX
_PROTOTYPE( void endpwent, (void) );
_PROTOTYPE( struct passwd *getpwent, (void) );
_PROTOTYPE( int setpwent, (void) );
_PROTOTYPE( void setpwfile, (const char *_file) );
#endif
#endif /* _PWD_H */