On Wed, 2005-06-22 at 13:35 -0400, Beman Dawes wrote:
"Thomas Matelich"
wrote in message news:3944d45805062113231fa767ff@mail.gmail.com... On 6/21/05, remi.chateauneu@gmx.de
wrote: I've got an implementation (independent of FileSystem) that works on windows, hp and linux (others I'm sure, but I don't use them) if anyone's interested.
Its really not that complicated. just a wrapper around statfs on unix and GetDiskFreeSpaceEx on windows.
Probably a dumb question, but why did you use
and statfs() instead of the POSIX and statvfs()? Were they not present on some of the target systems?
Note that some systems do not have statvfs. This is the case of, for example, NetBSD until 2.1, which only had statfs (sys/param.h and sys/mount.h required for it to work).
From statvfs' manpage:
HISTORY
The statvfs(), statvfs1(), fstatvfs(), and fstatvfs1() functions
first
appeared in NetBSD 2.1 to replace the statfs() family of functions
which
first appeared in 4.4BSD.
--
Julio M. Merino Vidal