This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11687] Allow customizing of __FD_SETSIZE
- From: "pasky at suse dot cz" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 10 Jun 2010 15:22:57 -0000
- Subject: [Bug libc/11687] Allow customizing of __FD_SETSIZE
- References: <20100610101530.11687.christoph@familiekling.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.