summaryrefslogtreecommitdiff
path: root/sys/compat/bsdos
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-01-30 03:29:50 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-01-30 03:29:50 +0000
commite9389a44941c88aa9f36b0eb98cb77abc32542cf (patch)
treee61849abc74c49a8d331c1f43c57da45b0d5f0e5 /sys/compat/bsdos
parent2caf64284c4778676d10a14338c02351b9774fe6 (diff)
Bring back setreuid(2) and setregid(2) as first class syscalls
(but still implemented via setres[ug]id(2)). Basically this just moves them from COMPAT_43 into kern_prot.c. Also fixes a typo in my old implementation. The userland portion will follow in a few days. deraadt@ OK
Diffstat (limited to 'sys/compat/bsdos')
-rw-r--r--sys/compat/bsdos/syscalls.master8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/compat/bsdos/syscalls.master b/sys/compat/bsdos/syscalls.master
index 5c24913ca64..6139e5c6e37 100644
--- a/sys/compat/bsdos/syscalls.master
+++ b/sys/compat/bsdos/syscalls.master
@@ -1,4 +1,4 @@
- $OpenBSD: syscalls.master,v 1.9 2002/03/14 00:42:24 miod Exp $
+ $OpenBSD: syscalls.master,v 1.10 2003/01/30 03:29:48 millert Exp $
; OpenBSD COMPAT_BSDOS system call name/number "master" file.
; (See syscalls.conf to see what it is processed into.)
@@ -225,10 +225,8 @@
125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \
size_t len, int flags, caddr_t from, \
int *fromlenaddr); } orecvfrom
-126 NOARGS { int compat_43_sys_setreuid(int ruid, int euid); } \
- osetreuid
-127 NOARGS { int compat_43_sys_setregid(int rgid, int egid); } \
- osetregid
+126 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); }
+127 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); }
128 NOARGS { int sys_rename(char *from, char *to); }
129 NOARGS { int compat_43_sys_truncate(char *path, \
long length); } otruncate