blob: 30b01c564dbae8c9bae8e144b8f067804ea9cf2c [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, id1, id2, status, options, wrusage, info }
_, _, errno = syscall.Syscall9(syscall.SYS_WAIT6, uintptr(idtype), uintptr(id), 0, uintptr(unsafe.Pointer(&status)), uintptr(options), 0, 0, 0, 0)
return status, errno
}