Skip to content

Commit 59bdbb3

Browse files
panjf2000gopherbot
authored andcommitted
net: add the missing OS Darwin in the comment of sendFile
Change-Id: Ice7e3762d4a1d71e23d619be699697f5c6523cc5 Reviewed-on: https://go-review.googlesource.com/c/go/+/425879 Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 5cfeaed commit 59bdbb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net/sendfile_unix_alt.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
//
2121
// if handled == false, sendFile performed no work.
2222
func sendFile(c *netFD, r io.Reader) (written int64, err error, handled bool) {
23-
// FreeBSD, DragonFly and Solaris use 0 as the "until EOF" value.
23+
// Darwin, FreeBSD, DragonFly and Solaris use 0 as the "until EOF" value.
2424
// If you pass in more bytes than the file contains, it will
2525
// loop back to the beginning ad nauseam until it's sent
2626
// exactly the number of bytes told to. As such, we need to
@@ -48,7 +48,7 @@ func sendFile(c *netFD, r io.Reader) (written int64, err error, handled bool) {
4848
remain = fi.Size()
4949
}
5050

51-
// The other quirk with FreeBSD/DragonFly/Solaris's sendfile
51+
// The other quirk with Darwin/FreeBSD/DragonFly/Solaris's sendfile
5252
// implementation is that it doesn't use the current position
5353
// of the file -- if you pass it offset 0, it starts from
5454
// offset 0. There's no way to tell it "start from current

0 commit comments

Comments
 (0)