diff options
Diffstat (limited to 'src/os/wait6_freebsd_arm.go')
-rw-r--r-- | src/os/wait6_freebsd_arm.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/os/wait6_freebsd_arm.go b/src/os/wait6_freebsd_arm.go new file mode 100644 index 0000000..0fd8af0 --- /dev/null +++ b/src/os/wait6_freebsd_arm.go @@ -0,0 +1,18 @@ +// 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 +} |