aboutsummaryrefslogtreecommitdiff
path: root/libgo/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-12-13 22:07:25 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-12-13 22:07:25 +0000
commitde05aad6833ce65a439fbeb2994df169112cba5e (patch)
tree039261e25953b5b0565a3994b8a96a27ed7ee01c /libgo/go
parent4ad9a9de2ddabf6186f32895e0b7a182ba8f2abb (diff)
downloadgcc-de05aad6833ce65a439fbeb2994df169112cba5e.zip
gcc-de05aad6833ce65a439fbeb2994df169112cba5e.tar.gz
gcc-de05aad6833ce65a439fbeb2994df169112cba5e.tar.bz2
syscall: Don't build wait status functions on RTEMS.
From-SVN: r182313
Diffstat (limited to 'libgo/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 74b0af5..35bb174 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
}