Skip to content

Commit

Permalink
libc/unistd: move NAME_MAX/LINE_MAX/PATH_MAX define to unistd
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
anchao authored and xiaoxiang781216 committed Jan 15, 2025
1 parent 71a37b4 commit dedb57c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 22 additions & 0 deletions libs/libc/unistd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
22 changes: 0 additions & 22 deletions sched/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dedb57c

Please sign in to comment.