Feature test macros overhaul: pwd.h
getpw*_r dates back to POSIX.1c, and *pwent to XPG4v2. Both are also BSD. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
parent
96972e7198
commit
25507f80a2
@ -63,14 +63,14 @@ struct passwd {
|
||||
struct passwd *getpwuid (uid_t);
|
||||
struct passwd *getpwnam (const char *);
|
||||
|
||||
#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 500
|
||||
#if __MISC_VISIBLE || __POSIX_VISIBLE
|
||||
int getpwnam_r (const char *, struct passwd *,
|
||||
char *, size_t , struct passwd **);
|
||||
int getpwuid_r (uid_t, struct passwd *, char *,
|
||||
size_t, struct passwd **);
|
||||
#endif
|
||||
|
||||
#if __XSI_VISIBLE >= 500
|
||||
#if __MISC_VISIBLE || __XSI_VISIBLE >= 4
|
||||
struct passwd *getpwent (void);
|
||||
void setpwent (void);
|
||||
void endpwent (void);
|
||||
|
Loading…
Reference in New Issue
Block a user