mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08: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:
@@ -215,6 +215,14 @@ long sysconf(int name)
|
||||
|
||||
switch (name)
|
||||
{
|
||||
#ifdef CONFIG_FS_AIO
|
||||
case _SC_ASYNCHRONOUS_IO:
|
||||
return _POSIX_ASYNCHRONOUS_IO;
|
||||
#endif
|
||||
case _SC_PRIORITIZED_IO:
|
||||
return _POSIX_PRIORITIZED_IO;
|
||||
case _SC_AIO_MAX:
|
||||
return _POSIX_AIO_MAX;
|
||||
case _SC_CLK_TCK:
|
||||
return CLOCKS_PER_SEC;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user