• Paul Sokolovsky's avatar
    unix/modos: Add statvfs() function. · c3000b6f
    Paul Sokolovsky authored
    Another function (like stat) which is problematic to deal with on ABI level
    (FFI), as struct statvfs layout may differ unpredictably between OSes and
    even different versions of a same OS. So, implement it in C, returning a
    10-element tuple of f_bsize, f_frsize, f_blocks, f_bfree, f_bavail, f_files,
    f_ffree, f_favail, f_flag, f_namemax. This is exactly the order described
    in Python3 docs, https://docs.python.org/3/library/os.html#os.statvfs
    (but note that os.statvfs() should make these values available as