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
cl
7272f1e99e
include <inttypes.h> to get uint64_t defined
2003-09-12 12:59:34 +00:00
wiz
3de6998961
This is a host tool: use {u,}int64_t instead of {u_,}quad_t.
2003-09-09 09:45:47 +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
wiz
b93a29cdaa
Fixes to make these man page look nice with groff-1.19.
2003-06-30 19:12:31 +00:00
lukem
826a14607a
Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
...
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
augustss
177beb544c
Two more __RCSID checks that I missed.
2003-03-12 18:32:51 +00:00
augustss
c8e6437c5e
More tests if __RCSID is defined.
2003-03-12 18:26:32 +00:00
augustss
a24a8f129a
Do the defined(__RCSID) song and dance to enable cross compilation.
2003-03-12 16:46:33 +00:00
thorpej
ae754e0c76
Make hexdump a host tool.
2003-03-07 01:14:30 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
mjl
f395946596
Correct typos (from OpenBSD).
2003-01-12 21:04:06 +00:00
wiz
bec6f0cde7
Wrong word; from jmc@prioris.mini.pw.edu.pl via openbsd.
2003-01-06 12:43:08 +00:00
kleink
a4d0ca7ffd
setlocale(LC_ALL, "") on startup.
2002-11-12 22:41:01 +00:00
grant
be8ae688ae
New sentence, new line.
2002-09-30 11:08:56 +00:00
itojun
f51456c273
err/errx/warn/warnx do not need \n at the end
2002-06-11 06:06:18 +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
ross
2a76afae02
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:36:18 +00:00
bjh21
41a2a8aac2
WARNS=2
2001-12-07 15:14:29 +00:00
bjh21
ba649ef7db
Mention that eight-byte integers work.
2001-12-07 14:46:24 +00:00
bjh21
a1aaa4713c
POSIX.2 doesn't specify hexdump, so we can't claim our hexdump is compatible
...
with it.
2001-12-07 13:45:07 +00:00
bjh21
84f98450e5
Enable support for printing 8-byte integers. For some reason, most of the
...
code for this was present, but disabled.
This is required for POSIX compliance on platforms with 8-byte longs.
2001-12-07 13:37:39 +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
wiz
aded0d2cce
Whitespace cleanup.
2001-12-01 16:43:07 +00:00
atatat
4aaca49ce6
Hmm...apparently I left out a word.
2001-10-03 20:29:39 +00:00
wiz
ccb6f40539
Improve usage of `comprise' according to Webster and misc/10893
...
by Jim Bernard.
2001-05-06 12:29:18 +00:00
wiz
1561a4e9ef
Lowercase name in xref.
2001-04-04 09:36:33 +00:00
christos
853a8e1dfd
PR/9195: Tanaka Akira: od does not display short files containing nulls. Fix
...
from Andrew Brown.
2001-02-15 18:16:12 +00:00
christos
b023fbbf99
fix fix typo from @@@
2001-02-10 00:49:04 +00:00
christos
350f82175f
new man page from @@@
2001-02-09 17:50:44 +00:00
christos
74f15d98d3
PR/12147: TheMan: add -t option to od.
2001-02-07 18:32:21 +00:00
christos
d88f58cb84
constify
2001-02-07 18:32:07 +00:00
christos
d266dee836
PR/12147: TheMan: add -t option to od.
2001-02-07 18:31:07 +00:00
bjh21
1897a4fb7f
Don't core dump with an empty format string. Fixes PR#11218.
...
Patch supplied by Launey Thomas.
2000-10-14 17:41:55 +00:00
itojun
81d0adc881
string length computation bug. PR 8676.
2000-10-11 16:47:22 +00:00
is
135600f947
More format string cleanup by sommerfeld.
2000-10-11 14:46:00 +00:00
itojun
4806b1729d
printf() pedant - even if we are sure that there's no %-formatted in a
...
varaiable, don't pass variable alone to printf().
From: kris@freebsd.org (FreeBSD-current usr.bin/hexdump/display.c 1.4 -> 1.6)
2000-07-10 10:09:04 +00:00
drochner
85cbf55d16
Since our gcc doesn't warn about NULL format strings anymore, we can
...
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
mycroft
a1c657fe56
Clean up SYNOPSIS formatting.
1999-03-07 11:29:58 +00:00
mycroft
f09b662944
Add a real date.
1999-03-06 11:50:46 +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
984e733115
everything has bugs; either document them or don't bother with a BUGS section
1998-06-08 12:03:23 +00:00
jeremy
14fbe381c3
Show -C option in usage. PR/5266
1998-04-08 23:48:57 +00:00
jeremy
757abd14c5
Added -C option for hexadecimal+ASCII display. [PR/5017]
...
Fixed minor inconsistency in option descriptions in the man page.
1998-02-20 23:45:27 +00:00
lukem
c6810a0286
WARNSify, fix .Nm usage, deprecate register
1997-10-19 02:34:02 +00:00