Return to statvfs.c CVS log | Up to [DVB] / dietlibc / lib |
enable additional warnings shut those warnings up :-) try to make stdio thread-safe
#define _FILE_OFFSET_BITS 64 #include <sys/statvfs.h> #include <sys/statfs.h> extern void __statvfs_cvt(struct statfs* from,struct statvfs* to); int statvfs(const char *path, struct statvfs *sv) { struct statfs ss; if (statfs(path,&ss)==-1) return -1; __statvfs_cvt(&ss,sv); return 0; }