syscall: call f?statfs64 on GNU/Linux
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 21 Jul 2017 20:25:13 +0000 (20:25 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 21 Jul 2017 20:25:13 +0000 (20:25 +0000)
commit0901429d474107af56cef0a72da6cedf9d42fcfc
treeb4020c6e1e105ea5cc78e2abefa9ae1bb43fecce
parent325fe81618c822b8cac4fd31c1ec57066ef338cf
syscall: call f?statfs64 on GNU/Linux

    We unconditionally set _FILE_OFFSET_BITS to 64 in configure.ac, so we
    should unconditionally call the statfs64 and fstatfs64 functions.
    These functions should be available on all versions of GNU/Linux since 2.6.
    On 64-bit systems they are aliased to statfs/fstatfs, and on 32-bit
    systems they use the 64-bit data structures.

    Fixes golang/go#20922

    Reviewed-on: https://go-review.googlesource.com/50635

From-SVN: r250443
gcc/go/gofrontend/MERGE
libgo/go/syscall/libcall_linux.go