Subject: Re: default maximum number of open file descriptors too small?
To: None <tech-kern@NetBSD.ORG>
From: Christoph Badura <>
List: tech-kern
Date: 11/28/1995 20:37:00
Luke Newburn wrote:
>Another idea (that I thought of in the shower this morning) is to
>rename select to oselect, and to redefine fd_set as something like:

>	typedef int32_t fd_mask;
>	typedef struct fd_set {
>		size_t	 fd_size;

This is entirely unnecessary.  select(2) can determine the size of the
bitmasks from the nfds parameter just fine.

I'd rather have the FD_ZERO fixed to take the size of the fd_set
as a explicit parameter.

I seem to remember that fd_sets once were plain integer arrays.
Christoph Badura		+49 721 606137

Es genuegt nicht, keine Gedanken zu haben;
man muss auch unfaehig sein, sie auszudruecken.  - Karl Kraus