[libc-commits] [libc] [libc] add linux specific statfs (PR #85953)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Mar 21 09:24:37 PDT 2024


nickdesaulniers wrote:

> https://man7.org/linux/man-pages/man2/statfs.2.html#HISTORY

> The original Linux statfs() and fstatfs() system calls were not
       designed with extremely large file sizes in mind.  Subsequently,
       Linux 2.6 added new statfs64() and fstatfs64() system calls that
       employ a new structure, statfs64.  The new structure contains the
       same fields as the original statfs structure, but the sizes of
       various fields are increased, to accommodate large file sizes.
       The glibc statfs() and fstatfs() wrapper functions transparently
       deal with the kernel differences.

> LSB has deprecated the library calls statfs() and fstatfs() and tells us to use [statvfs(3)](https://man7.org/linux/man-pages/man3/statvfs.3.html) and [fstatvfs(3)](https://man7.org/linux/man-pages/man3/fstatvfs.3.html) instead.

https://github.com/llvm/llvm-project/pull/85953


More information about the libc-commits mailing list