Re: [PATCH rtems-libbsd] rtemsbsd/libio: Handle invalid descriptors

2023-09-19 Thread Chris Johns
OK Thanks Chris On 20/9/2023 7:18 am, Kinsey Moore wrote: > The documentation for this function suggests that it can handle invalid > descriptors safely. This change allows negative descriptors to be > handled without a crash. > --- > rtemsbsd/include/machine/rtems-bsd-libio.h | 6 -- > 1 fi

[PATCH rtems-libbsd] rtemsbsd/libio: Handle invalid descriptors

2023-09-19 Thread Kinsey Moore
The documentation for this function suggests that it can handle invalid descriptors safely. This change allows negative descriptors to be handled without a crash. --- rtemsbsd/include/machine/rtems-bsd-libio.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtemsbsd/inclu