]> Cypherpunks.ru repositories - gostls13.git/commitdiff
syscall: fix missing use of use function in Getfsstat
authorMikio Hara <mikioh.mikioh@gmail.com>
Sun, 3 Jul 2016 23:45:10 +0000 (08:45 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Mon, 4 Jul 2016 03:17:02 +0000 (03:17 +0000)
Updates #13372.

Change-Id: If383c14af14839a303425ba7b80b97e35ca9b698
Reviewed-on: https://go-review.googlesource.com/24750
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/syscall_darwin.go
src/syscall/syscall_dragonfly.go
src/syscall/syscall_freebsd.go

index 1a3efd1e8f4f519c295fdaac9c99215c183e07f2..380be70fad0eb9c2307fa18a83db7d5777d30402 100644 (file)
@@ -196,6 +196,7 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
                bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
        }
        r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(_p0), bufsize, uintptr(flags))
+       use(unsafe.Pointer(_p0))
        n = int(r0)
        if e1 != 0 {
                err = e1
index 7e693290a88fd35a4e0ad968765a6e88863c17f1..4080b6ba3c006b7f02693172ec26cc6db00a2816 100644 (file)
@@ -109,6 +109,7 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
                bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
        }
        r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
+       use(unsafe.Pointer(_p0))
        n = int(r0)
        if e1 != 0 {
                err = e1
index 7bb163a53b8dab48a55eaab1a366c50f56299c11..950dc64910fd871a0e76751516407e14c0703251 100644 (file)
@@ -129,6 +129,7 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
                bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
        }
        r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
+       use(unsafe.Pointer(_p0))
        n = int(r0)
        if e1 != 0 {
                err = e1