aboutsummaryrefslogtreecommitdiff
path: root/src/os/pidfd_other.go
blob: bb38c724042bc27c545dce71b241a8ec5e6e87db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2023 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.

//go:build (unix && !linux) || (js && wasm) || wasip1 || windows

package os

import "syscall"

func ensurePidfd(sysAttr *syscall.SysProcAttr) *syscall.SysProcAttr {
	return sysAttr
}

func getPidfd(_ *syscall.SysProcAttr) uintptr {
	return unsetHandle
}

func pidfdFind(_ int) (uintptr, error) {
	return unsetHandle, syscall.ENOSYS
}

func (p *Process) pidfdRelease() {}

func (_ *Process) pidfdWait() (*ProcessState, error) {
	return nil, syscall.ENOSYS
}

func (_ *Process) pidfdSendSignal(_ syscall.Signal) error {
	return syscall.ENOSYS
}