patch-libgo_syscalls_syscall_openbsd_go 607 B

1234567891011121314151617
  1. $OpenBSD: patch-libgo_syscalls_syscall_openbsd_go,v 1.1 2011/11/19 22:19:53 pascal Exp $
  2. --- libgo/syscalls/syscall_openbsd.go.orig Thu Nov 17 19:48:41 2011
  3. +++ libgo/syscalls/syscall_openbsd.go Thu Nov 17 23:43:07 2011
  4. @@ -0,0 +1,12 @@
  5. +// Copyright 2009 The Go Authors. All rights reserved.
  6. +// Use of this source code is governed by a BSD-style
  7. +// license that can be found in the LICENSE file.
  8. +
  9. +package syscall
  10. +
  11. +import "unsafe"
  12. +
  13. +func libc_ptrace(request int, pid Pid_t, addr uintptr, data *byte) int __asm__ ("ptrace")
  14. +
  15. +var dummy *byte
  16. +const sizeofPtr uintptr = uintptr(unsafe.Sizeof(dummy))