<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 17, 2022, 12:23 PM Miroslaw Dach <<a href="mailto:miroslaw.dach@gmail.com">miroslaw.dach@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I have followed the instruction to change  the limit of File Descriptors higher than 64:</div><div><br></div><div><a href="https://docs.rtems.org/branches/master/user/migration/v4_11-to-v5.html" target="_blank" rel="noreferrer">https://docs.rtems.org/branches/master/user/migration/v4_11-to-v5.html</a><br>chapter 13.1.3. File Descriptors</div><div><br></div><div>Is it required to rebuild the RTEMS5 kernel with the </div><div>macro FD_SETSIZE set to the higher value then 64 or is it enough to </div><div>set it  along with CONFIGURE_MAXIMUM_FILE_DESCRIPTORS when the application is built?</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">If you go above 64 for configured file descriptors, FD_SETSIZE used by select() does not automatically change. That is set in the C Library headers which are considered constant when RTEMS is built.</div><div dir="auto"><br></div><div dir="auto">AFAIK you'd have to patch the header in the C Library when building the tools using the RSB to have a possible clean solution. Editing the installed header would be uncool.</div><div dir="auto"><br></div><div dir="auto">How many descriptors do you need? And will you be using select()?</div><div dir="auto"><br></div><div dir="auto">--joel</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Best Regards</div><div>Mirek</div></div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank" rel="noreferrer">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div></div>