From dedb57cb2d0e4c4a6bd86f3277efeb1fd776e335 Mon Sep 17 00:00:00 2001 From: chao an Date: Wed, 15 Jan 2025 10:02:38 +0800 Subject: [PATCH] libc/unistd: move NAME_MAX/LINE_MAX/PATH_MAX define to unistd These options are unistd-specific and should not be filesystem dependent, and also not suitable for define in the sched directory. Signed-off-by: chao an --- libs/libc/unistd/Kconfig | 22 ++++++++++++++++++++++ sched/Kconfig | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/libs/libc/unistd/Kconfig b/libs/libc/unistd/Kconfig index 1c1ee3e1ee8..be16a529ef5 100644 --- a/libs/libc/unistd/Kconfig +++ b/libs/libc/unistd/Kconfig @@ -117,3 +117,25 @@ config LIBC_OPEN_MAX ---help--- The maximum number of files that a process can have open at any time. Must not be less than _POSIX_OPEN_MAX. + +config NAME_MAX + int "Maximum size of a file name" + default 32 + ---help--- + The maximum size of a file name. + +config PATH_MAX + int "Maximum size of path name" + default 256 + ---help--- + The maximum size of path name. + +config LINE_MAX + int "Maximum size of line" + default 64 if DEFAULT_SMALL + default 80 if !DEFAULT_SMALL + ---help--- + The maximum size of line. Unless otherwise noted, the maximum length, in bytes, + of a utility's input line (either standard input or another file), when the + utility is described as processing text files. The length includes room for + the trailing newline. diff --git a/sched/Kconfig b/sched/Kconfig index e9eaf21fc58..9350b8db0f0 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -1400,28 +1400,6 @@ config FILE_STREAM ---help--- Enable the standard buffered input/output support -config NAME_MAX - int "Maximum size of a file name" - default 32 - ---help--- - The maximum size of a file name. - -config PATH_MAX - int "Maximum size of path name" - default 256 - ---help--- - The maximum size of path name. - -config LINE_MAX - int "Maximum size of line" - default 64 if DEFAULT_SMALL - default 80 if !DEFAULT_SMALL - ---help--- - The maximum size of line. Unless otherwise noted, the maximum length, in bytes, - of a utility's input line (either standard input or another file), when the - utility is described as processing text files. The length includes room for - the trailing newline. - endmenu # Files and I/O menuconfig PRIORITY_INHERITANCE