RTEMS | cpukit/aio_misc Add error handling for calloc failure (!513)

Kinsey Moore (@opticron) gitlab at rtems.org
Fri Jun 20 13:23:49 UTC 2025




Kinsey Moore commented on a discussion on cpukit/posix/src/aio_misc.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/513#note_125004

 >        r_chain = NULL;
 >      } else {
 >        r_chain = calloc( 1, sizeof( rtems_aio_request_chain ) );
 > +      if ( r_chain == NULL ) {
 > +        errno = EAGAIN;

It looks like the AIO calls that make use of functions like these use EAGAIN to indicate any system resource limitations. I still find it odd, but it's according to spec.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/513#note_125004
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250620/706c0dd1/attachment.htm>


More information about the bugs mailing list