Back to index

glibc  2.9
Defines | Functions
tst-statvfs.c File Reference
#include <stdio.h>
#include <sys/statvfs.h>
#include "../test-skeleton.c"

Go to the source code of this file.


#define TEST_FUNCTION   do_test (argc, argv)


static int do_test (int argc, char *argv[])

Define Documentation

#define TEST_FUNCTION   do_test (argc, argv)

Definition at line 29 of file tst-statvfs.c.

Function Documentation

static int do_test ( int  argc,
char *  argv[] 
) [static]

Definition at line 9 of file tst-statvfs.c.

  for (int i = 1; i < argc; ++i)
      struct statvfs st;
      if (statvfs (argv[i], &st) != 0)
        printf ("%s: failed (%m)\n", argv[i]);
        printf ("%s: free: %llu, mandatory: %s\n", argv[i],
                (unsigned long long int) st.f_bfree,
                (st.f_flag & ST_MANDLOCK) ? "yes" : "no"
  return 0;

Here is the call graph for this function: