* 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:
Corinna Vinschen
2011-10-28 09:26:42 +00:00
parent c85feb40a2
commit 0c1d8aaaf1
6 changed files with 86 additions and 20 deletions

View File

@@ -716,6 +716,7 @@ getgrnam SIGFE
_getgrnam = getgrnam SIGFE
_getgrnam32 = getgrnam32 SIGFE
getgrnam_r SIGFE
getgrouplist SIGFE
getgroups SIGFE
_getgroups = getgroups SIGFE
_getgroups32 = getgroups32 SIGFE