|
|
1.1 root 1: /* (-lgl
2: * COHERENT Version 3.0
3: * Copyright (c) 1982, 1993 by Mark Williams Company.
4: * All rights reserved. May not be copied without permission.
5: -lgl) */
6:
7: #ifndef __PWD_H__
8: #define __PWD_H__
9:
10: #include <common/feature.h>
11: #include <common/ccompat.h>
12: #include <common/_uid.h>
13:
14: #if _SYSV4 || _SYSV3
15:
16: struct passwd {
17: char * pw_name; /* User name */
18: char * __NON_POSIX (pw_passwd);
19: /* Encrypted password */
20: #if _SYSV4
21: __uid_t pw_uid;
22: __gid_t pw_gid;
23: #else
24: int pw_uid; /* User id */
25: int pw_gid; /* Group id */
26: #endif
27: char * __NON_POSIX (pw_age);
28: char * __NON_POSIX (pw_comment);
29: /* Comments */
30: char * __NON_POSIX (pw_gecos);
31: /* Gecos box number */
32: char * pw_dir; /* Working directory */
33: char * pw_shell; /* Shell */
34: };
35:
36: #else /* if ! _SYSV4 && ! _SYSV3 */
37:
38: struct passwd {
39: char * pw_name; /* User name */
40: char * __NON_POSIX (pw_passwd);
41: /* Encrypted password */
42: int pw_uid; /* User id */
43: int pw_gid; /* Group id */
44: int __NON_POSIX (pw_quota);
45: /* FIle space quota */
46: char * __NON_POSIX (pw_comment);
47: /* Comments */
48: char * __NON_POSIX (pw_gecos);
49: /* Gecos box number */
50: char * pw_dir; /* Working directory */
51: char * pw_shell; /* Shell */
52: };
53:
54: #endif /* ! _SYSV4 && ! _SYSV3 */
55:
56: __EXTERN_C_BEGIN__
57:
58: struct passwd * getpwnam __PROTO ((__CONST__ char * _name));
59: struct passwd * getpwuid __PROTO ((__uid_t _uid));
60:
61: #if ! _POSIX_SOURCE
62:
63: struct passwd * getpwent __PROTO ((void));
64: int setpwent __PROTO ((void));
65: int endpwent __PROTO ((void));
66:
67: #endif
68:
69: __EXTERN_C_END__
70:
71: #endif /* ! defined (__PWD_H__) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.