* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
_sccsid:.asciz "@(#)wait3.s 5.2 (Berkeley) %G%"
/* @(#)wait3.s 5.2 (Berkeley) %G% */
* pid = wait3(&status, flags, &rusage);
* status indicates fate of process, if given
* flags may indicate process is not to hang or
* that untraced stopped children are to be reported.
* rusage optionally returns detailed resource usage information
#define SYS_wait3 SYS_wait
movl 8(ap),r0 /* make it easy for system to get */
movl 12(ap),r1 /* these extra arguments */
bispsw $0xf /* flags wait3() */
tstl 4(ap) /* status desired? */
movl r1,*4(ap) /* store child's status */