Gedare Bloom commented on a discussion on cpukit/posix/src/aio_suspend.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/275#note_114378 > + suspendcb *suspendcbp; > + int result, op_num; > + > + /* CONTROLS OVER INVALID PARAMETERS */ > + if ( list == NULL ){ > + rtems_set_errno_and_return_minus_one( EINVAL ); > + } > + > + if ( nent <= 0 ) { > + rtems_set_errno_and_return_minus_one( EINVAL ); > + } > + > + /* INITAILIZE SUSPEND CB */ > + suspendcbp = malloc( sizeof( suspendcb ) ); > + if ( suspendcbp == NULL ) { > + rtems_set_errno_and_return_minus_one( EAGAIN ); The failure case here is that the system is out of memory, so `ENOMEM` is a more clear error condition. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/275#note_114378 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
