Source file src/os/pidfd_other.go

     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  
     7  package os
     8  
     9  import "syscall"
    10  
    11  func ensurePidfd(sysAttr *syscall.SysProcAttr) (*syscall.SysProcAttr, bool) {
    12  	return sysAttr, false
    13  }
    14  
    15  func getPidfd(_ *syscall.SysProcAttr, _ bool) (uintptr, bool) {
    16  	return 0, false
    17  }
    18  
    19  func pidfdFind(_ int) (uintptr, error) {
    20  	return 0, syscall.ENOSYS
    21  }
    22  
    23  func (_ *Process) pidfdWait() (*ProcessState, error) {
    24  	panic("unreachable")
    25  }
    26  
    27  func (_ *Process) pidfdSendSignal(_ syscall.Signal) error {
    28  	panic("unreachable")
    29  }
    30  

View as plain text