This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 117c28990a814127f7b6921d449a779f99760ae0 Author: guoshichao <[email protected]> AuthorDate: Mon Sep 15 20:49:34 2025 +0800 fpathconf: add _POSIX_PRIO_IO defintion fix the /tset/rt.os/files/fpathconf/T.fpathconf{1}: _POSIX_ASYNC_IO is not defined Signed-off-by: guoshichao <[email protected]> --- include/unistd.h | 2 +- libs/libc/unistd/lib_pathconf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/unistd.h b/include/unistd.h index a4626136f1e..4948ae82834 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -97,7 +97,7 @@ #define _POSIX_SYNC_IO 1 #undef _POSIX_ASYNC_IO -#undef _POSIX_PRIO_IO +#define _POSIX_PRIO_IO 1 #define _XOPEN_UNIX 1 #define _XOPEN_VERSION 700L diff --git a/libs/libc/unistd/lib_pathconf.c b/libs/libc/unistd/lib_pathconf.c index fa9387fbc24..d5630f8953a 100644 --- a/libs/libc/unistd/lib_pathconf.c +++ b/libs/libc/unistd/lib_pathconf.c @@ -137,7 +137,7 @@ long fpathconf(int fildes, int name) return _POSIX_MAX_INPUT; case _PC_PRIO_IO: - return -1; + return _POSIX_PRIO_IO; default:
