File:  [DVB] / dietlibc / lib / statvfs.c
Revision 1.2: download - view: text, annotated - select for diffs
Fri May 9 04:36:56 2008 UTC (16 years, 1 month ago) by leitner
Branches: MAIN
CVS tags: HEAD
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;
}


LinuxTV legacy CVS <linuxtv.org/cvs>