go/src/syscall/exec_unix.go

var ForkLock

// StringSlicePtr converts a slice of strings to a slice of pointers
// to NUL-terminated byte arrays. If any string contains a NUL byte
// this function panics instead of returning an error.
//
// Deprecated: Use [SlicePtrFromStrings] instead.
func StringSlicePtr(ss []string) []*byte {}

// SlicePtrFromStrings converts a slice of strings to a slice of
// pointers to NUL-terminated byte arrays. If any string contains
// a NUL byte, it returns (nil, [EINVAL]).
func SlicePtrFromStrings(ss []string) ([]*byte, error) {}

func CloseOnExec(fd int) {}

func SetNonblock(fd int, nonblocking bool) (err error) {}

type Credential

type ProcAttr

var zeroProcAttr

var zeroSysProcAttr

func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error) {}

// Combination of fork and exec, careful to be thread safe.
func ForkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error) {}

// StartProcess wraps [ForkExec] for package os.
func StartProcess(argv0 string, argv []string, attr *ProcAttr) (pid int, handle uintptr, err error) {}

// Implemented in runtime package.
func runtime_BeforeExec()

func runtime_AfterExec()

var execveLibc

var execveDarwin

var execveOpenBSD

// Exec invokes the execve(2) system call.
func Exec(argv0 string, argv []string, envv []string) (err error) {}