chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e269048
)
def: add new constant LONG_LINE_MAX
author
Lennart Poettering
<lennart@poettering.net>
Fri, 22 Sep 2017 18:23:58 +0000
(20:23 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Fri, 22 Sep 2017 18:23:58 +0000
(20:23 +0200)
LONG_LINE_MAX is much like LINE_MAX, but longer.
As it turns out LINE_MAX at 4096 is too short for many usecases. Since
the general concept of having a common maximum line length limit makes
sense let's add our own, and make it larger (1MB for now).
src/basic/def.h
patch
|
blob
|
history
diff --git
a/src/basic/def.h
b/src/basic/def.h
index d30b4a106b9ba04ee2639a19dbb8a3969e338098..1571f921b739c48ddcd14724f5cfaf5a42c4367d 100644
(file)
--- a/
src/basic/def.h
+++ b/
src/basic/def.h
@@
-96,3
+96,5
@@
"/usr/local/lib/" n "\0" \
"/usr/lib/" n "\0" \
_CONF_PATHS_SPLIT_USR(n)
+
+#define LONG_LINE_MAX (1U*1024U*1024U)