File:  [DVB] / dietlibc / lib / fstatvfs.c
Revision 1.1: download - view: text, annotated - select for diffs
Thu Oct 18 21:08:02 2007 UTC (16 years, 7 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
  add statvfs, fstatvfs

#define _FILE_OFFSET_BITS 64
#include <sys/statvfs.h>
#include <sys/statfs.h>

extern void __statvfs_cvt(struct statfs* from,struct statvfs* to);

int fstatvfs(int fd, struct statvfs *sv) {
  struct statfs ss;
  if (fstatfs(fd,&ss)==-1) return -1;
  __statvfs_cvt(&ss,sv);
  return 0;
}

LinuxTV legacy CVS <linuxtv.org/cvs>