Files
sys/unix/syscall_linux_gc_arm.go
Shengjing Zhu 1fb7954272 unix: fix redefinition of seek func on arm and gccgo
Change-Id: Ia23cb723766e9d76d51c24ace0157f47cb5b34ae
Reviewed-on: https://go-review.googlesource.com/c/sys/+/249617
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
2020-08-20 21:24:57 +00:00

14 lines
408 B
Go

// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build arm,!gccgo,linux
package unix
import "syscall"
// Underlying system call writes to newoffset via pointer.
// Implemented in assembly to avoid allocation.
func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)