]> Cypherpunks repositories - gostls13.git/commit
internal/poll, internal/syscall/unix, net: enable writev on illumos
authorTobias Klauser <tklauser@distanz.ch>
Mon, 14 Sep 2020 09:06:39 +0000 (11:06 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 15 Sep 2020 05:08:53 +0000 (05:08 +0000)
commit3b64e6b010775839f2daef4ac3fb607bf1519e05
treed0e917f9caa9aed787f769b326c67b7f2b926fb3
parentbae9cf651796db898b1e4bd77a1a47c5f2d7b04d
internal/poll, internal/syscall/unix, net: enable writev on illumos

Illumos supports iovec read/write. Add the writev wrapper to
internal/syscall/unix and use it to implement internal/poll.writev for
net.(*netFD).writeBuffers.

Change-Id: Ie256c2f96aba8e61fb21991788789a049425f792
Reviewed-on: https://go-review.googlesource.com/c/go/+/254638
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Tobias Klauser <tobias.klauser@gmail.com>
src/internal/poll/fd_writev_illumos.go [new file with mode: 0644]
src/internal/poll/iovec_illumos.go [new file with mode: 0644]
src/internal/poll/iovec_unix.go [new file with mode: 0644]
src/internal/poll/writev.go
src/internal/syscall/unix/writev_illumos.go [new file with mode: 0644]
src/net/writev_test.go
src/net/writev_unix.go