silly statfs() question

topic posted Tue, November 21, 2006 - 6:30 PM by 

Hello, all ...

I'm trying to determine the amount of free space on the disk ... normally, the statfs() POSIX call does this, but the OSX version doesn't seem to handle 64-bit file lengths (those longs in the statfs struct indicate this). On AIX, statfs64() does this, and I do see vfsstatfs() in /usr/include/sys/mount.h on OSX that has int64_t types, but is this the way to do it on OSX?

Any help would be appreciated!

Regards,

John, porting more Windows code to OSX :-)

Falling You - exploring the beauty of voice and sound
www.fallingyou.com

posted by:

Recent topics in "OS X Development"

Topic Author Replies Last Post
component kind Beau 1 January 20, 2008
grr -- having much difficulty building even the simplest plugi... 0 January 10, 2008
struct proc and sysctl(3) hoco 3 December 12, 2007
Xcode 3.0 0 November 28, 2007