Rev 4874 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4874 | Rev 6099 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | #ifdef __cplusplus |
37 | #ifdef __cplusplus |
38 | extern "C" { |
38 | extern "C" { |
39 | #endif |
39 | #endif |
40 | #define _PWD_H_ |
40 | #define _PWD_H_ |
Line -... | Line 41... | ||
- | 41 | ||
41 | 42 | #include |
|
Line 42... | Line 43... | ||
42 | #include |
43 | #include |
43 | 44 | ||
Line 44... | Line 45... | ||
44 | #ifndef _POSIX_SOURCE |
45 | #if __BSD_VISIBLE |
45 | #define _PATH_PASSWD "/etc/passwd" |
46 | #define _PATH_PASSWD "/etc/passwd" |
Line 59... | Line 60... | ||
59 | }; |
60 | }; |
Line 60... | Line 61... | ||
60 | 61 | ||
61 | #ifndef __INSIDE_CYGWIN__ |
62 | #ifndef __INSIDE_CYGWIN__ |
62 | struct passwd *getpwuid (uid_t); |
63 | struct passwd *getpwuid (uid_t); |
- | 64 | struct passwd *getpwnam (const char *); |
|
- | 65 | ||
63 | struct passwd *getpwnam (const char *); |
66 | #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 500 |
64 | int getpwnam_r (const char *, struct passwd *, |
67 | int getpwnam_r (const char *, struct passwd *, |
65 | char *, size_t , struct passwd **); |
68 | char *, size_t , struct passwd **); |
66 | int getpwuid_r (uid_t, struct passwd *, char *, |
69 | int getpwuid_r (uid_t, struct passwd *, char *, |
- | 70 | size_t, struct passwd **); |
|
- | 71 | #endif |
|
67 | size_t, struct passwd **); |
72 | |
68 | #ifndef _POSIX_SOURCE |
73 | #if __XSI_VISIBLE >= 500 |
69 | struct passwd *getpwent (void); |
74 | struct passwd *getpwent (void); |
70 | void setpwent (void); |
75 | void setpwent (void); |
71 | void endpwent (void); |
76 | void endpwent (void); |
- | 77 | #endif |
|
- | 78 | ||
- | 79 | #if __BSD_VISIBLE |
|
72 | #endif |
80 | int setpassent (int); |
- | 81 | #endif |
|
Line 73... | Line 82... | ||
73 | #endif |
82 | #endif /*!__INSIDE_CYGWIN__*/ |
74 | 83 | ||
75 | #ifdef __cplusplus |
84 | #ifdef __cplusplus |
76 | } |
85 | } |