2011-05-31 Gabriel Charette <gchare@google.com>
[official-gcc.git] / libgo / syscalls / syscall_solaris_sparc64.go
blob81e2010cd132508962fd6bf085bb8a4752c13c49
1 // syscall_solaris_sparc64.go -- Solaris/SPARCV9 specific support
3 // Copyright 2011 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 package syscall
9 import "unsafe"
11 // FIXME: ptrace(3C) has this, but exec.go expects the next.
12 //func libc_ptrace(request int, pid Pid_t, addr int, data int) int __asm__ ("ptrace")
14 // 64-bit ptrace(3C) doesn't exist
15 func libc_ptrace(request int, pid Pid_t, addr uintptr, data *byte) int {
16 SetErrno(ENOSYS)
17 return -1
20 var dummy *byte
21 const sizeofPtr uintptr = uintptr(unsafe.Sizeof(dummy))