You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/01/26 11:26:00 UTC
[incubator-nuttx] branch master updated: unistd/fpathconf: enhance
fpathconf
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new bdd2c96 unistd/fpathconf: enhance fpathconf
bdd2c96 is described below
commit bdd2c96f08971a4383c7eabbef0c53c06686606d
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Tue Jan 19 21:35:07 2021 +0800
unistd/fpathconf: enhance fpathconf
Change-Id: Id780d7b56b9790206d572d22aa210a8e0222108c
Signed-off-by: Jiuzhu Dong <do...@xiaomi.com>
---
libs/libc/unistd/lib_pathconf.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/libs/libc/unistd/lib_pathconf.c b/libs/libc/unistd/lib_pathconf.c
index 5b05a4f..621eaa5 100644
--- a/libs/libc/unistd/lib_pathconf.c
+++ b/libs/libc/unistd/lib_pathconf.c
@@ -117,6 +117,21 @@ long fpathconf(int fildes, int name)
case _PC_PATH_MAX:
return PATH_MAX;
+ case _PC_LINK_MAX:
+ return _POSIX_LINK_MAX;
+
+ case _PC_NAME_MAX:
+ return _POSIX_NAME_MAX;
+
+ case _PC_PIPE_BUF:
+ return _POSIX_PIPE_BUF;
+
+ case _PC_MAX_CANON:
+ return _POSIX_MAX_CANON;
+
+ case _PC_MAX_INPUT:
+ return _POSIX_MAX_INPUT;
+
default:
/* Assume valid but not implemented for the time being */