summaryrefslogtreecommitdiff
path: root/src/stat.c
AgeCommit message (Collapse)Author
2002-04-15remove parens in #if directivesJim Meyering
2002-04-14(statfs_secure): Define.Jim Meyering
(print_stat): Remove another #ifdef. (do_statfs): Likewise. (print_statfs): Prefer/use fputs over printf. (print_stat): Likewise.
2002-04-14filter through GNU indentJim Meyering
2002-04-14Split some long lines.Jim Meyering
(verbose_usage): Remove function.
2002-04-14(verbose_usage): Remove function. Move contents into usage.Jim Meyering
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.
2002-04-14[HAVE_SYS_VFS_H]: Guard incluion of sys/vfs.h.Jim Meyering
Constify many parameters. (print_statfs): Fix typo: Use %u (to match %lu) for namelen, not %d.
2002-04-13add a couple `const'Jim Meyering
2002-04-13(print_human_fstype): Revamp in a similar fashion. Don't use strdup.Jim Meyering
2002-04-13(print_human_type): Call fputs once rather than calling printf many times.Jim Meyering
Declare most functions to be `static'.
2002-04-13Include system.h, error.h, and many other headers.Jim Meyering
[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.
2002-04-13Direct from Debian's stat_3.3-1, modulo trailing blanks (removed)Jim Meyering
and cpp directive (indented via cppi).
2002-02-26.Jim Meyering
2001-12-16use generated fs_name functionJim Meyering
2001-12-02Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-11-26*** empty log message ***Jim Meyering