On 07/17/2018 09:05 PM, Barath Aron wrote:
Thanks, I'll let you know about my findings.


As a start, I got all the headers from a NetBSD 4.0 with gcc installed.
After looking into those headers, I noticed the following:

a) There is no getfsstat(), but there is getvfsstat(), and its argument is not 'struct statfs' but 'struct statvfs'.

b) getmntinfo() uses the 'struct statvfs' as getvfsstat() -- which is odd, but on the other hand it is reasonable: they have the same struct as POSIX describes, with additional fields (that's still good for POSIX). Manpage for this: http://netbsd.gw.com/cgi-bin/man-cgi?getmntinfo+3+NetBSD-4.0 "The getmntinfo() function first appeared in 4.4BSD.  It was converted from using getfsstat(2) to getvfsstat(2) in NetBSD 3.0."

c) The struct statvfs has the f_fstypename field that gnulib expect in struct fsstat.

d) The previously known types are not exist: struct statfs, struct fsstat.


In order to test things, I'll install a NetBSD and (probably) a FreeBSD. Despite I have ideas, I want to install these systems before changing/suggesting anything.

Aron


Reply via email to