| 1 |
// Copyright 2022 The Go Authors. All rights reserved. |
| 2 |
// Use of this source code is governed by a BSD-style |
| 3 |
// license that can be found in the LICENSE file. |
| 4 |
|
| 5 |
package os |
| 6 |
|
| 7 |
import ( |
| 8 |
"syscall" |
| 9 |
"unsafe" |
| 10 |
) |
| 11 |
|
| 12 |
const _P_PID = 0 |
| 13 |
|
| 14 |
func wait6(idtype, id, options int) (status int, errno syscall.Errno) { |
| 15 |
// freebsd32_wait6_args{ idtype, id1, id2, status, options, wrusage, info } |
| 16 |
_, _, errno = syscall.Syscall9(syscall.SYS_WAIT6, uintptr(idtype), uintptr(id), 0, uintptr(unsafe.Pointer(&status)), uintptr(options), 0, 0, 0, 0) |
| 17 |
return status, errno |
| 18 |
} |