Download this file
| 1 | // Package sysunix is the slice of golang.org/x/sys/unix that the |
| 2 | // containment's launcher (linux.go) uses. On macOS the Linux-only calls |
| 3 | // refuse (ENOSYS): a Mac worker never starts a bubblewrap namespace. |
| 4 | package sysunix |
| 5 | |
| 6 | import ( |
| 7 | "golang.org/x/sys/unix" |
| 8 | ) |
| 9 | |
| 10 | type WaitStatus = unix.WaitStatus |
| 11 | |
| 12 | const ( |
| 13 | EINTR = unix.EINTR |
| 14 | ESRCH = unix.ESRCH |
| 15 | SIGKILL = unix.SIGKILL |
| 16 | PR_SET_DUMPABLE = 4 |
| 17 | CLOSE_RANGE_CLOEXEC = 4 |
| 18 | ) |
| 19 | |
| 20 | var ( |
| 21 | Close = unix.Close |
| 22 | Wait4 = unix.Wait4 |
| 23 | ) |
| 24 | |
| 25 | func CloseRange(uint, uint, uint) error { return unix.ENOSYS } |
| 26 | func PidfdSendSignal(int, unix.Signal, *Siginfo, int) error { return unix.ENOSYS } |
| 27 | func Prctl(int, uintptr, uintptr, uintptr, uintptr) error { return unix.ENOSYS } |
| 28 | |
| 29 | // Siginfo stands in for Linux's siginfo_t; only nil is ever passed. |
| 30 | type Siginfo struct{} |
| 31 | |