re PR go/66378 (libgo syscall.Sendfile() does not honor/use offset argument)

PR go/66378
    syscall: Fix initial offset value in syscall.Sendfile.
    
    Bug reported in https://gcc.gnu.org/PR66378.
    
    Reviewed-on: https://go-review.googlesource.com/17159

From-SVN: r230700
This commit is contained in:
Ian Lance Taylor 2015-11-21 04:44:07 +00:00
parent 4c85cbac1e
commit 93b3c01bac
1 changed files with 1 additions and 0 deletions

View File

@ -327,6 +327,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
var soff Offset_t
var psoff *Offset_t
if offset != nil {
soff = Offset_t(*offset)
psoff = &soff
}
written, err = sendfile(outfd, infd, psoff, count)