Boost logo

Boost :

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


Hi,

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

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,
Kon

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

>
> "Kevin Wheatley" <hxpro_at_[hidden]> wrote in message
> news:43269DAA.3667BE36_at_cinesite.co.uk...
>> 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 */
<snip>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk