OK, thanks for proving I'm human....
> posix_types.h:#undef __FD_SETSIZE
> posix_types.h:#define __FD_SETSIZE 1024
> posix_types.h:#define __FDSET_LONGS (__FD_SETSIZE/__NFDBITS)
> time.h:#define FD_SETSIZE __FD_SETSIZE
But what happens when 1024 is not enough, or 2048...
Under an SVR4 derived system, when the num of open descriptors is raised
FD_SETSIZE does not magically change in the library/apps.
select()s FD_SETSIZE is a limitation, which in _most_ cases can be
programmed around (I know, I've had to do it!) while still having a large
(pick your number, 16384 if you like) files open.
> >For a complete solution, the poll() sys-call is needed (it's required by
> >the latested XPG/4 spec anyway).
>
> That's probably true
> Mike.
Yep, and it has no built in limitation.
markhe
------------------------------------------------------------------
Mark Hemment, Unix/C Software Engineer (Contractor)
markhe@nextd.demon.co.uk
------------------------------------------------------------------