Subject: lib/26110: select() isn't declared in sys/select.h
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <ianzag@megasignal.com>
List: netbsd-bugs
Date: 06/29/2004 11:37:54
>Number:         26110
>Category:       lib
>Synopsis:       select() isn't declared in sys/select.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 29 11:38:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Ian Zagorskih
>Release:        NetBSD-release-2-0
>Organization:
NOKB GP
>Environment:
NetBSD IANZAG 2.0_BETA NetBSD 2.0_BETA (IANZAG) #1: Tue Jun 15 16:15:27 NOVST 2004  ianzag@IANZAG:/usr/src/sys/arch/i386/compile/IANZAG i386

>Description:

According to http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/select.h.html POSIX recommends to declate select() function in <sys/select.h> header file.

On the other hand, NetBSD does declate select() in <unistd.h> and it is not visible from <sys/select.h>.

Some applications like ACE library expects to find select() in sys/select.h and need to be heavy patched to be built under NetBSD

>How-To-Repeat:

* man select
* See POSIX link above

>Fix:

Just make select() to be visible from <sys/select.h>

>Release-Note:
>Audit-Trail:
>Unformatted: