It ain't so easy, and it's BSD's fault. select() has a very nice way
to ensure that a bitmask of file descriptors is the right size, but
the FD_* support routines immediately bungles that very nice idea by
effectively requiring the maximum number of file descriptors
(technically, the largest possible numerical value of a file
descriptor) to be known at compile time. There is no way in C to
implement a compatible interface, and have dynamic allocation,
although it is possible in C++ by using contructors/destructors.
-hpa
-- This space intentionally has nothing but text explaining why this space has nothing but text explaining why this space would otherwise have been left blank, and would otherwise have been left blank.