Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-03-15 00:36:13 +0300
committerYaakov Selkowitz <yselkowi@redhat.com>2016-03-18 05:09:01 +0300
commit25507f80a21c476f4bfa3cba030e3a0502a491db (patch)
tree6d212c26fad62f63ffba87415d76713421f1c185 /newlib/libc
parent96972e71981c2d9b910b6d287fc94fdd40d6fab5 (diff)
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>
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/pwd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/pwd.h b/newlib/libc/include/pwd.h
index 3dea4ee2d..f37d289f9 100644
--- a/newlib/libc/include/pwd.h
+++ b/newlib/libc/include/pwd.h
@@ -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);