1 // wait4.go -- Wait4 for systems with wait4.
3 // Copyright 2011 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
9 func libc_wait4(Pid_t
, *int, int, *Rusage
) Pid_t
__asm__ ("wait4")
11 func Wait4(pid
int, wstatus
*WaitStatus
, options
int, rusage
*Rusage
) (wpid
int, errno
int) {
13 r
:= libc_wait4(Pid_t(pid
), &status
, options
, rusage
)
19 *wstatus
= WaitStatus(status
)