This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
User-settable FD_SETSIZE and select()
- From: mtk-lists at gmx dot net
- To: libc-alpha at sources dot redhat dot com
- Date: Mon, 19 May 2003 14:49:03 +0200 (MEST)
- Subject: User-settable FD_SETSIZE and select()
As things currently stand in the glibc sources, there is no easy way to
change the default FD_SETSIZE (1024) used for FD_CLR() and friends.
However, the Linux kernel does quite happily support larger FD_SETSIZE
values,
and if one goes through and edits the glibc header files to change the
definition
of FD_SETSIZE things work fine.
The question is, why isn't there something like
#ifndef FD_SETSIZE
#define FD_SETSIZE __FD_SETSIZE
#endif
so that a glibc user can do a "cc -DFD_SETSIZE=n" or a
#define FD_SETSIZE
before including the relevant source files?
Cheers
Michael
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!