Systemd/src/journal
Zbigniew Jędrzejewski-Szmek a5648b8094 basic/fs-util: change CHASE_OPEN flag into a separate output parameter
chase_symlinks() would return negative on error, and either a non-negative status
or a non-negative fd when CHASE_OPEN was given. This made the interface quite
complicated, because dependning on the flags used, we would get two different
"types" of return object. Coverity was always confused by this, and flagged
every use of chase_symlinks() without CHASE_OPEN as a resource leak (because it
would this that an fd is returned). This patch uses a saparate output parameter,
so there is no confusion.

(I think it is OK to have functions which return either an error or an fd. It's
only returning *either* an fd or a non-fd that is confusing.)
2019-10-24 22:44:24 +09:00
..
audit-type.c journal: use missing_audit.h to generate audit_type-list.txt 2018-12-07 11:48:37 +09:00
audit-type.h tree-wide: use newa() instead of alloca() wherever we can 2019-01-26 16:17:04 +01:00
audit_type-to-name.awk meson: also indent scripts with 8 spaces 2017-04-25 08:49:16 -04:00
cat.c Merge pull request #12411 from keszybz/pr/12394 2019-05-08 10:11:32 -04:00
catalog.c journal: Make the output of --update-catalog deterministic 2019-09-06 15:13:54 +02:00
catalog.h journal: Make the output of --update-catalog deterministic 2019-09-06 15:13:54 +02:00
compress.c journal: properly read unaligned le64 integers 2019-07-16 15:22:26 +02:00
compress.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
fsprg.c util: split out memcmp()/memset() related calls into memory-util.[ch] 2019-03-13 12:16:43 +01:00
fsprg.h tree-wide: use '#pragma once' for header guard 2018-08-30 06:10:43 +03:00
generate-audit_type-list.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
journal-authenticate.c headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
journal-authenticate.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journal-def.h tree-wide: drop duplicated blank lines 2019-07-15 18:41:27 +02:00
journal-file.c journal: Consistently capitalize printed header entries 2019-10-22 10:32:09 +02:00
journal-file.h journal: use cleanup attribute at one more place 2019-05-28 18:07:18 +09:00
journal-internal.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journal-qrcode.c Add open_memstream_unlocked() wrapper 2019-04-12 11:44:57 +02:00
journal-qrcode.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journal-send.c util: split out errno related stuff 2019-03-14 13:25:51 +01:00
journal-vacuum.c util: introduce format_bytes_full() 2019-06-19 23:15:19 +09:00
journal-vacuum.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journal-verify.c journalctl: don't output ANSI sequences if disabled 2019-05-10 15:00:55 -04:00
journal-verify.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journalctl.c basic/fs-util: change CHASE_OPEN flag into a separate output parameter 2019-10-24 22:44:24 +09:00
journald-audit.c tree-wide: drop alloca() in loop 2019-06-20 06:29:19 +09:00
journald-audit.h tree-wide: add whitespace between type and variable name 2018-12-04 09:29:54 +01:00
journald-console.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journald-console.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journald-context.c tree-wide: say "ratelimit" not "rate_limit" 2019-09-20 16:05:53 +02:00
journald-context.h tree-wide: say "ratelimit" not "rate_limit" 2019-09-20 16:05:53 +02:00
journald-gperf.gperf tree-wide: say "ratelimit" not "rate_limit" 2019-09-20 16:05:53 +02:00
journald-kmsg.c tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
journald-kmsg.h tests: add a fuzzer for dev_kmsg_record 2018-11-16 08:44:35 +01:00
journald-native.c journald: use memdup_suffix0() when copying string from potentially binary data 2019-06-18 20:53:46 +03:00
journald-native.h journald: make server_process_native_message compatible with fuzz_journald_processing_function 2018-09-03 07:03:52 +00:00
journald-rate-limit.c tree-wide: say "ratelimit" not "rate_limit" 2019-09-20 16:05:53 +02:00
journald-rate-limit.h tree-wide: say "ratelimit" not "rate_limit" 2019-09-20 16:05:53 +02:00
journald-server.c tree-wide: say "ratelimit" not "rate_limit" 2019-09-20 16:05:53 +02:00
journald-server.h tree-wide: say "ratelimit" not "rate_limit" 2019-09-20 16:05:53 +02:00
journald-stream.c tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
journald-stream.h tests: add a fuzzer for journald streams 2018-11-20 03:03:32 +01:00
journald-syslog.c tree-wide: some automatic coccinelle fixes (#10463) 2018-10-20 00:07:46 +09:00
journald-syslog.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journald-wall.c journald: drop copyright headers for Sebastian Thorarensen 2018-07-03 01:32:25 +02:00
journald-wall.h headers: add missing includes 2019-03-28 19:59:56 +01:00
journald.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
journald.conf journal: add missing option in journald.conf 2018-06-26 04:05:42 +09:00
lookup3.c journal: also disable memory tricks when hashing under msan 2019-06-12 17:27:19 +02:00
lookup3.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
meson.build meson: create /var/log/journal/{,remote/} conditionally 2019-07-04 10:16:48 +02:00
mmap-cache.c util: split out errno related stuff 2019-03-14 13:25:51 +01:00
mmap-cache.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
sd-journal.c tree-wide: replace strjoina() with prefix_roota() 2019-06-25 01:31:26 +09:00
test-audit-type.c Drop my copyright headers 2018-06-14 13:03:20 +02:00
test-catalog.c journal: Make the output of --update-catalog deterministic 2019-09-06 15:13:54 +02:00
test-compress-benchmark.c util: split out nulstr related stuff to nulstr-util.[ch] 2019-03-14 13:25:52 +01:00
test-compress.c headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
test-journal-config.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-journal-enum.c tree-wide: add whitespace between type and variable name 2018-12-04 09:29:54 +01:00
test-journal-flush.c test-journal-flush: provide at least *some* logs 2019-08-20 12:01:23 +02:00
test-journal-init.c test-journal: move tests to /var/tmp/ and set FS_NOCOW_FL 2019-04-04 12:18:13 +02:00
test-journal-interleaving.c tree-wide: use PROJECT_FILE instead of __FILE__ 2019-07-04 10:36:00 +02:00
test-journal-match.c tree-wide: add whitespace between type and variable name 2018-12-04 09:29:54 +01:00
test-journal-send.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
test-journal-stream.c test-journal: move tests to /var/tmp/ and set FS_NOCOW_FL 2019-04-04 12:18:13 +02:00
test-journal-syslog.c test-journal-syslog: initialize variable 2018-09-25 11:34:52 +02:00
test-journal-verify.c test-journal: move tests to /var/tmp/ and set FS_NOCOW_FL 2019-04-04 12:18:13 +02:00
test-journal.c test-journal: move tests to /var/tmp/ and set FS_NOCOW_FL 2019-04-04 12:18:13 +02:00
test-mmap-cache.c util-lib: split out all temporary file related calls into tmpfiles-util.c 2018-12-02 13:22:29 +01:00