Commit Graph

17 Commits

Author SHA1 Message Date
Ruediger Meier b1a294c448 misc: introduce print_usage_help_options()
Consolidate --help and --version descriptions. We are
now able to align them to the other options.

We changed include/c.h. The rest of this patch was
generated by sed, plus manually setting the right
alignment numbers. We do not change anything but
white spaces in the --help output.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2017-06-27 12:26:19 +02:00
Ruediger Meier 86be6a32d3 misc: cosmetics, remove argument from usage(FILE*)
This patch is trivial and changes nothing, because
we were always using usage(stdout)

Now all our usage() functions look very similar. If wanted we
could auto-generate another big cosmetical patch to remove all
the useless "FILE *out" constants and use printf and puts
rather than their f* friends. Such patch could be automatically
synchronized with the translation project (newlines!) to not
make the translators sick.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2017-06-26 14:38:24 +02:00
Karel Zak c3a4cfc579 misc: consolidate usage() "Available columns"
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-06-26 14:09:53 +02:00
Yuri Chornoivan 0508f347c8 Fix minor typos 2017-05-24 00:22:20 +03:00
Karel Zak 780ce22cda misc: consolidate smartcols error messages
... just to keep translators happy

Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-18 11:39:34 +02:00
Karel Zak b7ebf49c9b fincore: check rc from smartcols stuff [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-05-17 13:08:33 +02:00
Sami Kerola b9dc8d071d fincore: fix file descriptor leak
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2017-04-10 15:40:39 +02:00
Karel Zak 452089fa2f fincore: use size_t everywhere
It seems better to avoid "int" at all from sizes calculations to make
the code more robust for future changes.

Signed-off-by: Karel Zak <kzak@redhat.com>
2017-04-06 12:40:01 +02:00
Ruediger Meier 379c1a52a2 fincore: fix multiplication overflow
This failed on ppc64 with page size 64k.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2017-04-06 12:30:09 +02:00
Karel Zak e4e8b57be2 fincore: add column RES
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-03-27 13:08:40 +02:00
Karel Zak cff1c113fe fincore: fix error on open()
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-03-23 15:28:05 +01:00
Karel Zak 9b48766fb3 fincore: add --raw and --json
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-03-23 14:34:12 +01:00
Karel Zak c5cb541299 fincore: add --output
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-03-23 14:27:42 +01:00
Karel Zak 3f91dd88ca fincore: add --bytes and --noheadings
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-03-23 14:17:46 +01:00
Karel Zak 3e37d7b773 fincore: use libsmartcols
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-03-23 14:09:20 +01:00
Karel Zak b57fe43cd4 fincore: cleanup return codes
Don't use EXIT_* macros as functions return code.

Signed-off-by: Karel Zak <kzak@redhat.com>
2017-03-23 13:07:06 +01:00
Masatake YAMATO a921a7dea9 fincore: new command for counting pages of file contents in core
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-03-23 12:46:09 +01:00