Alessandro Nardin commented on a discussion on cpukit/posix/src/lio_listio.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/188#note_111692 > + listcbp->lio_notification.task_id = rtems_task_self(); > + > + } else if ( mode == LIO_NOWAIT ) { > + > + if ( sig == NULL ) { > + listcbp->notification_type = AIO_LIO_NO_NOTIFY; > + } else { > + if ( rtems_aio_check_sigevent( sig ) == 0 ) { > + free( listcbp ); > + rtems_set_errno_and_return_minus_one( EINVAL ); > + } > + > + listcbp->notification_type = AIO_LIO_SIGEV; > + listcbp->lio_notification.sigp = sig; > + } > + } I'm not sure if this is what you meant, but here, mode can only be LIO_WAIT or LIO_NOWAIT. I've added a check at the beginning of the function that returns an error if mode is not one of those values. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/188#note_111692 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
