]> Cypherpunks repositories - gostls13.git/commit
syscall: fix FreeBSD 386 sendfile
authorDavid G. Andersen <dave.andersen@gmail.com>
Tue, 3 Jul 2012 15:16:43 +0000 (08:16 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 3 Jul 2012 15:16:43 +0000 (08:16 -0700)
commit7b6541a5932d72781e215b2e8e77928ec7ef6839
treed86fc546d3ea20d728b23f2d5bc8e9af46a133ca
parenta0c688331f095126d8a079c249903e4a6728581f
syscall: fix FreeBSD 386 sendfile
The previous version was not handling an off_t (64 bit)
parameter on 32 bit i386 systems.  This patch splits sendfile
into two implementations in their respective arch-specific files.
Tested on FreeBSD amd64 and i386.

R=bradfitz
CC=golang-dev
https://golang.org/cl/6356048
src/pkg/syscall/syscall_freebsd.go
src/pkg/syscall/syscall_freebsd_386.go
src/pkg/syscall/syscall_freebsd_amd64.go