diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/syscall_freebsd.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/syscall_freebsd.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd.go b/vendor/golang.org/x/sys/unix/syscall_freebsd.go index 085a808..a7ca1eb 100644 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd.go +++ b/vendor/golang.org/x/sys/unix/syscall_freebsd.go | |||
@@ -500,6 +500,13 @@ func convertFromDirents11(buf []byte, old []byte) int { | |||
500 | return dstPos | 500 | return dstPos |
501 | } | 501 | } |
502 | 502 | ||
503 | func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { | ||
504 | if raceenabled { | ||
505 | raceReleaseMerge(unsafe.Pointer(&ioSync)) | ||
506 | } | ||
507 | return sendfile(outfd, infd, offset, count) | ||
508 | } | ||
509 | |||
503 | /* | 510 | /* |
504 | * Exposed directly | 511 | * Exposed directly |
505 | */ | 512 | */ |