Yep, I think glibc related functions might be using some compile time
information (like sizeof or #defines) so I wouldn't date to try that :D
Thanks!
2017-01-31 17:28 GMT+01:00 Zan Lynx <zlynx_at_acm.org>:
> On 01/31/2017 06:41 AM, eugeny gladkih wrote:
> > no, that's not a truth. you may use any socket number on all modern UNIX
> > systems. the only thing you need - you have to allocate enough memory
> > for fd_set. one more thing you have to know is still here. on Solaris
> > you may define the FD_SETSIZE preprocessor constant to any numer which
> > is big enough.
>
> I'd be careful of that in Linux. I have always been told that FD_SETSIZE
> is fixed at the time of glibc compile. That may not be true of course,
> and it may not be true for other C libraries.
>
> I would certainly not assume that I can just redefine FD_SETSIZE without
> double-checking.
>
> --
> Knowledge is Power -- Power Corrupts
> Study Hard -- Be Evil
>
Received on 2017-01-31