9 __weak_alias(wait4
, __wait450
)
13 wait4(pid_t pid
, int * status
, int options
, struct rusage
* rusage
)
17 memset(&m
, 0, sizeof(m
));
18 m
.m_lc_pm_wait4
.pid
= pid
;
19 m
.m_lc_pm_wait4
.options
= options
;
20 m
.m_lc_pm_wait4
.addr
= (vir_bytes
)rusage
;
22 if (_syscall(PM_PROC_NR
, PM_WAIT4
, &m
) < 0) return(-1);
24 if (status
!= NULL
) *status
= m
.m_pm_lc_wait4
.status
;