RTEMS5 and file descriptors
Miroslaw Dach
miroslaw.dach at gmail.com
Mon Oct 17 22:19:25 UTC 2022
Hi Joel,
Thank you for your quick answer.
>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.
I see , I thought that it is somehow simpler thing.
>How many descriptors do you need? And will you be using select()?
I need maximum 128 file descriptors to be used.
Best Regards
Mirek
pon., 17 paź 2022 o 11:39 Joel Sherrill <joel at rtems.org> napisał(a):
>
>
> On Mon, Oct 17, 2022, 12:23 PM Miroslaw Dach <miroslaw.dach at gmail.com>
> wrote:
>
>> Hello,
>>
>> I have followed the instruction to change the limit of File Descriptors
>> higher than 64:
>>
>> https://docs.rtems.org/branches/master/user/migration/v4_11-to-v5.html
>> chapter 13.1.3. File Descriptors
>>
>> Is it required to rebuild the RTEMS5 kernel with the
>> macro FD_SETSIZE set to the higher value then 64 or is it enough to
>> set it along with CONFIGURE_MAXIMUM_FILE_DESCRIPTORS when the
>> application is built?
>>
>
> 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.
>
> 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.
>
> How many descriptors do you need? And will you be using select()?
>
> --joel
>
>
>
>> Best Regards
>> Mirek
>> _______________________________________________
>> users mailing list
>> users at rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20221017/6f02a989/attachment.htm>
More information about the users
mailing list