mirror of
https://github.com/rwinkhart/sys.git
synced 2026-10-27 19:59:59 -04:00
unix: disable ptrace on iOS
The ptrace system call is blocked by the App Store. Updates golang/go#31628 Change-Id: I88977cb2f0892661a7221bc822dd513a951cbf67 Reviewed-on: https://go-review.googlesource.com/c/sys/+/182317 Run-TryBot: Elias Naur <mail@eliasnaur.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
1 parent
9eafafc0a8
commit
4e8604ab3a
14 files changed
+56
-79
No files matched your search
@@ -10,6 +10,10 @@ import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func ptrace(request int, pid int, addr uintptr, data uintptr) error {
|
||||
return ENOTSUP
|
||||
}
|
||||
|
||||
func setTimespec(sec, nsec int64) Timespec {
|
||||
return Timespec{Sec: sec, Nsec: nsec}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user