int statfs(const char *path, struct statfs *buf32) { #if 0 struct statfs64 buf; if (__fd_statfs(path, &buf) < 0) return -1; buf32->f_type = buf.f_type; buf32->f_bsize = buf.f_bsize; buf32->f_blocks = buf.f_blocks; buf32->f_bfree = buf.f_bfree; buf32->f_bavail = buf.f_bavail; buf32->f_files = buf.f_files; buf32->f_ffree = buf.f_ffree; buf32->f_fsid = buf.f_fsid; buf32->f_namelen = buf.f_namelen; return 0; #else return __fd_statfs(path, buf32); #endif }
int statfs(const char *path, struct statfs *buf) { return __fd_statfs(path, buf); }