--- libgo/go/net/sendfile_bsd.go.orig 2020-03-04 19:30:03.000000000 +1100 +++ libgo/go/net/sendfile_bsd.go 2020-09-22 00:16:48.304398000 +1000 @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build dragonfly freebsd +// +build bsdsunix dragonfly freebsd package net @@ -20,7 +20,7 @@ // // if handled == false, sendFile performed no work. func sendFile(c *netFD, r io.Reader) (written int64, err error, handled bool) { - // FreeBSD and DragonFly use 0 as the "until EOF" value. + // BSDSUniX, FreeBSD and DragonFly use 0 as the "until EOF" value. // If you pass in more bytes than the file contains, it will // loop back to the beginning ad nauseam until it's sent // exactly the number of bytes told to. As such, we need to @@ -48,7 +48,7 @@ remain = fi.Size() } - // The other quirk with FreeBSD/DragonFly's sendfile + // The other quirk with BSDSUniX/FreeBSD/DragonFly's sendfile // implementation is that it doesn't use the current position // of the file -- if you pass it offset 0, it starts from // offset 0. There's no way to tell it "start from current