]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
def: add new constant LONG_LINE_MAX 6901/head
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Sep 2017 18:23:58 +0000 (20:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Sep 2017 18:34:15 +0000 (20:34 +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

index 7ce052c7efcf39bcec69eaefdb786bda6d7e66f9..d3f5381e1baa1e43eb145b2312863db296c05610 100644 (file)
@@ -84,3 +84,5 @@
         "/usr/local/lib/" n "\0"                \
         "/usr/lib/" n "\0"                      \
         _CONF_PATHS_SPLIT_USR(n)
+
+#define LONG_LINE_MAX (1U*1024U*1024U)