* 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.
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user