RTEMS | Draft: cpukit/posix/aio*: Implemented lio_listio() (!188)
Alessandro Nardin (@AlessandroNardin)
gitlab at rtems.org
Sat Aug 31 17:01:14 UTC 2024
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240831/c13d789a/attachment-0001.htm>
More information about the bugs
mailing list