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

2018-07-18 Thread Barath Aron
On 07/18/2018 08:33 AM, Barath Aron wrote: 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. I didn't have enough time to install them, but I looked into the gnulib itself. I

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

2018-07-18 Thread Barath Aron
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

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

2018-07-17 Thread Barath Aron
On 07/17/2018 08:49 PM, Paul Eggert wrote: Barath Aron wrote: Does gnulib support BSD's getmntinfo()? Since it looks not, what can we do? Gnulib ports to the operating systems (including BSD operating systems) available at the time Gnulib was written, and it still ports to the current

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

2018-07-17 Thread Paul Eggert
Barath Aron wrote: Does gnulib support BSD's getmntinfo()? Since it looks not, what can we do? Gnulib ports to the operating systems (including BSD operating systems) available at the time Gnulib was written, and it still ports to the current versions of these operating systems as far as we

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

2018-07-17 Thread Barath Aron
I don't want to flood the mailing lists, so let me merge Bruno's mail again. On 07/17/2018 05:49 PM, Paul Eggert wrote: On 07/16/2018 10:41 PM, Barath Aron wrote: I guess it is more like a hack than a solution. Quite true. We need a real solution here, not a hack. But that will need

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

2018-07-17 Thread Paul Eggert
On 07/16/2018 10:41 PM, Barath Aron wrote: I guess it is more like a hack than a solution. Quite true. We need a real solution here, not a hack. But that will need someone to look into it. If Threos is supposed to be like POSIX, it should use the POSIXish part of the relevant Gnulib code,

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

2018-07-16 Thread Barath Aron
Hi, Thank you all for the answers. Let me merge Bruno's mail first: On 07/17/2018 12:02 AM, Bruno Haible wrote: The configuration of the gnulib 'mountlist' module (used by findutils and coreutils, among others) is written in such a way that on OpenBSD it uses the getmntinfo() function

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

2018-07-16 Thread Paul Eggert
On 07/16/2018 01:05 PM, Bernhard Voelker wrote: So, my questions are: a) Why the configure use a different type name? Comments suggest that this is what OSF/1 used. b) If it is intentional, then where that type is defined? Presumably in system include files. c) Is this branch of the

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

2018-07-16 Thread Bernhard Voelker
[forwarding to gnulib] On 07/11/2018 02:00 PM, Barath Aron wrote: > Hello, > > I have a little issue around the detection of the getfsstat() function. > > According to multiple manuals from different BSD versions [1,2], the > signature of the BSD's getfsstat() is this: > int getfsstat(struct

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

2018-07-11 Thread Bernhard Voelker
On 07/11/2018 02:00 PM, Barath Aron wrote: > Hello, > > I have a little issue around the detection of the getfsstat() function. > > According to multiple manuals from different BSD versions [1,2], the > signature of the BSD's getfsstat() is this: > int getfsstat(struct statfs *buf, long