1 // exec_stubs.go -- fork/exec stubs.
3 // Copyright 2010 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Stubs for fork, exec and wait.
11 func ForkExec(argv0 string, argv []string, envv []string, dir string, fd []int) (pid int, err int) {
15 func PtraceForkExec(argv0 string, argv []string, envv []string, dir string, fd []int) (pid int, err int) {
19 func Exec(argv0 string, argv []string, envv []string) (err int) {
23 func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, errno int) {