2011-10-08 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libgo / syscalls / syscall_solaris_386.go
blob7ff8f5b07402a799ba764e9ce9969a702eac3557
1 // syscall_solaris_386.go -- Solaris/x86 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 func libc_ptrace(request int, pid Pid_t, addr uintptr, data *byte) int __asm__ ("ptrace")
16 var dummy *byte
17 const sizeofPtr uintptr = uintptr(unsafe.Sizeof(dummy))
19 // 32-bit Solaris 2/x86 needs to use _nuname internally, cf. <sys/utsname.h>.
20 func libc_uname(buf *Utsname) (errno int) __asm__("_nuname")