Old NetBSD had it. i.e. statvfs added circa NetBSD 2.0, statfs existed in 1.x and was preserved for compatibility.
We probably could call the old one for compatibility, on x86, i.e. to run on 1.0.
Or the other way around, we could probably use statvfs on all systems. Still, it'd be nice to investigate and test the long list of usual suspects: OpenBSD, FreeBSD, Mac, HP-UX, AIX, Irix, OpenVMS, Solaris, OSF/1, Haiku, Cygwin, DJGPP. Or some subset.
Old NetBSD had it. i.e. statvfs added circa NetBSD 2.0, statfs existed in 1.x and was preserved for compatibility.
We probably could call the old one for compatibility, on x86, i.e. to run on 1.0.
Or the other way around, we could probably use statvfs on all systems. Still, it'd be nice to investigate and test the long list of usual suspects: OpenBSD, FreeBSD, Mac, HP-UX, AIX, Irix, OpenVMS, Solaris, OSF/1, Haiku, Cygwin, DJGPP. Or some subset.