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 9335f7f7e6931c4ec830597cb1cdecb026508b59
Author: tengshuangshuang <[email protected]>
AuthorDate: Mon Aug 25 22:41:42 2025 +0800

    fpathcof: _PC_PRIO_IO value of -1 means that unsupported
    
    pse52 test error:fpathconf failed, errno = 38 (ENOSYS)
    
    Signed-off-by: tengshuangshuang <[email protected]>
---
 libs/libc/unistd/lib_pathconf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libs/libc/unistd/lib_pathconf.c b/libs/libc/unistd/lib_pathconf.c
index 69d750a62f5..fa9387fbc24 100644
--- a/libs/libc/unistd/lib_pathconf.c
+++ b/libs/libc/unistd/lib_pathconf.c
@@ -136,6 +136,9 @@ long fpathconf(int fildes, int name)
       case _PC_MAX_INPUT:
         return _POSIX_MAX_INPUT;
 
+      case _PC_PRIO_IO:
+        return -1;
+
       default:
 
         /* Assume valid but not implemented for the time being */

Reply via email to