mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
unistd/fpathconf: enhance fpathconf
Change-Id: Id780d7b56b9790206d572d22aa210a8e0222108c Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -117,6 +117,21 @@ long fpathconf(int fildes, int name)
|
|||||||
case _PC_PATH_MAX:
|
case _PC_PATH_MAX:
|
||||||
return 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:
|
default:
|
||||||
|
|
||||||
/* Assume valid but not implemented for the time being */
|
/* Assume valid but not implemented for the time being */
|
||||||
|
|||||||
Reference in New Issue
Block a user