1// Copyright 2023 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//go:build (unix && !linux) || (js && wasm) || wasip1 || windows
6
7package os
8
9import "syscall"
10
11func ensurePidfd(sysAttr *syscall.SysProcAttr) (*syscall.SysProcAttr, bool) {
12	return sysAttr, false
13}
14
15func getPidfd(_ *syscall.SysProcAttr, _ bool) (uintptr, bool) {
16	return 0, false
17}
18
19func pidfdFind(_ int) (uintptr, error) {
20	return 0, syscall.ENOSYS
21}
22
23func (p *Process) pidfdRelease() {}
24
25func (_ *Process) pidfdWait() (*ProcessState, error) {
26	panic("unreachable")
27}
28
29func (_ *Process) pidfdSendSignal(_ syscall.Signal) error {
30	panic("unreachable")
31}
32