mirror of
https://github.com/apache/nuttx.git
synced 2026-10-04 20:57:55 +00:00
libs/libc/aio: fix aio_cancel compatible issue
1. make the aio_cancel implementation can pass the ltp/open_posix_testsuite/aio_cancel testcases 2. the modification are referred to https://pubs.opengroup.org/onlinepubs/9699919799/functions/aio_cancel.html Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
parent
cf6a134684
commit
d5f45dc33b
3 changed files with 19 additions and 4 deletions
|
|
@ -61,14 +61,15 @@
|
|||
#undef _POSIX_FSYNC
|
||||
#define _POSIX_SYNCHRONIZED_IO 1
|
||||
|
||||
#define _POSIX_VERSION 201712L
|
||||
#define _POSIX_PRIORITIZED_IO _POSIX_VERSION
|
||||
|
||||
#ifdef CONFIG_FS_AIO
|
||||
# define _POSIX_ASYNCHRONOUS_IO 1
|
||||
# define _POSIX_ASYNCHRONOUS_IO _POSIX_VERSION
|
||||
#else
|
||||
# undef _POSIX_ASYNCHRONOUS_IO
|
||||
#endif
|
||||
|
||||
#undef _POSIX_PRIORITIZED_IO
|
||||
|
||||
#ifdef CONFIG_SCHED_SPORADIC
|
||||
# define _POSIX_SPORADIC_SERVER 1
|
||||
# define _POSIX_THREAD_SPORADIC_SERVER 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue