RTEMS | Fix psxtests/psx05aio case fail (!462)
yang zhang (@yang.zhang)
gitlab at rtems.org
Thu Apr 3 09:56:37 UTC 2025
yang zhang created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/462
Project:Branches: yang.zhang/rtems:fix_psxaio05_fail to rtems/rtos/rtems:main
Author: yang zhang
## Summary
`lio_listio`'s `nent` should not exceed `AIO_LISTIO_MAX`.
There are two definitions for this macro `AIO_LISTIO_MAX`:
One is in `cpukit/include/rtems/posix/aio_misc.h`
`#ifndef AIO_LISTIO_MAX
#define AIO_LISTIO_MAX 20
#endif`
The other one is in toolchain `limits.h`
`#define AIO_LISTIO_MAX 2`
`init.c` would include many header files, such as 'cpukit/include/config.h', then `cpukit/include/rtems/libio_.h`, it would include 'limits.h', the `cpukit/include/rtems/posix/aio_misc.h` is behind of it, so `AIO_LISTIO_MAX` is `2` not `20`.
<!-- Default settings, if it is a dropdown it will set after submission -->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/462
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/20250403/5d0b42fa/attachment.htm>
More information about the bugs
mailing list