1234567891011121314151617 |
- $OpenBSD: patch-libgo_syscalls_syscall_openbsd_go,v 1.1 2011/11/19 22:19:53 pascal Exp $
- --- libgo/syscalls/syscall_openbsd.go.orig Thu Nov 17 19:48:41 2011
- +++ libgo/syscalls/syscall_openbsd.go Thu Nov 17 23:43:07 2011
- @@ -0,0 +1,12 @@
- +// Copyright 2009 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"
- +
- +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))
|