From 54c687571c8f72bead8ce1053420ca0930c940ec Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 6 Jul 2006 21:32:20 +0000 Subject: Add kern_setgroups() and kern_getgroups() and use them to implement ibcs2_[gs]etgroups() rather than using the stackgap. This also makes ibcs2_[gs]etgroups() MPSAFE. Also, it cleans up one bit of weirdness in the old setgroups() where it allocated an entire credential just so it had a place to copy the group list into. Now setgroups just allocates a NGROUPS_MAX array on the stack that it copies into and then passes to kern_setgroups(). --- sys/i386/ibcs2/syscalls.xenix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/i386/ibcs2/syscalls.xenix') diff --git a/sys/i386/ibcs2/syscalls.xenix b/sys/i386/ibcs2/syscalls.xenix index ae8be83..8b9b84a 100644 --- a/sys/i386/ibcs2/syscalls.xenix +++ b/sys/i386/ibcs2/syscalls.xenix @@ -56,9 +56,9 @@ ibcs2_sigset_t *oset); } 41 AUE_NULL MSTD { int ibcs2_sigpending(ibcs2_sigset_t *mask); } 42 AUE_NULL MSTD { int ibcs2_sigsuspend(ibcs2_sigset_t *mask); } -43 AUE_GETGROUPS STD { int ibcs2_getgroups(int gidsetsize, \ +43 AUE_GETGROUPS MSTD { int ibcs2_getgroups(int gidsetsize, \ ibcs2_gid_t *gidset); } -44 AUE_SETGROUPS STD { int ibcs2_setgroups(int gidsetsize, \ +44 AUE_SETGROUPS MSTD { int ibcs2_setgroups(int gidsetsize, \ ibcs2_gid_t *gidset); } 45 AUE_NULL MSTD { int ibcs2_sysconf(int name); } 46 AUE_PATHCONF MSTD { int ibcs2_pathconf(char *path, int name); } -- cgit v1.1