oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

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.
4package sysunix
5
6import (
7 "golang.org/x/sys/unix"
8)
9
10type WaitStatus = unix.WaitStatus
11
12const (
13 EINTR = unix.EINTR
14 ESRCH = unix.ESRCH
15 SIGKILL = unix.SIGKILL
16 PR_SET_DUMPABLE = 4
17 CLOSE_RANGE_CLOEXEC = 4
18)
19
20var (
21 Close = unix.Close
22 Wait4 = unix.Wait4
23)
24
25func CloseRange(uint, uint, uint) error { return unix.ENOSYS }
26func PidfdSendSignal(int, unix.Signal, *Siginfo, int) error { return unix.ENOSYS }
27func 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.
30type Siginfo struct{}
31