2011-10-08 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libgo / syscalls / exec_stubs.go
blob7b4346cc4c5b2f43376caa4c350c14d8efd7c15c
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.
9 package syscall
11 func ForkExec(argv0 string, argv []string, envv []string, dir string, fd []int) (pid int, err int) {
12 return -1, ENOSYS;
15 func PtraceForkExec(argv0 string, argv []string, envv []string, dir string, fd []int) (pid int, err int) {
16 return -1, ENOSYS;
19 func Exec(argv0 string, argv []string, envv []string) (err int) {
20 return ENOSYS;
23 func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, errno int) {
24 return -1, ENOSYS;