atatat
d5fb781871
More properly host-tool-ify stat
2003-07-25 03:21:15 +00:00
lukem
49671e2e2b
* don't compile in support for st_birth #ifdef HOSTPROG
...
* remove %B (birth) from default format strings, since %B isn't available
#ifdef HOSTPROG, and it's not standard enough to be fussed about anyway
2003-07-23 07:23:23 +00:00
lukem
5885a35ae3
first attempt at making this a HOSTPROG
2003-07-20 14:12:13 +00:00
atatat
ee00aa727c
Add %B to print the st_birthtime of an inode (adjusting the "raw"
...
format and "shell" format appropriately), and rename the st_*timespec
fields in the shell-style output to be st_*time, since that's what
they really are.
2003-05-08 13:05:38 +00:00
provos
32b88027c7
use readlink with bufsize - 1; approved thorpej.
2002-10-19 20:33:17 +00:00
atatat
3b13379090
Use limits.h instead of sys/syslimits.h since it's more potrable.
2002-08-13 20:15:06 +00:00
atatat
95c295f329
Style sync with FreeBSD. Changes via Doug Barton <DougB@FreeBSD.org>.
2002-08-13 14:05:41 +00:00
atatat
4f9dae6e41
Header reorganization makes a shorter list. From Doug Barton <DougB@FreeBSD.org>
2002-07-09 21:25:00 +00:00
atatat
c18774b05c
The bitwise or-ing together of letters is almost *guaranteed* to do
...
the wrong thing, as in this case. I should read the preprocessor
output more often.
2002-07-09 17:22:26 +00:00
atatat
5ccfe86e65
A new command line option, -q, suppresses *stat(2) failure messages.
...
Output is now done via stdio, instead of with my stupid homegrown
buffering (I don't even know why I did it that way in the first
place). Also, from Johan Karlsson <johan@freebsd.org>, eliminate a
spurious newline if no output was generated, and link stat(1) to
readlink(1) for similarity to OpenBSD.
2002-07-08 18:48:42 +00:00
atatat
4baf4e86ab
When asked for the string representation of a device that isn't
...
found by devname(3), don't report a "bad format"...just use "???"
instead.
2002-05-31 16:45:16 +00:00
atatat
04712927f0
Add a simple format that translates to the current file number, fix an
...
off by one error, and #define a bunch more things to make it clearer.
2002-05-09 17:52:03 +00:00
atatat
ba4e8c9674
Add a stat(1) program to /usr/bin. It provides a simple formatting
...
interface, with reasonable defaults, to the information provided by
stat(2) so that scripts can use the data therein much more easily.
2002-04-27 16:37:19 +00:00