Age | Commit message (Collapse) | Author |
|
|
|
(print_stat): Remove another #ifdef.
(do_statfs): Likewise.
(print_statfs): Prefer/use fputs over printf.
(print_stat): Likewise.
|
|
|
|
(verbose_usage): Remove function.
|
|
Remove lots of #if directives involving FLASK_LINUX
[!FLASK_LINUX] (is_flask_enabled): Define.
(stat_secure, lstat_secure): Define.
(print_statfs): Remove lots of nested #if directives.
Instead, rely on support fo %llu and %lld printf formats --
but that is only temporary, since it's not porable enough.
(main): Hoist is_flask_enabled test to be done here, rather
than in each of do_stat and do_statfs for every argument.
|
|
Constify many parameters.
(print_statfs): Fix typo: Use %u (to match %lu) for namelen, not %d.
|
|
|
|
|
|
Declare most functions to be `static'.
|
|
[HAVE_SYS_SYSMACROS_H]: Guard inclusion of sys/sysmacros.h.
(PROGRAM_NAME, AUTHORS): Define.
(long_options): Declare/define.
(print_human_access): Rewrite to use mode_string.
(usage): Rewrite.
(main): Use getopt_long.
|
|
and cpp directive (indented via cppi).
|
|
|
|
|
|
instead of hard-coding --help and --version descriptions.
|
|
|