summaryrefslogtreecommitdiff
path: root/src/stat/statvfs.c
AgeCommit message (Collapse)AuthorFilesLines
2018-09-12remove spurious inclusion of libc.h for LFS64 ABI aliasesRich Felker1-5/+4
the LFS64 macro was not self-documenting and barely saved any characters. simply use weak_alias directly so that it's clear what's being done, and doesn't depend on a header to provide a strange macro.
2018-09-12remove or make static various unused __-prefixed symbolsRich Felker1-2/+2
2013-07-19improve [f]stat[v]fs functions, and possibly work around old kernelsRich Felker1-2/+5
the main aim of this patch is to ensure that if not all fields are filled in, they contain zeros, so as not to confuse applications. reportedly some older kernels, including commonly used openvz kernels, lack the f_flags field, resulting in applications reading random junk as the mount flags; the common symptom seems to be wrongly considering the filesystem to be mounted read-only and refusing to operate. glibc has some amazingly ugly fallback code to get the mount flags for old kernels, but having them really is not that important anyway; what matters most is not presenting incorrect flags to the application. I have also aimed to fill in some fields of statvfs that were previously missing, and added code to explicitly zero the reserved space at the end of the structure, which will make things easier in the future if this space someday needs to be used.
2012-09-06use restrict everywhere it's required by c99 and/or posix 2008Rich Felker1-1/+1
to deal with the fact that the public headers may be used with pre-c99 compilers, __restrict is used in place of restrict, and defined appropriately for any supported compiler. we also avoid the form [restrict] since older versions of gcc rejected it due to a bug in the original c99 standard, and instead use the form *restrict.
2011-09-20fix statvfs.c to match new fsid_t definitionRich Felker1-1/+1
2011-09-19fix the definition of struct statvfs to match lsb abiRich Felker1-2/+46
at the same time, make struct statfs match the traditional definition and make it more useful, especially the fsid_t stuff.
2011-04-05fix (hopefully) statvfs breakage on x86_64 that resulted from fixing i386...Rich Felker1-1/+5
2011-04-03fix statvfs syscalls (missing size argument)Rich Felker1-1/+1
2011-03-20global cleanup to use the new syscall interfaceRich Felker1-1/+1
2011-02-15finish moving 32-bit-specific junk out of source files.Rich Felker1-1/+1
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+13