From f23c6d682bee2142c2e2615bc1d224291bd957fd Mon Sep 17 00:00:00 2001 From: Steven Wallace Date: Mon, 23 Oct 1995 19:44:38 +0000 Subject: [PATCH] Remove COMPAT_IBCS2 option. Ibcs2 emulator no longer depends on owait() or any other hack to wait4(). --- sys/kern/kern_exit.c | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index d4e9a084729e..3fea3bbc5bef 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_exit.c 8.7 (Berkeley) 2/12/94 - * $Id: kern_exit.c,v 1.17 1995/10/08 00:06:03 swallace Exp $ + * $Id: kern_exit.c,v 1.18 1995/10/23 15:42:09 bde Exp $ */ #include @@ -283,7 +283,7 @@ exit1(p, rv) cpu_exit(p); } -#if defined(COMPAT_43) || defined(COMPAT_IBCS2) +#if defined(COMPAT_43) #if defined(hp300) || defined(luna68k) #include #define GETPS(rp) ((struct frame *)(rp))->f_sr @@ -317,7 +317,7 @@ owait(p, uap, retval) w.status = NULL; return (wait1(p, &w, retval, 1)); } -#endif /* defined(COMPAT_43) || defined(COMPAT_IBCS2) */ +#endif /* defined(COMPAT_43) */ int wait4(p, uap, retval) @@ -343,7 +343,7 @@ wait1(q, uap, retval, compat) { register int nfound; register struct proc *p, *t; - int status, error, sig; + int status, error; if (uap->pid == 0) uap->pid = -q->p_pgid; @@ -358,15 +358,6 @@ wait1(q, uap, retval, compat) p->p_pid != uap->pid && p->p_pgid != -uap->pid) continue; nfound++; -#if defined(COMPAT_43) || defined(COMPAT_IBCS2) - if (q->p_sysent->sv_sigtbl) { - if ((p->p_xstat & 0xff) < q->p_sysent->sv_sigsize) - sig = q->p_sysent->sv_sigtbl[p->p_xstat & 0xff]; - else - sig = q->p_sysent->sv_sigsize + 1; - } else - sig = p->p_xstat; -#endif if (p->p_stat == SZOMB) { /* charge childs scheduling cpu usage to parent */ if (curproc->p_pid != 1) { @@ -375,9 +366,9 @@ wait1(q, uap, retval, compat) } retval[0] = p->p_pid; -#if defined(COMPAT_43) || defined(COMPAT_IBCS2) +#if defined(COMPAT_43) if (compat) - retval[1] = sig; + retval[1] = p->p_xstat; else #endif if (uap->status) { @@ -453,9 +444,9 @@ wait1(q, uap, retval, compat) (p->p_flag & P_TRACED || uap->options & WUNTRACED)) { p->p_flag |= P_WAITED; retval[0] = p->p_pid; -#if defined(COMPAT_43) || defined(COMPAT_IBCS2) +#if defined(COMPAT_43) if (compat) { - retval[1] = W_STOPCODE(sig); + retval[1] = W_STOPCODE(p->p_xstat); error = 0; } else #endif