]> Cypherpunks repositories - gostls13.git/commit
internal/poll: check return value instead of errno for copy_file_range(2)
authorAndy Pan <i@andypan.me>
Thu, 29 Aug 2024 05:01:12 +0000 (13:01 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 3 Sep 2024 15:44:56 +0000 (15:44 +0000)
commit3da6c94d5ed62bf0c7fe682dcf46a1e53b72c2d9
tree089f6280d877049bc12f347cb15b8902e75c5b6a
parentacce4558a0168e625e9c70f20018dad6225adc0e
internal/poll: check return value instead of errno for copy_file_range(2)

There is one special case of (0, nil) indicating EOF where the updates
of zero to remain and written are redundant.

Change-Id: I017471657a9424fab88c72d14d3eb66d14a7e5c7
Reviewed-on: https://go-review.googlesource.com/c/go/+/609297
Run-TryBot: Andy Pan <panjf2000@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/internal/poll/copy_file_range_freebsd.go
src/internal/poll/copy_file_range_unix.go