unix: implement SyncFileRange for ARM

Change-Id: I5a98a732c0e6a229ab93acbce08b4f780f860f72
GitHub-Last-Rev: 886bffd986fbb7be149e7df3bda65331a74db0b8
GitHub-Pull-Request: golang/sys#16
Reviewed-on: https://go-review.googlesource.com/133015
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Andrei Gherzan
2018-09-03 17:15:48 +00:00
committed by Tobias Klauser
parent fa5fdf94c7
commit 1b73967140
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -141,6 +141,7 @@ 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)))