Commit Graph

14 Commits

Author SHA1 Message Date
Hiltjo Posthuma
7e394bd70f code-style: cleanup
- move main() at the bottom.
- put global variables at the top.
- improve usage() lines (consistent with man page).
2015-02-06 15:16:24 +00:00
sin
10d6bf2f4d Stop using *_FILENO 2014-11-30 13:12:33 +00:00
sin
6f7f387352 Stop using EXIT_{SUCCESS,FAILURE} 2014-10-02 23:47:39 +01:00
sin
8d187be64a Replace fprintf(stderr, ...) calls with weprintf() 2014-06-30 22:44:48 +01:00
sin
86060b535c Fix includes across all tools 2014-06-30 19:04:47 +01:00
Hiltjo Posthuma
bbf3b5ac85 stat: implement -t (terse mode)
mostly compatible with coreutils and busybox. file mode is intentionally not compatible though.

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-04 20:09:17 +01:00
Hiltjo Posthuma
139522b45e stat: declare initial functions to use at the top
remove Lflag. this will be more clear for terse format later on aswell.

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-04 20:09:04 +01:00
Hiltjo Posthuma
68c3146a9d stat: assign fn before loop
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-02-14 14:11:19 +00:00
sin
9dbc997058 Import stat(1) from sbase
This utility uses major()/minor() which are not portable.  It
belongs in ubase.
2014-01-30 16:24:03 +00:00
sin
64744bd6f1 Remove stat(1) - this now lives in sbase 2013-09-29 16:35:32 +01:00
sin
f6cf690aa2 Fix usage lines 2013-08-14 14:40:49 +01:00
sin
afc831a836 Implement -L flag for stat(1) 2013-08-12 10:13:11 +01:00
sin
a7dc139c35 Make stat(1) work with stdin as well.
Implement show_stat().
2013-08-12 10:08:44 +01:00
oblique
211f13ae95 Add stat(1)
No manpage yet.
2013-08-12 09:39:21 +01:00