Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/svr4 Fix getuid() and getgid() to work like the S...
details: https://anonhg.NetBSD.org/src/rev/2e7c0294c3ef
branches: trunk
changeset: 503644:2e7c0294c3ef
user: eeh <eeh%NetBSD.org@localhost>
date: Sun Feb 11 01:14:25 2001 +0000
description:
Fix getuid() and getgid() to work like the Solaris ones.
diffstat:
sys/compat/svr4/svr4_syscall.h | 10 +++++-----
sys/compat/svr4/svr4_syscallargs.h | 6 +++---
sys/compat/svr4/svr4_syscalls.c | 6 +++---
sys/compat/svr4/svr4_sysent.c | 6 +++---
4 files changed, 14 insertions(+), 14 deletions(-)
diffs (112 lines):
diff -r ed7225e5fede -r 2e7c0294c3ef sys/compat/svr4/svr4_syscall.h
--- a/sys/compat/svr4/svr4_syscall.h Sun Feb 11 01:13:01 2001 +0000
+++ b/sys/compat/svr4/svr4_syscall.h Sun Feb 11 01:14:25 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_syscall.h,v 1.66 2001/01/27 08:00:59 thorpej Exp $ */
+/* $NetBSD: svr4_syscall.h,v 1.67 2001/02/11 01:14:25 eeh Exp $ */
/*
* System call numbers.
@@ -73,8 +73,8 @@
/* syscall: "setuid" ret: "int" args: "uid_t" */
#define SVR4_SYS_setuid 23
-/* syscall: "getuid" ret: "uid_t" args: */
-#define SVR4_SYS_getuid 24
+/* syscall: "getuid_with_euid" ret: "uid_t" args: */
+#define SVR4_SYS_getuid_with_euid 24
/* syscall: "alarm" ret: "int" args: "unsigned" */
#define SVR4_SYS_alarm 27
@@ -115,8 +115,8 @@
/* syscall: "setgid" ret: "int" args: "gid_t" */
#define SVR4_SYS_setgid 46
-/* syscall: "getgid" ret: "gid_t" args: */
-#define SVR4_SYS_getgid 47
+/* syscall: "getgid_with_egid" ret: "gid_t" args: */
+#define SVR4_SYS_getgid_with_egid 47
/* syscall: "signal" ret: "int" args: "int" "svr4_sig_t" */
#define SVR4_SYS_signal 48
diff -r ed7225e5fede -r 2e7c0294c3ef sys/compat/svr4/svr4_syscallargs.h
--- a/sys/compat/svr4/svr4_syscallargs.h Sun Feb 11 01:13:01 2001 +0000
+++ b/sys/compat/svr4/svr4_syscallargs.h Sun Feb 11 01:14:25 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_syscallargs.h,v 1.65 2001/01/27 08:00:59 thorpej Exp $ */
+/* $NetBSD: svr4_syscallargs.h,v 1.66 2001/02/11 01:14:25 eeh Exp $ */
/*
* System call argument lists.
@@ -523,7 +523,7 @@
int compat_43_sys_lseek(struct proc *, void *, register_t *);
int sys_getpid(struct proc *, void *, register_t *);
int sys_setuid(struct proc *, void *, register_t *);
-int sys_getuid(struct proc *, void *, register_t *);
+int sys_getuid_with_euid(struct proc *, void *, register_t *);
int svr4_sys_alarm(struct proc *, void *, register_t *);
int svr4_sys_fstat(struct proc *, void *, register_t *);
int svr4_sys_pause(struct proc *, void *, register_t *);
@@ -537,7 +537,7 @@
int sys_pipe(struct proc *, void *, register_t *);
int svr4_sys_times(struct proc *, void *, register_t *);
int sys_setgid(struct proc *, void *, register_t *);
-int sys_getgid(struct proc *, void *, register_t *);
+int sys_getgid_with_egid(struct proc *, void *, register_t *);
int svr4_sys_signal(struct proc *, void *, register_t *);
#ifdef SYSVMSG
int svr4_sys_msgsys(struct proc *, void *, register_t *);
diff -r ed7225e5fede -r 2e7c0294c3ef sys/compat/svr4/svr4_syscalls.c
--- a/sys/compat/svr4/svr4_syscalls.c Sun Feb 11 01:13:01 2001 +0000
+++ b/sys/compat/svr4/svr4_syscalls.c Sun Feb 11 01:14:25 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_syscalls.c,v 1.66 2001/01/27 08:00:59 thorpej Exp $ */
+/* $NetBSD: svr4_syscalls.c,v 1.67 2001/02/11 01:14:25 eeh Exp $ */
/*
* System call names.
@@ -54,7 +54,7 @@
"#21 (unimplemented old_mount)", /* 21 = unimplemented old_mount */
"#22 (unimplemented System V umount)", /* 22 = unimplemented System V umount */
"setuid", /* 23 = setuid */
- "getuid", /* 24 = getuid */
+ "getuid_with_euid", /* 24 = getuid_with_euid */
"#25 (unimplemented stime)", /* 25 = unimplemented stime */
"#26 (unimplemented ptrace)", /* 26 = unimplemented ptrace */
"alarm", /* 27 = alarm */
@@ -77,7 +77,7 @@
"#44 (unimplemented profil)", /* 44 = unimplemented profil */
"#45 (unimplemented plock)", /* 45 = unimplemented plock */
"setgid", /* 46 = setgid */
- "getgid", /* 47 = getgid */
+ "getgid_with_egid", /* 47 = getgid_with_egid */
"signal", /* 48 = signal */
#ifdef SYSVMSG
"msgsys", /* 49 = msgsys */
diff -r ed7225e5fede -r 2e7c0294c3ef sys/compat/svr4/svr4_sysent.c
--- a/sys/compat/svr4/svr4_sysent.c Sun Feb 11 01:13:01 2001 +0000
+++ b/sys/compat/svr4/svr4_sysent.c Sun Feb 11 01:14:25 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_sysent.c,v 1.68 2001/01/27 08:00:59 thorpej Exp $ */
+/* $NetBSD: svr4_sysent.c,v 1.69 2001/02/11 01:14:25 eeh Exp $ */
/*
* System call switch table.
@@ -79,7 +79,7 @@
{ 1, s(struct sys_setuid_args), 0,
sys_setuid }, /* 23 = setuid */
{ 0, 0, 0,
- sys_getuid }, /* 24 = getuid */
+ sys_getuid_with_euid }, /* 24 = getuid_with_euid */
{ 0, 0, 0,
sys_nosys }, /* 25 = unimplemented stime */
{ 0, 0, 0,
@@ -125,7 +125,7 @@
{ 1, s(struct sys_setgid_args), 0,
sys_setgid }, /* 46 = setgid */
{ 0, 0, 0,
- sys_getgid }, /* 47 = getgid */
+ sys_getgid_with_egid }, /* 47 = getgid_with_egid */
{ 2, s(struct svr4_sys_signal_args), 0,
svr4_sys_signal }, /* 48 = signal */
#ifdef SYSVMSG
Home |
Main Index |
Thread Index |
Old Index