Re: RTEMS5 File Descriptors

2018-11-21 Thread Chris Johns
On 21/11/18 7:13 pm, Ian Caddy wrote: > This is a new product with RTEMS 5 and since I am doing all the early work, I > can force a compiler build option with the -DFD_SETSIZE=500so this is probably > the direction we will go, that way all the users will end up with this define > when they build th

Re: RTEMS5 File Descriptors

2018-11-21 Thread Ian Caddy
On 21/11/2018 4:16 pm, Sebastian Huber wrote: Hello Ian, On 21/11/2018 09:13, Ian Caddy wrote: On the older product there was a reasonable existing code base already built, so we effectively forced the users by deprecating the old select and made them build with the new select. what do yo

Re: RTEMS5 File Descriptors

2018-11-21 Thread Sebastian Huber
Hello Ian, On 21/11/2018 09:13, Ian Caddy wrote: On the older product there was a reasonable existing code base already built, so we effectively forced the users by deprecating the old select and made them build with the new select. what do you mean with old and new select? -- Sebastian Hub

Re: RTEMS5 File Descriptors

2018-11-21 Thread Ian Caddy
Hi Mathew and Sebastian, Thanks for the ideas. On the older product there was a reasonable existing code base already built, so we effectively forced the users by deprecating the old select and made them build with the new select. This is a new product with RTEMS 5 and since I am doing all t

Re: RTEMS5 File Descriptors

2018-11-20 Thread Sebastian Huber
Hello Ian, the file descriptors use now reference counting. In case you use a closed file descriptor you get an error. The file descriptor list order was changed to keep closed file descriptors as long as possible in the closed state to improve the detection of a use after close. In case you

Re: RTEMS5 File Descriptors

2018-11-20 Thread Matthew J Fletcher
Hi, We had a similar issue, I believe FD_SETSIZE is only defined to 64 if it's not already defined by the application, see (select.h), you would probably have to pass -DFD_SETSIZE=500 from the complier command line though as you would need to set the definition really early before most includes.