unix

package
v2.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLD_EXITED    = 1 // Child has exited
	CLD_KILLED    = 2 // Child was killed
	CLD_DUMPED    = 3 // Child terminated abnormally
	CLD_TRAPPED   = 4 // Traced child has trapped
	CLD_STOPPED   = 5 // Child has stopped
	CLD_CONTINUED = 6 // Stopped child has continued
)

Variables

This section is empty.

Functions

func PidFDOpen

func PidFDOpen(pid, flags int) (uintptr, error)

func PidFDSendSignal

func PidFDSendSignal(pidfd uintptr, s syscall.Signal) error

func PidFDWorks

func PidFDWorks() bool

func Ptrace

func Ptrace(request int, pid int, addr uintptr, data uintptr) error

func Waitid

func Waitid(idType int, id int, info *SiginfoChld, options int, rusage *unix.Rusage) (err error)

Types

type SiginfoChld

type SiginfoChld struct {
	Signo int32 // Signal number.
	Errno int32 // If non-zero, an errno value associated with this signal.
	Code  int32 // Signal code.

	Pid    int // Which child.
	Status int // Exit value or signal.
	Uid    int // Real user ID of sending process.
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL