Fix getuid() and getgid() to work like the Solaris ones.

This commit is contained in:
eeh 2001-02-11 01:14:25 +00:00
parent 7fd4c88055
commit c2a7dae9d2
4 changed files with 14 additions and 14 deletions

View File

@ -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

View File

@ -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 svr4_sys_stat(struct proc *, void *, register_t *);
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_dup(struct proc *, void *, register_t *);
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 *);

View File

@ -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 @@ const char *const svr4_syscallnames[] = {
"#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 @@ const char *const svr4_syscallnames[] = {
"#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 */

View File

@ -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 @@ struct sysent svr4_sysent[] = {
{ 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 @@ struct sysent svr4_sysent[] = {
{ 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