1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build darwin dragonfly freebsd netbsd openbsd solaris
16 //sys sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
17 //sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
18 func Sendfile(outfd
int, infd
int, offset
*int64, count
int) (written
int, err error
) {
20 race
.ReleaseMerge(unsafe
.Pointer(&ioSync
))
25 soff
= Offset_t(*offset
)
28 written
, err
= sendfile(outfd
, infd
, psoff
, count
)