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.


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to