Elias Naur
10377860bb
unix: replace blocked dup2 calls with dup3 on Android
...
Android O and newer blocks access to the dup2 syscall. Route calls
to Dup2 to Dup3.
Change-Id: I76c0180db260ece4840b8ebf2736fb3f8c7ff9eb
Reviewed-on: https://go-review.googlesource.com/c/sys/+/231277
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Ian Lance Taylor <iant@golang.org >
2020-05-01 05:29:02 +00:00
Elias Naur
d223b2b6db
unix: disable sysctl on iOS
...
Running the regenerating scripts also brought in ClockGettime.
Updates golang/go#34133
Change-Id: I0eb9ed6dbbc2bdd7e3d2a7f5d88492e9dfed0ada
Reviewed-on: https://go-review.googlesource.com/c/sys/+/194097
Run-TryBot: Elias Naur <mail@eliasnaur.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com >
2019-09-07 18:44:12 +00:00
Elias Naur
4e8604ab3a
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 >
2019-08-12 17:24:37 +00:00
Elias Naur
cc5685c2db
unix: don't overwrite unrelated file descriptors in TestDup
...
TestDup used a file descriptor without ensuring it was free,
leading to rare crashes in the runtime netpoller when the victim fd
was the polling descriptor.
Updates golang/go#29423
Change-Id: Idc8b6b47f7e966e045f57f2028e7b6b79e0fb3f3
Reviewed-on: https://go-review.googlesource.com/c/163638
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com >
2019-02-25 06:59:34 +00:00