summaryrefslogtreecommitdiffstats
path: root/sys/i386/ibcs2/syscalls.xenix
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-07-06 21:32:20 +0000
committerjhb <jhb@FreeBSD.org>2006-07-06 21:32:20 +0000
commit54c687571c8f72bead8ce1053420ca0930c940ec (patch)
tree7d521d8fd39be4b32b8ff3987e7932bc3716c43f /sys/i386/ibcs2/syscalls.xenix
parent6fe08fdbd364751465599ae63ca8f140a122cce0 (diff)
downloadFreeBSD-src-54c687571c8f72bead8ce1053420ca0930c940ec.zip
FreeBSD-src-54c687571c8f72bead8ce1053420ca0930c940ec.tar.gz
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().
Diffstat (limited to 'sys/i386/ibcs2/syscalls.xenix')
-rw-r--r--sys/i386/ibcs2/syscalls.xenix4
1 files changed, 2 insertions, 2 deletions
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); }
OpenPOWER on IntegriCloud