1 // RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
3 // UNSUPPORTED: linux, solaris
7 #if defined(__NetBSD__)
8 #include <sys/statvfs.h>
10 #include <sys/mount.h>
18 printf("getmntinfo\n");
20 #if defined(__NetBSD__)
25 int nfss = getmntinfo(&fss, MNT_NOWAIT);
27 errx(1, "getmntinfo");
29 for (int i = 0; i < nfss; i++)
30 printf("%d: %s\n", i, fss[i].f_fstypename);