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:
authorCorinna Vinschen <corinna@vinschen.de>2011-10-28 13:26:42 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-10-28 13:26:42 +0400
commit0c1d8aaaf1cfe49fdb18edba36c679b601c2c0e9 (patch)
tree5eb83b73b411f43e3a557c04ff398d5cc0dde7aa /winsup/cygwin/include
parentc85feb40a2c760ab12200c34eface647883ea39a (diff)
* cygwin.din (getgrouplist): Export.
* grp.cc (get_groups): New static function to run the core functionality of initgroups and getgrouplist. (initgroups32): Call get_groups and just create supplementary group list in cygheap. Rename name of first argument to "user". Add an assertion to test for a NULL user name. (initgroups): Rename name of first argument to "user". (getgrouplist): New function. * posix.sgml (std-bsd): Add getgrouplist. * include/cygwin/grp.h (getgrouplist): Declare. * include/cygwin/version.h: Bump API minor number.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r--winsup/cygwin/include/cygwin/grp.h4
-rw-r--r--winsup/cygwin/include/cygwin/version.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/winsup/cygwin/include/cygwin/grp.h b/winsup/cygwin/include/cygwin/grp.h
index 7dcae637d..b990b25ac 100644
--- a/winsup/cygwin/include/cygwin/grp.h
+++ b/winsup/cygwin/include/cygwin/grp.h
@@ -1,6 +1,6 @@
/* cygwin/grp.h
- Copyright 2002 Red Hat Inc.
+ Copyright 2002, 2011 Red Hat Inc.
Written by Corinna Vinschen <corinna@vinschen.de>
This file is part of Cygwin.
@@ -41,6 +41,8 @@ __gid32_t getgid32 ();
__gid32_t getegid32 ();
#endif
+extern int getgrouplist (const char *, gid_t, gid_t *, int *);
+
#ifdef __cplusplus
}
#endif
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h
index 480b0ff47..27dccf27c 100644
--- a/winsup/cygwin/include/cygwin/version.h
+++ b/winsup/cygwin/include/cygwin/version.h
@@ -422,12 +422,13 @@ details. */
251: RTLD_NODELETE, RTLD_NOLOAD, RTLD_DEEPBIND added.
252: CW_CVT_ENV_TO_WINENV added.
253: Export TIOCSCTTY, tcgetsid.
+ 254: Export getgrouplist.
*/
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
#define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 253
+#define CYGWIN_VERSION_API_MINOR 254
/* There is also a compatibity version number associated with the
shared memory regions. It is incremented when incompatible