Back to index

glibc  2.9
fstatvfs.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 fstatvfs (int fd, struct statvfs *buf)

Function Documentation

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

Here is the caller graph for this function:

int fstatvfs ( int  fd,
struct statvfs buf 

Definition at line 30 of file fstatvfs.c.

  struct statfs fsbuf;
  struct stat64 st;

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

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

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

Here is the call graph for this function:

Here is the caller graph for this function: