ibcs2_misc.c (76166) | ibcs2_misc.c (78962) |
---|---|
1/* 2 * Copyright (c) 1995 Steven Wallace 3 * Copyright (c) 1994, 1995 Scott Bartram 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This software was developed by the Computer Systems Engineering group 8 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and --- 31 unchanged lines hidden (view full) --- 40 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 41 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 42 * SUCH DAMAGE. 43 * 44 * from: Header: sun_misc.c,v 1.16 93/04/07 02:46:27 torek Exp 45 * 46 * @(#)sun_misc.c 8.1 (Berkeley) 6/18/93 47 * | 1/* 2 * Copyright (c) 1995 Steven Wallace 3 * Copyright (c) 1994, 1995 Scott Bartram 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This software was developed by the Computer Systems Engineering group 8 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and --- 31 unchanged lines hidden (view full) --- 40 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 41 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 42 * SUCH DAMAGE. 43 * 44 * from: Header: sun_misc.c,v 1.16 93/04/07 02:46:27 torek Exp 45 * 46 * @(#)sun_misc.c 8.1 (Berkeley) 6/18/93 47 * |
48 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_misc.c 76166 2001-05-01 08:13:21Z markm $ | 48 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_misc.c 78962 2001-06-29 11:10:41Z jhb $ |
49 */ 50 51/* 52 * IBCS2 compatibility module. 53 * 54 * IBCS2 system calls that are implemented differently in BSD are 55 * handled here. 56 */ --- 81 unchanged lines hidden (view full) --- 138#define IBCS2_STOPCODE(sig) ((sig) << 8 | IBCS2_WSTOPPED) 139int 140ibcs2_wait(p, uap) 141 struct proc *p; 142 struct ibcs2_wait_args *uap; 143{ 144 int error, status; 145 struct wait_args w4; | 49 */ 50 51/* 52 * IBCS2 compatibility module. 53 * 54 * IBCS2 system calls that are implemented differently in BSD are 55 * handled here. 56 */ --- 81 unchanged lines hidden (view full) --- 138#define IBCS2_STOPCODE(sig) ((sig) << 8 | IBCS2_WSTOPPED) 139int 140ibcs2_wait(p, uap) 141 struct proc *p; 142 struct ibcs2_wait_args *uap; 143{ 144 int error, status; 145 struct wait_args w4; |
146 struct trapframe *tf = p->p_md.md_regs; | 146 struct trapframe *tf = p->p_frame; |
147 148 SCARG(&w4, rusage) = NULL; 149 if ((tf->tf_eflags & (PSL_Z|PSL_PF|PSL_N|PSL_V)) 150 == (PSL_Z|PSL_PF|PSL_N|PSL_V)) { 151 /* waitpid */ 152 SCARG(&w4, pid) = SCARG(uap, a1); 153 SCARG(&w4, status) = (int *)SCARG(uap, a2); 154 SCARG(&w4, options) = SCARG(uap, a3); --- 1029 unchanged lines hidden --- | 147 148 SCARG(&w4, rusage) = NULL; 149 if ((tf->tf_eflags & (PSL_Z|PSL_PF|PSL_N|PSL_V)) 150 == (PSL_Z|PSL_PF|PSL_N|PSL_V)) { 151 /* waitpid */ 152 SCARG(&w4, pid) = SCARG(uap, a1); 153 SCARG(&w4, status) = (int *)SCARG(uap, a2); 154 SCARG(&w4, options) = SCARG(uap, a3); --- 1029 unchanged lines hidden --- |