Commit Graph

24 Commits

Author SHA1 Message Date
christos cdab3a7a06 More programs using efun. 2006-08-26 18:17:41 +00:00
perry d310ebb16a de-__P, ANSIfy prototypes 2006-01-04 01:30:21 +00:00
lukem a3b235bbd2 appease gcc -Wuninitialized 2005-06-02 01:53:01 +00:00
dsl b23af931be Add (unsigned char) cast to ctype functions 2004-10-30 17:43:02 +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
dmcmahill 188fcee35a add
#if HAVE_CONFIG_H
#include "config.h"
#endif
to get this to build under solaris-2.6/sparc with gcc-2.95.1 as part of
the NetBSD cross toolchain build.  Fixes PR23211.  Patch approved by
Alistair Crooks.
2003-10-22 12:30:39 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
augustss c8e6437c5e More tests if __RCSID is defined. 2003-03-12 18:26:32 +00:00
bjh21 89e07ef724 More POSIX overhaul:
Support the F, D and L modifiers to the f format correctly.
Generate hexdump byte-counts, precisions and spacings automatically.
2002-03-30 13:29:27 +00:00
bjh21 41a2a8aac2 WARNS=2 2001-12-07 15:14:29 +00:00
bjh21 0a1ce99f56 Further POSIX progress: The C, S, I and L modifiers now behave correctly,
specifying output in units of a char, short, int and long (as defined by the
host system) respectively.  This made the POSIX -t code more than complicated
enough to merit its own function, so I did that.
2001-12-07 01:23:42 +00:00
bjh21 94f69635b1 Further POSIXification: od now supports -N, which is equivalent to hexdump's
-n (format only COUNT bytes of input).
2001-12-05 18:07:50 +00:00
bjh21 a4b50871cb Add a -j option to od, which does the same as the -s option to
hexdump (skipping some of the input).  This brings our od slightly
closer to POSIX.2 conformance.
2001-12-05 17:46:15 +00:00
christos 74f15d98d3 PR/12147: TheMan: add -t option to od. 2001-02-07 18:32:21 +00:00
christos 9794a7e065 char -> unsigned char 1998-12-19 16:37:28 +00:00
ross f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
lukem c6810a0286 WARNSify, fix .Nm usage, deprecate register 1997-10-19 02:34:02 +00:00
mrg 7397398466 merge lite-2. 1997-10-18 13:53:56 +00:00
mikel 769693f903 add explicit return types to many functions
pull global variable declarations and function prototypes into hexdump.h
add #includes where necessary for prototypes
replace index() with strchr(), const-poison static string vars, etc.
1997-07-11 06:28:26 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft 21f39729d7 Previous patch was incorrect. 1993-05-04 05:50:21 +00:00
sef 35127652d7 Fix a NULL-dereferencing, that caused a segfault with QMAGIC (yay). 1993-05-03 20:51:56 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00