]> Cypherpunks repositories - gostls13.git/commit
syscall: document Sendfile semantics
authorBill Morgan <arthurwilliammorgan@gmail.com>
Sun, 18 Jan 2026 14:11:05 +0000 (14:11 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 22 Jan 2026 21:07:52 +0000 (13:07 -0800)
commita006e17162ddf70b7ee23a8ec2e3e064d0102bd5
treea804165f8c71433befe32597f0f42de3ae0a4631
parent858d4bf8511a7741cf5c21f1d51b23ed180fd450
syscall: document Sendfile semantics

syscall.Sendfile behavior differs significantly between operating
systems.

Document the platform-specific behavior for the offset argument and
partial write reporting on Linux versus BSD-derived systems.

Fixes #64044

Change-Id: I93f740c3e2df911a10bf0884ffab218d4bb4e5fc
GitHub-Last-Rev: a11b898bb98f2a136caaba875033f1c155c1c872
GitHub-Pull-Request: golang/go#77224
Reviewed-on: https://go-review.googlesource.com/c/go/+/737122
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/syscall_unix.go