unistd:rename CONFIG_OPEN_MAX to CONFIG_LIBC_OPEN_MAX

Signed-off-by: 田昕 <tianxin7@xiaomi.com>
This commit is contained in:
田昕 2022-04-01 19:44:48 +08:00 committed by Xiang Xiao
parent 6e0ba2bed5
commit 24bd80eb84
2 changed files with 3 additions and 3 deletions

View File

@ -203,10 +203,10 @@
#define NAME_MAX _POSIX_NAME_MAX #define NAME_MAX _POSIX_NAME_MAX
#define TTY_NAME_MAX _POSIX_NAME_MAX #define TTY_NAME_MAX _POSIX_NAME_MAX
#define NGROUPS_MAX _POSIX_NGROUPS_MAX #define NGROUPS_MAX _POSIX_NGROUPS_MAX
#if CONFIG_OPEN_MAX < _POSIX_OPEN_MAX #if CONFIG_LIBC_OPEN_MAX < _POSIX_OPEN_MAX
# define OPEN_MAX _POSIX_OPEN_MAX # define OPEN_MAX _POSIX_OPEN_MAX
#else #else
# define OPEN_MAX CONFIG_OPEN_MAX # define OPEN_MAX CONFIG_LIBC_OPEN_MAX
#endif #endif
#define PATH_MAX _POSIX_PATH_MAX #define PATH_MAX _POSIX_PATH_MAX
#define PIPE_BUF _POSIX_PIPE_BUF #define PIPE_BUF _POSIX_PIPE_BUF

View File

@ -144,7 +144,7 @@ config LIBC_HOSTNAME
---help--- ---help---
A unique name to identify device on the network A unique name to identify device on the network
config OPEN_MAX config LIBC_OPEN_MAX
int "OPEN_MAX for this device" int "OPEN_MAX for this device"
default 255 default 255
---help--- ---help---