nuttx/libs/libc/unistd
Xiang Xiao 2f4d017bb6 fs/aio: add configurable AIO_LISTIO_MAX limit
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>
2026-09-14 17:12:49 -03:00
..
CMakeLists.txt libc: add wait4() 2026-08-14 10:20:52 +08:00
Kconfig libc/unistd: move NAME_MAX/LINE_MAX/PATH_MAX define to unistd 2025-01-15 23:17:51 +08:00
lib_access.c libs: unify Private Types banners 2025-05-28 10:17:15 +08:00
lib_alarm.c
lib_chdir.c libc/chdir: replace heap alloc to path buffer to improve performance 2024-12-11 20:33:34 +08:00
lib_confstr.c unistd: add support for confstr() 2025-08-22 20:50:13 +08:00
lib_crypt.c
lib_crypt_r.c
lib_daemon.c
lib_execl.c
lib_execle.c
lib_execv.c
lib_fchdir.c libc/chdir: chdir/fchdir should not depend on environment variables 2024-12-11 00:34:25 +08:00
lib_fchownat.c
lib_flock.c
lib_fork.c !sched/arch/libc: Give fork() and vfork() their real, separate semantics. 2026-08-10 08:57:30 -03:00
lib_fstatvfs.c
lib_futimes.c
lib_getcwd.c nuttx: add get_current_dir_name implementation 2024-12-19 20:55:51 +08:00
lib_getegid.c
lib_getentropy.c
lib_geteuid.c
lib_getgid.c
lib_getgroups.c sched: add supplementary group IDs (setgroups/getgroups/initgroups) 2026-08-12 16:06:03 -03:00
lib_gethostname.c libs/libc: replace critical section with spinlock in hostname operations 2026-01-17 14:13:07 +08:00
lib_getopt.c
lib_getopt_common.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
lib_getopt_long.c
lib_getopt_longonly.c
lib_getoptargp.c
lib_getopterrp.c
lib_getoptindp.c
lib_getoptoptp.c
lib_getoptvars.c style/FAR: remove FAR qualifier 2025-11-10 10:56:29 +01:00
lib_getpass.c
lib_getpgid.c
lib_getpgrp.c
lib_getpriority.c
lib_getresgid.c sched/group: add getresuid, getresgid, setreuid, and setregid 2026-07-30 09:48:10 +08:00
lib_getresuid.c sched/group: add getresuid, getresgid, setreuid, and setregid 2026-07-30 09:48:10 +08:00
lib_getrlimit.c
lib_getrusage.c
lib_getsid.c drivers/serial: add job-control TTY ioctls and libc wrappers 2026-06-23 16:26:53 -03:00
lib_getuid.c
lib_issetugid.c fs/binfmt: close symlink TOCTOU and harden setuid/setgid exec hygiene 2026-08-01 15:32:03 -03:00
lib_linkat.c fs: rename PSEUDOFS_SOFTLINKS to FS_LINKS 2026-08-27 01:12:33 +08:00
lib_lockf.c
lib_lutimes.c
lib_nice.c
lib_pathconf.c libc/limits: increase LINK_MAX to 128 and fix pathconf 2026-08-28 23:07:24 +08:00
lib_pipe.c libc/unistd: Replace pipe() macro with proper function implementation 2025-11-26 17:18:13 +08:00
lib_posix_fallocate.c
lib_readlinkat.c fs: rename PSEUDOFS_SOFTLINKS to FS_LINKS 2026-08-27 01:12:33 +08:00
lib_restoredir.c
lib_setegid.c
lib_seteuid.c
lib_setgid.c
lib_setgroups.c sched: add supplementary group IDs (setgroups/getgroups/initgroups) 2026-08-12 16:06:03 -03:00
lib_sethostname.c libs/libc: replace critical section with spinlock in hostname operations 2026-01-17 14:13:07 +08:00
lib_setpgid.c drivers/serial: add job-control TTY ioctls and libc wrappers 2026-06-23 16:26:53 -03:00
lib_setpriority.c
lib_setregid.c sched/group: add getresuid, getresgid, setreuid, and setregid 2026-07-30 09:48:10 +08:00
lib_setresgid.c sched: add setresuid and setresgid 2026-08-12 16:06:03 -03:00
lib_setresuid.c sched: add setresuid and setresgid 2026-08-12 16:06:03 -03:00
lib_setreuid.c sched/group: add getresuid, getresgid, setreuid, and setregid 2026-07-30 09:48:10 +08:00
lib_setrlimit.c
lib_setsid.c drivers/serial: add job-control TTY ioctls and libc wrappers 2026-06-23 16:26:53 -03:00
lib_setuid.c
lib_sleep.c
lib_statvfs.c
lib_swab.c
lib_symlinkat.c fs: rename PSEUDOFS_SOFTLINKS to FS_LINKS 2026-08-27 01:12:33 +08:00
lib_sysconf.c fs/aio: add configurable AIO_LISTIO_MAX limit 2026-09-14 17:12:49 -03:00
lib_times.c
lib_truncate.c
lib_ulimit.c lib_ulimit: fix the variable uninit coverity issue 2026-01-16 10:03:53 +08:00
lib_unlinkat.c
lib_usleep.c
lib_utime.c
lib_utimes.c
lib_wait4.c libc: add wait4() 2026-08-14 10:20:52 +08:00
Make.defs libc: add wait4() 2026-08-14 10:20:52 +08:00
unistd.h