syscalls: annotate Sendfile() for race detector

Fixes #4306.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/6816054
This commit is contained in:
Dmitriy Vyukov 2012-10-29 23:15:06 +04:00
parent 4918e3a960
commit c242aa34cc
13 changed files with 20 additions and 13 deletions

View file

@ -1484,7 +1484,7 @@ func Lstat(path string, stat *Stat_t) (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
written = int(r0)
if e1 != 0 {