#include "stock.h" int std_statvfs(const char *path, Std_statvfs *buf)
The Solaris statvfs returned a unique integer f_fsid for each filesystem, while Linux always returns 0 in the f_fsid field. However, this field is used in rtm(1) and rtexec(1) to determine what the fields are. Consequently, std_statvfs returns the number of blocks used on the filesystem as the f_fsid field.
if ( std_statvfs(path, &stat) ) { complain ( 1, "std_statvfs failed" ) ; } else { show_statvfs(path, &stat) ; }
statvfs(2) statfs(2)