
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@cinesite.co.uk> wrote in message news:43269DAA.3667BE36@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>