8 char testfilename
[] = "RAM:__TEST__";
15 fd
= creat(testfilename
, 0777);
18 TEST((statfs(testfilename
, &buf
) != -1));
20 printf("Name:\t\t\t%s\n", buf
.f_mntonname
);
21 printf("Fundamental block size:\t%ld\n", buf
.f_fsize
);
22 printf("Optimal block size:\t%ld\n", buf
.f_bsize
);
23 printf("Number of blocks:\t%ld\n", buf
.f_blocks
);
24 printf("Free blocks:\t\t%ld\n", buf
.f_bfree
);
25 printf("Available blocks:\t%ld\n", buf
.f_bavail
);