// Package sysunix is the slice of golang.org/x/sys/unix that the // containment's launcher (linux.go) uses. On macOS the Linux-only calls // refuse (ENOSYS): a Mac worker never starts a bubblewrap namespace. package sysunix import ( "golang.org/x/sys/unix" ) type WaitStatus = unix.WaitStatus const ( EINTR = unix.EINTR ESRCH = unix.ESRCH SIGKILL = unix.SIGKILL PR_SET_DUMPABLE = 4 CLOSE_RANGE_CLOEXEC = 4 ) var ( Close = unix.Close Wait4 = unix.Wait4 ) func CloseRange(uint, uint, uint) error { return unix.ENOSYS } func PidfdSendSignal(int, unix.Signal, *Siginfo, int) error { return unix.ENOSYS } func Prctl(int, uintptr, uintptr, uintptr, uintptr) error { return unix.ENOSYS } // Siginfo stands in for Linux's siginfo_t; only nil is ever passed. type Siginfo struct{}