summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2011-07-07 18:08:37 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2011-07-07 18:08:37 +0000
commit291e013ccd4b9989e6d79d1ae219784a4a37894e (patch)
treee09eb84c572bcba048008db69729b4a4e17aa2d2 /sys/kern
parent494d79a797e4caae68d4f804c3da1c67bf95afac (diff)
effectively revert 1.44. we don't need the compat_43 syscall returns ever.
getpid is smp safe again. ok guenther
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_prot.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index 7f451200606..29e8a21e04f 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_prot.c,v 1.48 2011/04/04 13:00:13 guenther Exp $ */
+/* $OpenBSD: kern_prot.c,v 1.49 2011/07/07 18:08:36 tedu Exp $ */
/* $NetBSD: kern_prot.c,v 1.33 1996/02/09 18:59:42 christos Exp $ */
/*
@@ -59,8 +59,7 @@ int
sys_getpid(struct proc *p, void *v, register_t *retval)
{
- retval[0] = p->p_p->ps_pid;
- retval[1] = p->p_p->ps_pptr->ps_pid;
+ *retval = p->p_p->ps_pid;
return (0);
}
@@ -142,8 +141,7 @@ int
sys_getuid(struct proc *p, void *v, register_t *retval)
{
- retval[0] = p->p_cred->p_ruid;
- retval[1] = p->p_ucred->cr_uid;
+ *retval = p->p_cred->p_ruid;
return (0);
}
@@ -172,8 +170,7 @@ int
sys_getgid(struct proc *p, void *v, register_t *retval)
{
- retval[0] = p->p_cred->p_rgid;
- retval[1] = p->p_ucred->cr_gid;
+ *retval = p->p_cred->p_rgid;
return (0);
}