]> Cypherpunks repositories - gostls13.git/commit
syscall: introduce IoctlPtr for exec_unix tests
authorDmitri Goutnik <dgoutnik@gmail.com>
Mon, 20 Feb 2023 11:55:42 +0000 (06:55 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 21 Feb 2023 23:33:24 +0000 (23:33 +0000)
commitfeb355c427590df3aee7f3c0ee4adc0290c577a4
tree9b9391487f81d92d8b0810a1cda421725151cd71
parented33ae10a011c85f51be2c970f52d769722b0ec7
syscall: introduce IoctlPtr for exec_unix tests

Avoid passing Go pointers as uintptr in exec_unix_test.go by introducing
syscall.IoctlPtr() which accepts arg as unsafe.Pointer.

For #44834
Fixes #58609

Change-Id: I6d0ded023e5f3c9989783aee7075bb88100d9ec2
Reviewed-on: https://go-review.googlesource.com/c/go/+/469675
Run-TryBot: Dmitri Goutnik <dgoutnik@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/syscall/exec_aix_test.go
src/syscall/exec_libc.go
src/syscall/exec_solaris_test.go
src/syscall/exec_unix_test.go
src/syscall/export_darwin_test.go
src/syscall/export_unix_test.go