Boost logo

Boost Users :

From: Julio M. Merino Vidal (jmmv84_at_[hidden])
Date: 2005-06-29 03:56:05


On Wed, 2005-06-22 at 13:35 -0400, Beman Dawes wrote:
> "Thomas Matelich" <matelich_at_[hidden]> wrote in message
> news:3944d45805062113231fa767ff_at_mail.gmail.com...
> > On 6/21/05, remi.chateauneu_at_[hidden] <remi.chateauneu_at_[hidden]> 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 <sys/vfs.h> and statfs()
> instead of the POSIX <sys/statvfs.h> 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 <jmmv84_at_[hidden]>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net