RTEMS | cpukit/close.c: Open flag corrected for busy closes (!795)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Fri Oct 17 07:39:13 UTC 2025
Sebastian Huber started a new discussion on cpukit/libcsupport/src/close.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/795#note_135121
>
> LIBIO_GET_IOP( fd, iop );
> - flags = rtems_libio_iop_flags( iop );
>
> while ( true ) {
> + unsigned int flags;
> unsigned int desired;
> bool success;
> + flags = rtems_libio_iop_flags( iop );
>
> if ( ( flags & LIBIO_FLAGS_OPEN ) == 0 ) {
> rtems_libio_iop_drop( iop );
> rtems_set_errno_and_return_minus_one( EBADF );
> }
>
> + /**
This is not a Doxygen comment, so it should not start with `/**`.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/795#note_135121
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/20251017/bc3e2b83/attachment.htm>
More information about the bugs
mailing list