Commit Graph

11 Commits

Author SHA1 Message Date
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