Boost logo

Boost :

From: Kon Lovett (klovett_at_[hidden])
Date: 2005-09-13 09:03:25


statfs is a BSD creature, provided by BSD & BSD-derived (like Darwin)

Maybe use the

         long f_bavail; /* free blocks avail to non-superuser */

field rather than the

         long f_bfree; /* free blocks in fs */

Best wishes,

On Sep 13, 2005, at 4:46 AM, Beman Dawes wrote:

> "Kevin Wheatley" <hxpro_at_[hidden]> wrote in message
>> Beman Dawes wrote:
>>> How safe is the assumption that uintmax_t is large enough nowadays
>>> for
>>> any
>>> modern compiler on a system supporting large disks.
>> Under IRIX, you would use statfs() to get the free space from a path,
>> that returns a structure composed of 2 relavent parts both are of type
>> long:
>> long f_bsize; /* Block size */
>> long f_bfree; /* Count of free blocks */

Boost list run by bdawes at, gregod at, cpdaniel at, john at