Skip to content

Commit cc0b67d

Browse files
committed
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 <[email protected]> Reviewed-by: Tobias Klauser <[email protected]> Reviewed-by: Than McIntosh <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Dmitri Goutnik <[email protected]>
1 parent a3b23cc commit cc0b67d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unix/syscall_aix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func (w WaitStatus) CoreDump() bool { return w&0x80 == 0x80 }
411411
func (w WaitStatus) TrapCause() int { return -1 }
412412

413413
//sys ioctl(fd int, req uint, arg uintptr) (err error)
414-
//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error)
414+
//sys ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = ioctl
415415

416416
// fcntl must never be called with cmd=F_DUP2FD because it doesn't work on AIX
417417
// There is no way to create a custom fcntl and to keep //sys fcntl easily,

0 commit comments

Comments
 (0)