mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-31 06:16:41 -04:00
unix: remove raw syscall from Getfsstat
Use libc version instead. Update golang/go#17490 Change-Id: Ibcedccb9715961904d12fc85f69a7139b6c26658 Reviewed-on: https://go-review.googlesource.com/c/154660 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Keith Randall
parent
54d2441686
commit
4dcd0b7660
@@ -168,12 +168,7 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||
_p0 = unsafe.Pointer(&buf[0])
|
||||
bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
|
||||
}
|
||||
r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(_p0), bufsize, uintptr(flags))
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = e1
|
||||
}
|
||||
return
|
||||
return getfsstat(_p0, bufsize, flags)
|
||||
}
|
||||
|
||||
func xattrPointer(dest []byte) *byte {
|
||||
|
||||
Reference in New Issue
Block a user