OSDN Git Service

628e781ba3c9400c409c3d18f9c29cb07de51227
[pf3gnuchains/gcc-fork.git] / libgo / syscalls / syscall_solaris_amd64.go
1 // syscall_solaris_amd64.go -- Solaris/x64 specific support
2
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.
6
7 package syscall
8
9 import "unsafe"
10
11 const ARCH = "amd64"
12
13 // FIXME: ptrace(3C) has this, but exec.go expects the next.
14 //func libc_ptrace(request int, pid Pid_t, addr int, data int) int __asm__ ("ptrace")
15
16 // 64-bit ptrace(3C) doesn't exist
17 func libc_ptrace(request int, pid Pid_t, addr uintptr, data *byte) int {
18         errno := ENOSYS
19         return -1
20 }
21
22 var dummy *byte
23 const sizeofPtr uintptr = uintptr(unsafe.Sizeof(dummy))