]> Cypherpunks repositories - gostls13.git/commit
internal/poll, net, syscall: enable writev on aix
authorTobias Klauser <tklauser@distanz.ch>
Mon, 3 Oct 2022 18:00:43 +0000 (20:00 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 7 Oct 2022 16:48:35 +0000 (16:48 +0000)
commitcabf9fe4f2d7e5adfa7007e11f508b111d07a2f6
tree36b3aa2b6efda68e273f069701e7548d2291d863
parentd0b0b10b5cbb28d53403c2bd6af343581327e946
internal/poll, net, syscall: enable writev on aix

aix supports iovec read/write, see
https://www.ibm.com/docs/en/aix/7.2?topic=w-write-writex-write64x-writev-writevx-ewrite-ewritev-pwrite-pwritev-subroutine

Define an unexported writev wrapper in package syscall (like on openbsd
and darwin) and linkname it from internal/poll.

Change-Id: I8f9695ceac72ae861afa3692207c154d86d4e690
Reviewed-on: https://go-review.googlesource.com/c/go/+/435260
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
src/internal/poll/fd_writev_libc.go
src/internal/poll/iovec_unix.go
src/internal/poll/writev.go
src/net/writev_test.go
src/net/writev_unix.go
src/syscall/syscall_aix.go
src/syscall/zsyscall_aix_ppc64.go