Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Documentation/applications/nsh/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ Configuration Description
setting is *y*. This setting depends upon the ``strerror()``
having been enabled with ``CONFIG_LIBC_STRERROR``.

``CONFIG_NSH_LINELEN`` The maximum length of one command line and of one output line.
Default: 80

``CONFIG_NSH_DISABLE_SEMICOLON`` By default, you can enter multiple NSH commands on a line
with each command separated by a semicolon. You can disable this
feature to save a little memory on FLASH challenged platforms.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/guides/pysimcoder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ with NuttX. The list is the following:

==================================== =====================================
``CONFIG_ARCH_RAMVECTORS=y`` ``CONFIG_NSH_FILE_APPS=y``
``CONFIG_BOARDCTL_APP_SYMTAB=y`` ``CONFIG_NSH_LINELEN=64``
``CONFIG_BOARDCTL_APP_SYMTAB=y`` ``CONFIG_LINE_MAX=64``
``CONFIG_BOARDCTL_OS_SYMTAB=y`` ``CONFIG_NSH_READLINE=y``
``CONFIG_BUILTIN=y`` ``CONFIG_ETC_ROMFS=y``
``CONFIG_ELF=y`` ``CONFIG_PSEUDOTERM=y``
Expand Down
2 changes: 1 addition & 1 deletion Documentation/platforms/sim/sim/boards/sim/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ NOTES
-
+sleep(2); // REMOVE ME
+#if 0 // REMOVE ME
ret = readline(pstate->cn_line, CONFIG_NSH_LINELEN,
ret = readline(pstate->cn_line, LINE_MAX,
INSTREAM(pstate), OUTSTREAM(pstate));
if (ret > 0)
@@ -153,6 +155,7 @@
Expand Down
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
Comment thread
xiaoxiang781216 marked this conversation as resolved.
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