mirror of
https://github.com/golang/go.git
synced 2026-01-29 07:02:05 +03:00
wip
This commit is contained in:
@@ -530,12 +530,12 @@ func Socketpair(domain, typ, proto int) (fd [2]int, err error) {
|
||||
// On Linux, if offset is nil, Sendfile uses and updates the current file
|
||||
// position of infd. If offset is non-nil, the current file position is
|
||||
// unchanged, and the offset pointer is updated to reflect the bytes written.
|
||||
// A non-nil error typically implies that no bytes were written.
|
||||
//
|
||||
// On BSD-derived systems (including macOS), the offset argument is not
|
||||
// updated by the system call; the caller must manually update the offset
|
||||
// using the number of bytes written. These systems may also return a
|
||||
// non-zero byte count together with an error (for example, EAGAIN).
|
||||
// On Linux, a non-nil error typically implies that no bytes were written.
|
||||
// On BSD-derived systems (including macOS), if offset is nil, Sendfile panics.
|
||||
// The offset argument is not updated by the system call; the caller must manually
|
||||
// update the offset using the number of bytes written. These systems may
|
||||
// return a non-zero byte count together with an error (for example, EAGAIN).
|
||||
//
|
||||
// For precise semantics, see the system documentation (e.g., man 2 sendfile).
|
||||
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||
|
||||
Reference in New Issue
Block a user