Subject: Re: lib/30166
To: None <kleink@netbsd.org, misc-bug-people@netbsd.org,>
From: None <kleink@netbsd.org>
List: netbsd-bugs
Date: 05/07/2005 21:01:36
Synopsis: Missing include in select(2) manual page

Responsible-Changed-From-To: misc-bug-people->kleink
Responsible-Changed-By: kleink@netbsd.org
Responsible-Changed-When: Sat, 07 May 2005 21:01:35 +0000
Responsible-Changed-Why:
I've been reworking this.


State-Changed-From-To: open->analyzed
State-Changed-By: kleink@netbsd.org
State-Changed-When: Sat, 07 May 2005 21:01:35 +0000
State-Changed-Why:
While this section of <sys/types.h> is going to be moved to
<sys/select.h> the issue pertaining FD_ZERO won't change.
Changing the documentation would be fixing the wrong issue
since POSIX expects this to work with <sys/select.h> alone
(changed in post-2-0); pulling in <string.h> or privately
declaring memset() isn't an option due to namespace constraints.

Some options:
* inline this; on amd64 the observed performance impact is a
  factor of ~1.57x;
* use the gcc builtin if applicable, fall back to inlining
  (I have some qualms about using gcc builtins at that level);
* push this down to the MD level and optimize; at the same
  time a change to a __fd_mask type suiting the machine better
  might be considered
* ...