This is the mail archive of the glibc-bugs@sourceware.org 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]

[Bug libc/11687] Allow customizing of __FD_SETSIZE


------- Additional Comments From pasky at suse dot cz  2010-06-10 15:22 -------
You cannot simply change FD_SETSIZE like this and expect anything to work. The
FD_SETSIZE value is part of the ABI and depends mainly on the kernel - if you
use larger fdset size, the syscall will not work anyway. You would have to hack
your kernel too, and then you are completely on your own anyway; other strange
problems can also pop up due to different structure sizes in already compiled
programs.

In short, FD_SETSIZE is not remotely a variable that would be
runtime-adjustable, and it's not defined as a fixed value just for the sake of
it. If you need to handle more fds, you will need different methods like poll()
or epoll().

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=11687

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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