Systemd/src/journal
Zbigniew Jędrzejewski-Szmek 601185b43d Unify parse_argv style
getopt is usually good at printing out a nice error message when
commandline options are invalid. It distinguishes between an unknown
option and a known option with a missing arg. It is better to let it
do its job and not use opterr=0 unless we actually want to suppress
messages. So remove opterr=0 in the few places where it wasn't really
useful.

When an error in options is encountered, we should not print a lengthy
help() and overwhelm the user, when we know precisely what is wrong
with the commandline. In addition, since help() prints to stdout, it
should not be used except when requested with -h or --help.

Also, simplify things here and there.
2014-08-03 21:46:07 -04:00
..
.gitignore journald: parse configuration file 2012-01-04 20:40:04 +01:00
cat.c Unify parse_argv style 2014-08-03 21:46:07 -04:00
catalog.c journal: properly detect language specified in line 2014-04-12 10:20:55 -04:00
catalog.h shared: switch our hash table implementation over to SipHash 2013-12-22 21:12:25 +01:00
compress.c compress: fix return value 2014-07-18 21:44:36 -04:00
compress.h journal: add LZ4 as optional compressor 2014-07-06 19:06:03 -04:00
coredump-vacuum.c coredump: vacuum - fix calculation of 10% of fs size for MaxUse 2014-07-01 23:49:56 +02:00
coredump-vacuum.h coredump: add simple coredump vacuuming 2014-06-27 19:35:57 +02:00
coredump.c Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
coredump.conf coredump: replace Compression= setting by simpler Compress= boolean setting 2014-06-27 19:35:57 +02:00
coredumpctl.c Unify parse_argv style 2014-08-03 21:46:07 -04:00
fsprg.c use memzero(foo, length); for all memset(foo, 0, length); calls 2014-01-31 11:55:01 +01:00
fsprg.h Add __attribute__((const, pure, format)) in various places 2013-05-02 22:52:09 -04:00
journal-authenticate.c util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
journal-authenticate.h journald: don't reposition window if we don't have to 2012-09-13 17:06:04 +02:00
journal-def.h Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
journal-file.c journal: allow files with no data whatsoever 2014-07-15 22:23:47 -04:00
journal-file.h Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
journal-internal.h Always prefer our headers to system headers 2014-07-31 08:56:03 -04: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 Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
journal-send.c journal-send.c: use automatic cleanup 2014-06-19 08:53:31 -04:00
journal-vacuum.c time-util: add and use USEC/NSEC_INFINIY 2014-07-29 13:20:20 +02:00
journal-vacuum.h journald: do not free space when disk space runs low 2014-01-11 16:54:59 -05:00
journal-verify.c journal/verify: flush progress bar, print offset in more places 2014-07-16 19:00:03 -04: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 Unify parse_argv style 2014-08-03 21:46:07 -04:00
journald-console.c Remove unnecessary casts in printfs 2014-05-15 15:29:58 +02:00
journald-console.h build-sys: store journald code in a noinst library 2012-11-14 23:39:53 +01:00
journald-gperf.gperf journald: add support for wall forwarding 2014-03-14 22:05:25 +01:00
journald-kmsg.c Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
journald-kmsg.h journald: port to sd-event and enable watchdog support 2013-12-11 20:55:09 +01:00
journald-native.c Small modernizations 2014-07-18 21:45:27 -04:00
journald-native.h Clear up confusion wrt. ENTRY_SIZE_MAX and DATA_SIZE_MAX 2014-07-15 22:34:42 -04: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 journal: the ratelimiter is part of journald 2012-08-22 03:43:45 +02:00
journald-server.c Properly report invalid quoted strings 2014-07-31 08:56:03 -04:00
journald-server.h journald: make SplitMode=uid the default 2014-06-19 12:38:45 +02:00
journald-stream.c Be more verbose when bind or listen fails 2014-07-18 21:44:59 -04:00
journald-stream.h journald: port to sd-event and enable watchdog support 2013-12-11 20:55:09 +01:00
journald-syslog.c Be more verbose when bind or listen fails 2014-07-18 21:44:59 -04:00
journald-syslog.h journald: malloc less when streaming messages 2013-12-10 20:38:33 -05:00
journald-wall.c journald: add support for wall forwarding 2014-03-14 22:05:25 +01:00
journald-wall.h journald: add support for wall forwarding 2014-03-14 22:05:25 +01:00
journald.c Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
journald.conf journald: turn ForwardToSyslog= off by default 2014-07-11 15:34:40 +02: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
Makefile journal: add preliminary incomplete implementation 2011-10-07 22:02:05 +02:00
mmap-cache.c journal: fix access to munmapped memory in sd_journal_enumerate_unique 2014-01-11 10:07:22 -05:00
mmap-cache.h journal: fix access to munmapped memory in sd_journal_enumerate_unique 2014-01-11 10:07:22 -05:00
sd-journal.c Reject invalid quoted strings 2014-07-31 04:00:31 -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 journal: cleanup up error handling in update_catalog() 2014-04-12 10:20:55 -04:00
test-compress-benchmark.c test-compress-benchmark: add missing % before PRIu64 format 2014-07-16 08:59:13 +02:00
test-compress.c fix #ifdef 2014-07-08 23:15:07 -04:00
test-coredump-vacuum.c coredump: add simple coredump vacuuming 2014-06-27 19:35:57 +02:00
test-journal-enum.c move _cleanup_ attribute in front of the type 2013-04-18 09:11:22 +02:00
test-journal-flush.c test-journal-flush: avoid predictable names in /var/tmp 2014-04-26 08:16:35 -04:00
test-journal-init.c Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
test-journal-interleaving.c Always prefer our headers to system headers 2014-07-31 08:56:03 -04: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 Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
test-journal-syslog.c test-journal-syslog: use streq_ptr since we pass in NULL 2013-12-15 02:31:01 +01:00
test-journal-verify.c util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00
test-journal.c Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
test-mmap-cache.c util: replace close_nointr_nofail() by a more useful safe_close() 2014-03-18 19:31:34 +01:00