bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configure issue: getfsstat(), 'struct statfs' and 'struct fsstat'


From: Barath Aron
Subject: Re: configure issue: getfsstat(), 'struct statfs' and 'struct fsstat'
Date: Wed, 18 Jul 2018 08:33:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

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

[Prev in Thread] Current Thread [Next in Thread]