Back to index

glibc  2.9
statvfs.c File Reference
#include <stddef.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/statvfs.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


void __internal_statvfs (const char *name, struct statvfs *buf, struct statfs *fsbuf, struct stat64 *st)
int statvfs (const char *file, struct statvfs *buf)

Function Documentation

void __internal_statvfs ( const char *  name,
struct statvfs buf,
struct statfs fsbuf,
struct stat64 st 
int statvfs ( const char *  file,
struct statvfs buf 

Definition at line 30 of file statvfs.c.

  struct statfs fsbuf;
  struct stat64 st;

  /* Get as much information as possible from the system.  */
  if (__statfs (file, &fsbuf) < 0)
    return -1;

  /* Convert the result.  */
  __internal_statvfs (file, buf, &fsbuf,
                    stat64 (file, &st) == -1 ? NULL : &st);

  /* We signal success if the statfs call succeeded.  */
  return 0;

Here is the call graph for this function: