Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 1997 22:01:01 -0800 (PST)
From:      John-Mark Gurney <jmg@nike.efn.org>
To:        Guido van Rooij <guido@gvr.win.tue.nl>
Cc:        FreeBSD-hackers <FreeBSD-hackers@FreeBSD.ORG>
Subject:   Re: FD_SETSIZE
Message-ID:  <Pine.BSF.3.95q.970221215345.1532Z-100000@hydrogen.nike.efn.org>
In-Reply-To: <199702212239.XAA10384@gvr.win.tue.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 21 Feb 1997, Guido van Rooij wrote:

> Can someone explain me the way to deal with FD_SETSIZE nowadays?
> From looking at the sources it seems that the kernel is not limited
> by whatever FD_SETSIZE is defined to. Is that correct?

yes... the kernel doesn't have a limit on FD_SETSIZE...

> Further, there is a comment on the new FD_SETSIZE being 1024 where
> I still see FD_SETSIZE set to 256 in sys/types.h. Am I missing
> something?

yes... that is because FD_SETSIZE was (is it still?) being used as a
"multiple" to decide how many bits to allocate/use...

to increase the size of FD_SETSIZE simply define it to a new value before
you include sys/types.h... then simply limit yourself to the new limit
:)...

hope this helps... ttyl...

John-Mark

gurney_j@efn.org
http://resnet.uoregon.edu/~gurney_j/
Modem/FAX: (541) 683-6954   (FreeBSD Box)

Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970221215345.1532Z-100000>