select call on a UDP socket with BSD library?
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Sep 1 04:47:32 UTC 2020
On 01/09/2020 04:48, Chris Johns wrote:
>> The fd in this instance is 77 and I have RTEMS setup for 200 file descriptors.
>> Are there any other LibBSD configuration parameters I should be aware of?
> I am sorry but 77 is to high because newlib by default limits the fd set size to
> 64...
>
> # ifndef FD_SETSIZE
> # define FD_SETSIZE 64
> # endif
>
> I suggest you define `FD_SETSIZE` on the command line to the compiler to 256 and
> see what happens. It should be fine to do this.
The FD_SETSIZE limit in Newlib also applies to the old network stack.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list