aboutsummaryrefslogtreecommitdiff
path: root/libgo/syscalls/syscall_irix.go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-03-31 23:55:21 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-03-31 23:55:21 +0000
commit654d2ec080bc55454cd5fb8c74277be760de9c7c (patch)
tree12ffe01ea1bf061534d99f4b1731e48f6d17f424 /libgo/syscalls/syscall_irix.go
parentde90644af805b0ec9648de4354f9d26681e076a6 (diff)
downloadgcc-654d2ec080bc55454cd5fb8c74277be760de9c7c.zip
gcc-654d2ec080bc55454cd5fb8c74277be760de9c7c.tar.gz
gcc-654d2ec080bc55454cd5fb8c74277be760de9c7c.tar.bz2
re PR go/47515 (Issues porting libgo to IRIX 6.5)
PR go/47515 libgo: Add Irix support. From Rainer Orth. From-SVN: r171806
Diffstat (limited to 'libgo/syscalls/syscall_irix.go')
-rw-r--r--libgo/syscalls/syscall_irix.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/libgo/syscalls/syscall_irix.go b/libgo/syscalls/syscall_irix.go
new file mode 100644
index 0000000..e66cef0
--- /dev/null
+++ b/libgo/syscalls/syscall_irix.go
@@ -0,0 +1,17 @@
+// syscall_irix.go -- IRIX 6 specific syscall interface.
+
+// Copyright 2011 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package syscall
+
+import "unsafe"
+
+// FIXME: ptrace(3C) has this, but exec.go expects the next.
+//func libc_ptrace(request int, pid Pid_t, addr int, data int) int __asm__ ("ptrace")
+
+func libc_ptrace(request int, pid Pid_t, addr uintptr, data *byte) int __asm__ ("ptrace")
+
+var dummy *byte
+const sizeofPtr uintptr = uintptr(unsafe.Sizeof(dummy))