This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]