Re: statfs and 64bit file lengths?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Dec 1, 2006, at 2:37 PM, jmzorko@mac.com wrote: [dualg5:~/temp] steve$ cat statfs.c #include <sys/param.h> #include <sys/mount.h> #include <stdio.h> int main() { struct statfs fs; statfs( "/", &fs ); printf( "%ld, %ld, %lld\n", fs.f_bsize, fs.f_bfree, (int64_t)fs.f_bsize*fs.f_bfree ); return 0; } [dualg5:~/temp] steve$ gcc -Wall statfs.c [dualg5:~/temp] steve$ ./a.out 4096, 16022995, 65630187520 -- Steve Checkoway _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com How do I determine the amount of free disk on a volume on OSX 10.4.x? The *nix statfs() API seems limited to 32bit file lengths, unless i'm misunderstanding something. Can someone send me a quick example of how to do this? smime.p7s
participants (1)
-
Steve Checkoway