OSDN Git Service

PR go/47515
[pf3gnuchains/gcc-fork.git] / libgo / syscalls / syscall_irix.go
1 // syscall_irix.go -- IRIX 6 specific syscall interface.
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 // 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")
13
14 func libc_ptrace(request int, pid Pid_t, addr uintptr, data *byte) int __asm__ ("ptrace")
15
16 var dummy *byte
17 const sizeofPtr uintptr = uintptr(unsafe.Sizeof(dummy))