Commit 2b024373 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

Revert "unix: implement SyncFileRange for ARM"

This reverts commit 1b739671
(https://go-review.googlesource.com/c/sys/+/133015)

Reason for revert: breaks the build. No Syscall9 on linux/arm.
Not obvious this was ever compiled, much less tested. (Unless it
was only for gccgo, but that was never specified.)

Fixes golang/go#27475

Change-Id: I5ed04c9ab672ce33adc64bdaec601bf73df42269
Reviewed-on: https://go-review.googlesource.com/133095Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 1b739671
......@@ -141,7 +141,6 @@ func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
}
//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error)
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) = SYS_ARM_SYNC_FILE_RANGE
func Fstatfs(fd int, buf *Statfs_t) (err error) {
_, _, e := Syscall(SYS_FSTATFS64, uintptr(fd), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
......
......@@ -2177,16 +2177,6 @@ func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func SyncFileRange(fd int, off int64, n int64, flags int) (err error) {
_, _, e1 := Syscall9(SYS_ARM_SYNC_FILE_RANGE, uintptr(fd), 0, uintptr(off), uintptr(off>>32), uintptr(n), uintptr(n>>32), uintptr(flags), 0, 0)
if e1 != 0 {
err = errnoErr(e1)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func getrlimit(resource int, rlim *rlimit32) (err error) {
_, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
if e1 != 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment