git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] autoconf: Add test for sys/select.h header file

From
Robert Schiele <rschiele@gmail.com>
Date
Jan 26, 2008, 09:42 UTC
Message-ID
<20080126094253.GP30676@schiele.dyndns.org>
In-Reply-To
<7v8x2d3xya.fsf@gitster.siamese.dyndns.org>
On Fri, Jan 25, 2008 at 10:25:33PM -0800, Junio C Hamano wrote:
> The issue is not really about "do we have <sys/select.h>?" but
> is about "do we need to include <sys/select.h> in order to
> obtain declaration of select(2)?" so this is covering only a

This is true. Actually HP-UX 11.23 for instance has sys/select.h but this is not intended to be included to get the select call but this is intended to be included by kernel drivers that implement the interface the kernel needs to _provide_ the select call. In that case the test determines that sys/select.h exists but it does not notice that it is not the header to include. It does not hurt though since including sys/select.h outside of a kernel driver is a no-op and we include sys/time.h which is really needed anyway.

Show 6 quoted lines
> half of the issue.  But I guess we will find out if the system
> does not offer select(2) whether <sys/select.h> is included or
> not, so this is not too bad.
> 
> Will apply.  I do not think it would have problems but even if
> it does it is small and easy to revert before the final.

At least on the systems I know it does not hurt even when it does not always exactly what it is intended to do.

Robert
-- 
Robert Schiele
Dipl.-Wirtsch.informatiker	mailto:rschiele@gmail.com

"Quidquid latine dictum sit, altum sonatur."
Previous: Junio C Hamano
Message 9 of 9 in “some systems don't have (and need) sys/select.h”
  1. some systems don't have (and need) sys/select.hRobert Schiele, Jan 24, 2008
  2. Johannes SchindelinJan 24, 2008
  3. Junio C HamanoJan 24, 2008
  4. Robert SchieleJan 24, 2008
  5. autoconf: Add test for sys/select.h header fileJakub Narebski, Jan 25, 2008
  6. Johannes SchindelinJan 25, 2008
  7. Robert SchieleJan 25, 2008
  8. Junio C HamanoJan 26, 2008
  9. Robert SchieleJan 26, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.