From 24bd80eb84df8b169c82cfaa9b578a054b55f0b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E6=98=95?= Date: Fri, 1 Apr 2022 19:44:48 +0800 Subject: [PATCH] unistd:rename CONFIG_OPEN_MAX to CONFIG_LIBC_OPEN_MAX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 田昕 --- include/limits.h | 4 ++-- libs/libc/unistd/Kconfig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/limits.h b/include/limits.h index 645750c3e0..df8355b787 100644 --- a/include/limits.h +++ b/include/limits.h @@ -203,10 +203,10 @@ #define NAME_MAX _POSIX_NAME_MAX #define TTY_NAME_MAX _POSIX_NAME_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 #else -# define OPEN_MAX CONFIG_OPEN_MAX +# define OPEN_MAX CONFIG_LIBC_OPEN_MAX #endif #define PATH_MAX _POSIX_PATH_MAX #define PIPE_BUF _POSIX_PIPE_BUF diff --git a/libs/libc/unistd/Kconfig b/libs/libc/unistd/Kconfig index 8cc8495826..ada5ea250e 100644 --- a/libs/libc/unistd/Kconfig +++ b/libs/libc/unistd/Kconfig @@ -144,7 +144,7 @@ config LIBC_HOSTNAME ---help--- A unique name to identify device on the network -config OPEN_MAX +config LIBC_OPEN_MAX int "OPEN_MAX for this device" default 255 ---help---