mirror of
https://github.com/apache/nuttx.git
synced 2026-10-01 03:16:24 +00:00
lio_listio() never validated 'nent' against {AIO_LISTIO_MAX}, so a
batch larger than the documented limit was silently accepted, and the
hard-coded _POSIX_AIO_LISTIO_MAX value of 2 was too small for real
workloads (LTP uses 10 entries per call).
Add the FS_AIO_LISTIO_MAX Kconfig option (default 10), use it for
_POSIX_AIO_LISTIO_MAX in include/limits.h, validate 'nent' in
lio_listio(), and report the limit through sysconf(_SC_AIO_LISTIO_MAX).
Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com>
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| lib_access.c | ||
| lib_alarm.c | ||
| lib_chdir.c | ||
| lib_confstr.c | ||
| lib_crypt.c | ||
| lib_crypt_r.c | ||
| lib_daemon.c | ||
| lib_execl.c | ||
| lib_execle.c | ||
| lib_execv.c | ||
| lib_fchdir.c | ||
| lib_fchownat.c | ||
| lib_flock.c | ||
| lib_fork.c | ||
| lib_fstatvfs.c | ||
| lib_futimes.c | ||
| lib_getcwd.c | ||
| lib_getegid.c | ||
| lib_getentropy.c | ||
| lib_geteuid.c | ||
| lib_getgid.c | ||
| lib_getgroups.c | ||
| lib_gethostname.c | ||
| lib_getopt.c | ||
| lib_getopt_common.c | ||
| lib_getopt_long.c | ||
| lib_getopt_longonly.c | ||
| lib_getoptargp.c | ||
| lib_getopterrp.c | ||
| lib_getoptindp.c | ||
| lib_getoptoptp.c | ||
| lib_getoptvars.c | ||
| lib_getpass.c | ||
| lib_getpgid.c | ||
| lib_getpgrp.c | ||
| lib_getpriority.c | ||
| lib_getresgid.c | ||
| lib_getresuid.c | ||
| lib_getrlimit.c | ||
| lib_getrusage.c | ||
| lib_getsid.c | ||
| lib_getuid.c | ||
| lib_issetugid.c | ||
| lib_linkat.c | ||
| lib_lockf.c | ||
| lib_lutimes.c | ||
| lib_nice.c | ||
| lib_pathconf.c | ||
| lib_pipe.c | ||
| lib_posix_fallocate.c | ||
| lib_readlinkat.c | ||
| lib_restoredir.c | ||
| lib_setegid.c | ||
| lib_seteuid.c | ||
| lib_setgid.c | ||
| lib_setgroups.c | ||
| lib_sethostname.c | ||
| lib_setpgid.c | ||
| lib_setpriority.c | ||
| lib_setregid.c | ||
| lib_setresgid.c | ||
| lib_setresuid.c | ||
| lib_setreuid.c | ||
| lib_setrlimit.c | ||
| lib_setsid.c | ||
| lib_setuid.c | ||
| lib_sleep.c | ||
| lib_statvfs.c | ||
| lib_swab.c | ||
| lib_symlinkat.c | ||
| lib_sysconf.c | ||
| lib_times.c | ||
| lib_truncate.c | ||
| lib_ulimit.c | ||
| lib_unlinkat.c | ||
| lib_usleep.c | ||
| lib_utime.c | ||
| lib_utimes.c | ||
| lib_wait4.c | ||
| Make.defs | ||
| unistd.h | ||