Skip to content

Commit 1fb7954

Browse files
zhsjtklauser
authored andcommitted
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Tobias Klauser <[email protected]>
1 parent e2d4c69 commit 1fb7954

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

unix/syscall_linux_arm.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
package unix
88

99
import (
10-
"syscall"
1110
"unsafe"
1211
)
1312

@@ -49,10 +48,6 @@ func Pipe2(p []int, flags int) (err error) {
4948
return
5049
}
5150

52-
// Underlying system call writes to newoffset via pointer.
53-
// Implemented in assembly to avoid allocation.
54-
func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
55-
5651
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
5752
newoffset, errno := seek(fd, offset, whence)
5853
if errno != 0 {

unix/syscall_linux_gc_arm.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright 2009 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.
4+
5+
// +build arm,!gccgo,linux
6+
7+
package unix
8+
9+
import "syscall"
10+
11+
// Underlying system call writes to newoffset via pointer.
12+
// Implemented in assembly to avoid allocation.
13+
func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)

0 commit comments

Comments
 (0)