Re: Introduce posix_spawn

2018-09-07 Thread Barath Aron
On 9/7/18 8:59 PM, Eric Blake wrote: On 09/07/2018 09:44 AM, Eric Blake wrote: Adding gnulib: On 09/06/2018 11:37 PM, Barath Aron wrote: On 9/7/18 4:54 AM, Dale R. Worley wrote: Couldn't you change the w.d. to the correct target, spawn, and then change the w.d. back? Yes, one cou

fchdir() question

2018-08-08 Thread Barath Aron
Hello, I looked into the fchdir.c (I was curious how it is implemented), and I noticed something interesting. This is not an actual bug, but I wonder why. The ensure_dirs_slot() function allocates some memory, and it uses malloc() if no memory was allocated before, and uses realloc() otherwise

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

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

2018-07-17 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 arg

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 cu

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

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 https

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

2018-07-16 Thread Barath Aron
= xyes; then : Forwarded Message Subject: Re: configure issue: getfsstat(), 'struct statfs' and 'struct fsstat' Date: Wed, 11 Jul 2018 17:54:56 +0200 From: Bernhard Voelker To: Barath Aron , bug-findut...@gnu.org On 07/11/2018 02:00 PM, Barath Ar