From 86602fc06c6eef73f48ce541f6b8d2b6af993629 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 11 Jun 2004 11:16:26 +0000 Subject: Deorbit COMPAT_SUNOS. We inherited this from the sparc32 port of BSD4.4-Lite1. We have neither a sparc32 port nor a SunOS4.x compatibility desire these days. --- sys/kern/kern_prot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/kern/kern_prot.c') diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index d30a94b..ab2ae0a 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -84,7 +84,7 @@ getpid(struct thread *td, struct getpid_args *uap) struct proc *p = td->td_proc; td->td_retval[0] = p->p_pid; -#if defined(COMPAT_43) || defined(COMPAT_SUNOS) +#if defined(COMPAT_43) PROC_LOCK(p); td->td_retval[1] = p->p_pptr->p_pid; PROC_UNLOCK(p); @@ -216,7 +216,7 @@ getuid(struct thread *td, struct getuid_args *uap) { td->td_retval[0] = td->td_ucred->cr_ruid; -#if defined(COMPAT_43) || defined(COMPAT_SUNOS) +#if defined(COMPAT_43) td->td_retval[1] = td->td_ucred->cr_uid; #endif return (0); @@ -253,7 +253,7 @@ getgid(struct thread *td, struct getgid_args *uap) { td->td_retval[0] = td->td_ucred->cr_rgid; -#if defined(COMPAT_43) || defined(COMPAT_SUNOS) +#if defined(COMPAT_43) td->td_retval[1] = td->td_ucred->cr_groups[0]; #endif return (0); -- cgit v1.1