2 use test::helper qw($_real $_point);
4 require 'syscall.ph'; # for SYS_statfs
6 my ($statfs_data) = 0x00 x 8 x 16;
8 ok(!syscall(&SYS_statfs,$tmp,$statfs_data),"statfs");
9 # FIXME: this is soooooo linux-centric. perhaps parse the output of /bin/df?
10 my @list = unpack("L!7L2L!7",$statfs_data);
11 diag "statfs: ",join(', ', @list);
13 is(shift(@list),4096,"block size");
14 is(shift(@list),1000000,"blocks");
15 is(shift(@list),500000,"blocks free");
17 is(shift(@list),1000000,"files");
18 is(shift(@list),500000,"files free");
21 is(shift(@list),255,"namelen");