diff options
author | Matt Layher <mdlayher@gmail.com> | 2021-08-09 17:12:37 -0400 |
---|---|---|
committer | Matt Layher <mdlayher@gmail.com> | 2021-08-16 16:58:24 +0000 |
commit | a0adf91d85bcb10fac394da063c8abc1c60d8eb2 (patch) | |
tree | d9c9b17a5ca51088ba6377c4e311f61714c9d013 /src/internal | |
parent | 5a401001417151649363a4b2fbd658f3f1957cba (diff) | |
download | go-a0adf91d85bcb10fac394da063c8abc1c60d8eb2.tar.gz go-a0adf91d85bcb10fac394da063c8abc1c60d8eb2.zip |
internal/syscall/unix: change Ioctl arg type to unsafe.Pointer on AIX
Without this change, this code is technically in violation of the
unsafe.Pointer rules since the conversion from unsafe.Pointer to uintptr has
to happen when calling into the syscall6 assembly implementation.
Change-Id: I4821f5bf9788c8fa2efeb041f811ed092e07ae74
Reviewed-on: https://go-review.googlesource.com/c/go/+/340949
Trust: Matt Layher <mdlayher@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/syscall/unix/ioctl_aix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/syscall/unix/ioctl_aix.go b/src/internal/syscall/unix/ioctl_aix.go index 19d56c36a1..d361533b5c 100644 --- a/src/internal/syscall/unix/ioctl_aix.go +++ b/src/internal/syscall/unix/ioctl_aix.go @@ -16,7 +16,7 @@ var libc_ioctl uintptr // Implemented in syscall/syscall_aix.go. func syscall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) -func Ioctl(fd int, cmd int, args uintptr) (err error) { +func Ioctl(fd int, cmd int, args unsafe.Pointer) (err error) { _, _, e1 := syscall6(uintptr(unsafe.Pointer(&libc_ioctl)), 3, uintptr(fd), uintptr(cmd), uintptr(args), 0, 0, 0) if e1 != 0 { err = e1 |