From 84154fcc00877205647c2a318a0bf7547520c498 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 9 Sep 2003 13:14:50 +0000 Subject: [PATCH] * libc/include/grp.h: Don't define setgrfile, group_from_gid and setgroupent for Cygwin. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/grp.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 14369fa17..d36f4ad99 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2003-09-09 Corinna Vinschen + + * libc/include/grp.h: Don't define setgrfile, group_from_gid and + setgroupent for Cygwin. + 2003-09-05 Jeff Johnston * libc/stdlib/exit.c (exit): Setting of struct _atexit ptr p diff --git a/newlib/libc/include/grp.h b/newlib/libc/include/grp.h index 48a3d63b2..e453dca78 100644 --- a/newlib/libc/include/grp.h +++ b/newlib/libc/include/grp.h @@ -66,18 +66,24 @@ extern "C" { #ifndef __INSIDE_CYGWIN__ struct group *getgrgid (gid_t); struct group *getgrnam (const char *); +#ifndef __CYGWIN__ int getgrnam_r (const char *, struct group *, char *, size_t, struct group **); int getgrgid_r (gid_t, struct group *, char *, size_t, struct group **); +#endif /* !__CYGWIN__ */ #ifndef _POSIX_SOURCE struct group *getgrent (void); void setgrent (void); void endgrent (void); +#ifndef __CYGWIN__ void setgrfile (const char *); +#endif /* !__CYGWIN__ */ #ifndef _XOPEN_SOURCE +#ifndef __CYGWIN__ char *group_from_gid (gid_t, int); int setgroupent (int); +#endif /* !__CYGWIN__ */ int initgroups (const char *, gid_t); #endif /* !_XOPEN_SOURCE */ #endif /* !_POSIX_SOURCE */