This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, I've checked in the below patch which just avoids to define three functions under Cygwin which aren't available. Corinna * libc/include/grp.h: Don't define setgrfile, group_from_gid and setgroupent for Cygwin. Index: libc/include/grp.h =================================================================== RCS file: /cvs/src/src/newlib/libc/include/grp.h,v retrieving revision 1.4 diff -u -p -r1.4 grp.h --- libc/include/grp.h 10 Feb 2002 13:26:29 -0000 1.4 +++ libc/include/grp.h 9 Sep 2003 10:11:40 -0000 @@ -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 */ -- Corinna Vinschen Cygwin Developer Red Hat, Inc.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |