github.com/twelsh-aw/go/src@v0.0.0-20230516233729-a56fe86a7c81/syscall/ptrace_darwin.go (about)

     1  // Copyright 2020 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build !ios
     6  
     7  package syscall
     8  
     9  import "unsafe"
    10  
    11  // Nosplit because it is called from forkAndExecInChild.
    12  //
    13  //go:nosplit
    14  func ptrace(request int, pid int, addr uintptr, data uintptr) error {
    15  	return ptrace1(request, pid, addr, data)
    16  }
    17  
    18  //go:nosplit
    19  func ptracePtr(request int, pid int, addr unsafe.Pointer, data uintptr) error {
    20  	return ptrace1Ptr(request, pid, addr, data)
    21  }