aboutsummaryrefslogtreecommitdiff
path: root/toys/other/stat.c
AgeCommit message (Collapse)Author
2016-08-11Matthias Urhahn pointed out that %b returns hardwired 512 byte unitsRob Landley
(man 2 stat says so) and %B is the units on %b (I.E. always 512), so change output and help text. This matches what other implementations produce.
2016-06-15Add readlink0() and readlinkat0() which null terminate the data.Rob Landley
2016-06-12Finish switching to dev_major/dev_minor.Elliott Hughes
7ca5dc4232b9ac5ee5cd25c8b5b33a58904cd251 didn't switch all callers over to the new functions.
2016-05-16Add stat -tL and -c %m%t%T.Rob Landley
Suggested by Sameer Pradhan, or possibly Bilal Qureshi.
2016-01-05Add error_msg_raw() and friends, replace error_msg("%s", s) uses, enable formatRob Landley
checking, and fix up format checking complaints. Added out(type, value) function to stat to avoid a zillion printf typecasts.
2015-10-20Move d/h units from %d %D output to default format string.Rob Landley
2015-10-10"stat -c %T" support (filesystem type names) based on patch from Hyejin Kim.Rob Landley
2015-05-15stat: fix group nameJosé Bollo
Change-Id: I0ad65a40bf380d789c4396ebdc01be217901a2e3
2015-02-25stat -f didn't work on 32 bit systems because type sizes wrong (fix from ↵0.5.2Rob Landley
Elliott Hughes).
2013-09-04Don't pad stat's %a field.Rob Landley
2013-06-02Move stat from pending to other, default y.Rob Landley