bug-gnulib
[Top][All Lists]
Advanced

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

Re: musl, fdopen test


From: Jim Meyering
Subject: Re: musl, fdopen test
Date: Tue, 19 Jun 2012 13:09:48 +0200

Bruno Haible wrote:
...
>> My thought in having musl skip the test is to maximize performance of
>> fdopen, assuming you might be using it in a situation like on a newly
>> accept()ed network connection where every syscall counts (think
>> multi-threaded httpd). For read-only fdopen, no syscalls are needed,
>
> Sounds reasonable.
>
> Here's a proposed patch to remove gnulib's unintentional requirement.
>
>
> 2012-06-19  Bruno Haible  <address@hidden>
>
>       fdopen: Allow implementations that don't reject invalid fd arguments.
>       * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
>       succeeds.
>       Reported by Rich Felker <address@hidden>.

Thanks, Bruno.
That patch looks perfect.



reply via email to

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