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:21:34 +0300
committerYaakov Selkowitz <yselkowi@redhat.com>2016-03-18 05:08:56 +0300
commitec4fe40b23bbce361319c1d13dc89e594ffcba03 (patch)
tree8d5dc776759761d4c7c2e5c458eb484e7628c568 /newlib/libc
parentd94d983d1bed2d0f5ffb03b8b5469d7e59e839de (diff)
Feature test macros overhaul: grp.h
_PATH_GROUP is a BSDism. getgr*_r are BSD|SVID|POSIX, and the *grent functions are BSD|SVID|XPG4v2. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/grp.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/newlib/libc/include/grp.h b/newlib/libc/include/grp.h
index ee75d3fe1..6a265643a 100644
--- a/newlib/libc/include/grp.h
+++ b/newlib/libc/include/grp.h
@@ -49,7 +49,7 @@
#include <cygwin/grp.h>
#endif
-#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
+#if __BSD_VISIBLE
#define _PATH_GROUP "/etc/group"
#endif
@@ -67,15 +67,17 @@ extern "C" {
#ifndef __INSIDE_CYGWIN__
struct group *getgrgid (gid_t);
struct group *getgrnam (const char *);
+#if __MISC_VISIBLE || __POSIX_VISIBLE
int getgrnam_r (const char *, struct group *,
char *, size_t, struct group **);
int getgrgid_r (gid_t, struct group *,
char *, size_t, struct group **);
-#if __BSD_VISIBLE || __XSI_VISIBLE >= 500
+#endif /* __MISC_VISIBLE || __POSIX_VISIBLE */
+#if __MISC_VISIBLE || __XSI_VISIBLE >= 4
struct group *getgrent (void);
void setgrent (void);
void endgrent (void);
-#endif /* __BSD_VISIBLE || __XSI_VISIBLE >= 500 */
+#endif /* __MISC_VISIBLE || __XSI_VISIBLE >= 4 */
#if __BSD_VISIBLE
int initgroups (const char *, gid_t);
#endif /* __BSD_VISIBLE */