summaryrefslogtreecommitdiff
path: root/libgo/go/syscall/exec_stubs.go
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-13 22:07:25 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-13 22:07:25 +0000
commitbaa8cbc79cec765219efec17b6a4d62a64e6e71b (patch)
tree039261e25953b5b0565a3994b8a96a27ed7ee01c /libgo/go/syscall/exec_stubs.go
parent949e5786db04eee7fe3feec227d76e6c54d56c3a (diff)
downloadgcc-baa8cbc79cec765219efec17b6a4d62a64e6e71b.tar.gz
syscall: Don't build wait status functions on RTEMS.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182313 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/syscall/exec_stubs.go')
-rw-r--r--libgo/go/syscall/exec_stubs.go16
1 files changed, 13 insertions, 3 deletions
diff --git a/libgo/go/syscall/exec_stubs.go b/libgo/go/syscall/exec_stubs.go
index 74b0af597e8..35bb17487b7 100644
--- a/libgo/go/syscall/exec_stubs.go
+++ b/libgo/go/syscall/exec_stubs.go
@@ -7,17 +7,27 @@
package syscall
func ForkExec(argv0 string, argv []string, envv []string, dir string, fd []int) (pid int, err int) {
- return -1, ENOSYS;
+ return -1, ENOSYS
}
func Exec(argv0 string, argv []string, envv []string) (err int) {
- return ENOSYS;
+ return ENOSYS
}
func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) {
- return -1, ENOSYS;
+ return -1, ENOSYS
}
+func (w WaitStatus) Exited() bool { return false }
+func (w WaitStatus) Signaled() bool { return false }
+func (w WaitStatus) Stopped() bool { return false }
+func (w WaitStatus) Continued() bool { return false }
+func (w WaitStatus) CoreDump() bool { return false }
+func (w WaitStatus) ExitStatus() int { return 0 }
+func (w WaitStatus) Signal() int { return 0 }
+func (w WaitStatus) StopSignal() int { return 0 }
+func (w WaitStatus) TrapCause() int { return 0 }
+
func raw_ptrace(request int, pid int, addr *byte, data *byte) Errno {
return ENOSYS
}