Systemd/src/journal
Lennart Poettering 527b7a421f util: rework cunescape(), improve error handling
Change cunescape() to return a normal error code, so that we can
distuingish OOM errors from parse errors.

This also adds a flags parameter to control whether "relaxed" or normal
parsing shall be done. If set no parse failures are generated, and the
only reason why cunescape() can fail is OOM.
2015-04-07 15:42:25 +02:00
..
.gitignore journald: parse configuration file 2012-01-04 20:40:04 +01:00
Makefile journal: add preliminary incomplete implementation 2011-10-07 22:02:05 +02:00
cat.c remove unused includes 2015-02-23 23:53:42 +01:00
catalog.c fix gcc warnings about uninitialized variables 2015-03-27 14:57:38 +01:00
catalog.h hashmap: introduce hash_ops to make struct Hashmap smaller 2014-09-15 16:08:50 +02:00
compress.c Introduce loop_read_exact helper 2015-03-09 22:10:54 -04:00
compress.h remove unused includes 2015-02-23 23:53:42 +01:00
coredump-vacuum.c treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
coredump-vacuum.h coredump: add simple coredump vacuuming 2014-06-27 19:35:57 +02:00
coredump.c fix gcc warnings about uninitialized variables 2015-03-27 14:57:38 +01:00
coredump.conf Do not advertise .d snippets over main config file 2015-03-03 19:10:21 -05:00
coredumpctl.c tree-wide: there is no ENOTSUP on linux 2015-03-13 14:10:39 +01:00
fsprg.c remove unused includes 2015-02-23 23:53:42 +01:00
fsprg.h Add __attribute__((const, pure, format)) in various places 2013-05-02 22:52:09 -04:00
journal-authenticate.c tree-wide: there is no ENOTSUP on linux 2015-03-13 14:10:39 +01:00
journal-authenticate.h remove unused includes 2015-02-23 23:53:42 +01:00
journal-def.h journal: have a named enum ObjectType 2014-12-13 00:47:23 +01:00
journal-file.c fix gcc warnings about uninitialized variables 2015-03-27 14:57:38 +01:00
journal-file.h journal: make skipping of exhausted journal files effective again 2015-02-25 17:32:27 +01:00
journal-internal.h Add missing includes in header files 2015-02-12 20:44:32 +01:00
journal-qrcode.c Use stdint.h macros instead of casts to print uint64_t values 2013-06-10 10:10:07 -04:00
journal-qrcode.h remove unused includes 2015-02-23 23:53:42 +01:00
journal-send.c Add a snprinf wrapper which checks that the buffer was big enough 2015-02-01 17:21:39 -05:00
journal-vacuum.c fix gcc warnings about uninitialized variables 2015-03-27 14:57:38 +01:00
journal-vacuum.h remove unused includes 2015-02-23 23:53:42 +01:00
journal-verify.c tree-wide: there is no ENOTSUP on linux 2015-03-13 14:10:39 +01:00
journal-verify.h journald: always pass first entry timestamp back from journal_file_verify() 2012-09-24 15:02:43 +02:00
journalctl.c fix gcc warnings about uninitialized variables 2015-03-27 14:57:38 +01:00
journald-audit.c journald: add syslog fields for audit messages 2015-03-14 23:03:45 -04:00
journald-audit.h journald: don't pass around SO_TIMESTAMP timestamp for audit, which we don't have anyway 2014-11-04 00:32:02 +01:00
journald-console.c remove unused includes 2015-02-23 23:53:42 +01:00
journald-console.h journald: constify all things! 2014-11-03 21:51:28 +01:00
journald-gperf.gperf journald: add support for wall forwarding 2014-03-14 22:05:25 +01:00
journald-kmsg.c util: rework cunescape(), improve error handling 2015-04-07 15:42:25 +02:00
journald-kmsg.h journald: constify all things! 2014-11-03 21:51:28 +01:00
journald-native.c journald: prefix exported calls with "server_", unexport unnecessary calls 2015-01-05 01:40:51 +01:00
journald-native.h journald: constify all things! 2014-11-03 21:51:28 +01:00
journald-rate-limit.c shared: switch our hash table implementation over to SipHash 2013-12-22 21:12:25 +01:00
journald-rate-limit.h remove unused includes 2015-02-23 23:53:42 +01:00
journald-server.c util: rework rm_rf() logic 2015-04-06 10:57:53 +02:00
journald-server.h remove unused includes 2015-02-23 23:53:42 +01:00
journald-stream.c remove unused includes 2015-02-23 23:53:42 +01:00
journald-stream.h journald: allow restarting journald without losing stream connections 2015-01-06 03:16:39 +01:00
journald-syslog.c journald: fix some xsprrintf() buffer size fallout 2015-02-03 18:17:00 +01:00
journald-syslog.h import: introduce new mini-daemon systemd-importd, and make machinectl a client to it 2015-01-22 04:02:07 +01:00
journald-wall.c treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
journald-wall.h journald: constify all things! 2014-11-03 21:51:28 +01:00
journald.c remove unused includes 2015-02-23 23:53:42 +01:00
journald.conf Do not advertise .d snippets over main config file 2015-03-03 19:10:21 -05:00
lookup3.c journal: fix build in VALGRIND compatibility mode 2012-10-13 14:40:32 +02:00
lookup3.h Add __attribute__((const, pure, format)) in various places 2013-05-02 22:52:09 -04:00
mmap-cache.c remove unused includes 2015-02-23 23:53:42 +01:00
mmap-cache.h remove unused includes 2015-02-23 23:53:42 +01:00
sd-journal.c sd-journal: return error when we cannot open a file 2015-03-08 11:11:50 -04:00
stacktrace.c coredump: include stacktrace of coredumps in the log message 2014-06-19 12:38:45 +02:00
stacktrace.h coredump: include stacktrace of coredumps in the log message 2014-06-19 12:38:45 +02:00
test-catalog.c remove unused includes 2015-02-23 23:53:42 +01:00
test-compress-benchmark.c tests: use assert_se instead of assert 2015-01-22 23:10:56 +01:00
test-compress.c tests: use assert_se instead of assert 2015-01-22 23:10:56 +01:00
test-coredump-vacuum.c coredump: add simple coredump vacuuming 2014-06-27 19:35:57 +02:00
test-journal-enum.c remove unused includes 2015-02-23 23:53:42 +01:00
test-journal-flush.c tests: use assert_se instead of assert 2015-01-22 23:10:56 +01:00
test-journal-init.c util: rework rm_rf() logic 2015-04-06 10:57:53 +02:00
test-journal-interleaving.c util: rework rm_rf() logic 2015-04-06 10:57:53 +02:00
test-journal-match.c Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
test-journal-send.c Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
test-journal-stream.c util: rework rm_rf() logic 2015-04-06 10:57:53 +02:00
test-journal-syslog.c tests: use assert_se instead of assert 2014-11-30 02:35:52 +01:00
test-journal-verify.c util: rework rm_rf() logic 2015-04-06 10:57:53 +02:00
test-journal.c util: rework rm_rf() logic 2015-04-06 10:57:53 +02:00
test-mmap-cache.c remove unused includes 2015-02-23 23:53:42 +01:00