Skip to content

Commit f8377f8

Browse files
Zhangshoukuianchao
authored andcommitted
Add LINE_MAX configuration
Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
1 parent c6c89ac commit f8377f8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

include/limits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
#define _POSIX_PIPE_BUF 512
131131
#define _POSIX_STREAM_MAX 16
132132
#define _POSIX_TZNAME_MAX 3
133-
#define _POSIX2_LINE_MAX 80
133+
#define _POSIX2_LINE_MAX CONFIG_LINE_MAX
134134

135135
#ifdef CONFIG_SMALL_MEMORY
136136

sched/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,16 @@ config PATH_MAX
14121412
---help---
14131413
The maximum size of path name.
14141414

1415+
config LINE_MAX
1416+
int "Maximum size of line"
1417+
default 64 if DEFAULT_SMALL
1418+
default 80 if !DEFAULT_SMALL
1419+
---help---
1420+
The maximum size of line. Unless otherwise noted, the maximum length, in bytes,
1421+
of a utility's input line (either standard input or another file), when the
1422+
utility is described as processing text files. The length includes room for
1423+
the trailing newline.
1424+
14151425
endmenu # Files and I/O
14161426

14171427
menuconfig PRIORITY_INHERITANCE

0 commit comments

Comments
 (0)