mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
4918e3a960
commit
c242aa34cc
13 changed files with 20 additions and 13 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue