blob: 0fd8af012ed0a66a5be354ac22140e6b56afd154 [file] [log] [blame]
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package os
import (
"syscall"
"unsafe"
)
const _P_PID = 0
func wait6(idtype, id, options int) (status int, errno syscall.Errno) {
// freebsd32_wait6_args{ idtype, pad, id1, id2, status, options, wrusage, info }
_, _, errno = syscall.Syscall9(syscall.SYS_WAIT6, uintptr(idtype), 0, uintptr(id), 0, uintptr(unsafe.Pointer(&status)), uintptr(options), 0, 0, 0)
return status, errno
}