From cc0b67d799194cabea9c430e8f6fb3a5ab69c76d Mon Sep 17 00:00:00 2001 From: Dmitri Goutnik Date: Wed, 22 Feb 2023 09:37:55 -0500 Subject: [PATCH] unix: use C.ioctl in generated ioctlPtr Changes made in CL 469315 broke aix syscall wrapper generaton by generating a wrapper for a non-existent C.ioctl_ptr() function. Change-Id: Iaeee3056480637c62a09ea61e2ec14793c59790a Reviewed-on: https://go-review.googlesource.com/c/sys/+/470235 Reviewed-by: Bryan Mills Reviewed-by: Tobias Klauser Reviewed-by: Than McIntosh TryBot-Result: Gopher Robot Run-TryBot: Dmitri Goutnik --- unix/syscall_aix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/syscall_aix.go b/unix/syscall_aix.go index af9e02bd3..9eaa2f859 100644 --- a/unix/syscall_aix.go +++ b/unix/syscall_aix.go @@ -411,7 +411,7 @@ func (w WaitStatus) CoreDump() bool { return w&0x80 == 0x80 } func (w WaitStatus) TrapCause() int { return -1 } //sys ioctl(fd int, req uint, arg uintptr) (err error) -//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) +//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = ioctl // fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX // There is no way to create a custom fcntl and to keep //sys fcntl easily,