Commit Graph

26 Commits

Author SHA1 Message Date
atatat
f9130f0cc1 Take the time to set gottime so that you don't have to waste time
trying to figure out why the time isn't the time you expected all the
time.
2003-10-29 04:25:46 +00:00
lukem
6182ef67e2 be consistent using #if HAVE_STRUCT_STAT_ST_xxx (versus #ifdef) 2003-10-27 00:16:21 +00:00
lukem
171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
chs
8caf978ec2 fix for systems which don't have st_*timespec. PR 23214. 2003-10-26 20:43:13 +00:00
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
4b391b57bf pass in -DHOSTPROG if a HOSTPROG 2003-07-22 13:58:49 +00:00
agc
8a3e64ceb9 Fix a tyop - we want the readlink binary and manual pages when HOSTPROG
is not defined.
2003-07-21 10:16:55 +00:00
lukem
5885a35ae3 first attempt at making this a HOSTPROG 2003-07-20 14:12:13 +00:00
wiz
9029b1ef5d Bump date for last. 2003-05-08 13:07:10 +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
atatat
ebe81c7ec3 Fix the sample output in one of the examples 2003-02-21 18:50:10 +00:00
grant
2ceb845887 The correct capitalisation of 'NetBSD.org' is (you
guessed it) 'NetBSD.org'.

some mdoc fixes.
2003-02-14 15:59:16 +00:00
provos
32b88027c7 use readlink with bufsize - 1; approved thorpej. 2002-10-19 20:33:17 +00:00
grant
be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +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
f6a1c49f5e NetBSD id police 2002-07-26 14:16:37 +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
wiz
b1017b64f1 Formatting, grammar, spelling, and other improvements. 2002-04-28 17:44:43 +00:00
atatat
c583268d4e That should be "ls -lTd", not "ls -lT" 2002-04-28 17:21:33 +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