mirror of
https://github.com/golang/sys.git
synced 2026-02-09 12:16:04 +03:00
The existing ptrace wrapper accepts pointer argument as an uintptr which often points to the memory allocated in Go. This violates unsafe.Pointer safety rules. For golang/go#58387 Change-Id: Ib3b4c50368725191f0862c6c7c6d46b0568523c7 Reviewed-on: https://go-review.googlesource.com/c/sys/+/469835 Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
19 lines
420 B
Go
19 lines
420 B
Go
// Copyright 2020 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.
|
|
|
|
//go:build ios
|
|
// +build ios
|
|
|
|
package unix
|
|
|
|
import "unsafe"
|
|
|
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
|
return ENOTSUP
|
|
}
|
|
|
|
func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) {
|
|
return ENOTSUP
|
|
}
|