crypt: Remove manul entry for --enable-crypt
[glibc.git] / io / tst-statvfs.c
blobfb23733667d8aa345d73049cbda1bcdf1b634606
1 #include <stdio.h>
2 #include <sys/statfs.h>
3 #include <sys/statvfs.h>
4 #include <support/check.h>
7 /* This test cannot detect many errors. But it will fail if the
8 statvfs is completely hosed and it'll detect a missing export. So
9 it is better than nothing. */
10 static int
11 do_test (int argc, char *argv[])
13 for (int i = 1; i < argc; ++i)
15 struct statvfs st;
16 struct statfs stf;
17 TEST_COMPARE (statvfs (argv[i], &st), 0);
18 TEST_COMPARE (statfs (argv[i], &stf), 0);
19 TEST_COMPARE (st.f_type, (unsigned int) stf.f_type);
20 printf ("%s: free: %llu, mandatory: %s, tp=%x\n", argv[i],
21 (unsigned long long int) st.f_bfree,
22 #ifdef ST_MANDLOCK
23 (st.f_flag & ST_MANDLOCK) ? "yes" : "no",
24 #else
25 "no",
26 #endif
27 st.f_type);
29 return 0;
32 #define TEST_FUNCTION do_test (argc, argv)
33 #include "../test-skeleton.c"