ru
4b97577172
Capitalize ASCII code names.
...
Approved by: re
2002-12-05 08:50:00 +00:00
dwmalone
b4339b74ad
ANSIify function definitions.
...
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.
Reviewed by: md5
2002-09-04 23:29:10 +00:00
markm
31fbc209c3
s/inline/__inline/
2002-07-19 14:12:27 +00:00
obrien
bc61fc95d8
Consistently use FBSDID
2002-06-30 05:25:07 +00:00
ru
3e4fa1a599
mdoc(7) police: tidy up the markup.
2002-05-29 18:49:22 +00:00
tjr
ec252a0e8b
From NetBSD:
...
Revision 1.10 Sat Oct 14 17:41:55 2000 UTC by bjh21
Don't core dump with an empty format string. Fixes PR#11218.
Patch supplied by Launey Thomas.
Obtained from: NetBSD
2002-05-27 03:17:28 +00:00
tjr
5a5d149d29
Make the output tidier when multiple integer formats are requested by
...
attempting to line up values into columns.
Obtained from: NetBSD (idea)
2002-05-17 08:54:32 +00:00
tjr
98e1f63634
Overhaul hexdump's od syntax code to handle the -s -A -j -N -t options that
...
SUSv3 requires and give od a proper manual page.
PR: 36783
2002-05-17 07:14:55 +00:00
tjr
4769e48d99
Declare variables that were extern'd in multiple places in hexdump.h.
...
PR: 36783
2002-05-17 06:32:00 +00:00
tjr
b0a96363c8
Add support for printing long doubles.
...
PR: 36783
2002-05-17 06:12:25 +00:00
tjr
3e9f4fc172
Print signed single-byte decimal integers correctly instead of implicitly
...
converting them to unsigned bytes.
PR: 36783
2002-05-17 05:43:00 +00:00
tjr
ed1adbad3e
Un-deprecate od(1): rename the deprecated' variable to
odmode', remove the
...
deprecation warning from the utility and manual page. Since this utility
is required by POSIX, it's not likely to be removed any time soon.
This is leading up to the addition of the P1003.1-2001 -s -A -j -N -t options.
PR: 36783
2002-05-17 05:20:30 +00:00
charnier
a07fb1cc07
Use `The .Nm utility'
2002-04-19 23:44:58 +00:00
imp
74d826c7a6
remove __P
2002-03-22 01:22:50 +00:00
obrien
f4d9e1cfbc
Slightly more efficient version of rev 1.6.
2002-03-07 23:01:55 +00:00
obrien
26ba134593
A less intrusive version of rev 1.2.
2002-03-07 23:00:27 +00:00
obrien
fb5a0ad0da
Slightly more efficient fix to the const problem.
2002-03-07 22:58:16 +00:00
markm
ae2558974f
Remove leaf node WARNS?=2 (that mainly I added). This should
...
help the GCC3 transition and CURRENT in general.
2002-02-08 22:31:43 +00:00
markm
a59a3a99ce
WARNS=2 fixups.
2001-12-02 12:09:41 +00:00
ru
156d266334
mdoc(7) police: Fixed the .Ex calls in manpages that describe more
...
than one utility.
PR: docs/30437
Submitted by: SUZUKI Koichi <koich@cac.co.jp>
2001-09-11 12:27:15 +00:00
ache
63ed2f311c
File positions are off_t nowdays, not long, so:
...
strtol -> strtoll
fseek -> fseeko
NOTE: that fseek not works for >long offsets files per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
2001-09-01 22:42:47 +00:00
ru
bde8ec1b70
mdoc(7) police: utilize the new .Ex macro.
2001-08-15 09:09:47 +00:00
obrien
56240ae808
Remove the misnamed `emalloc' and replace its uses with the calloc (along
...
with error checking) that it actually was.
2001-07-24 14:11:09 +00:00
dd
911ca14c87
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
ru
89596e4538
MAN[1-9] -> MAN.
2001-03-27 10:52:19 +00:00
ru
b5cd63f616
mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.
2001-02-13 09:56:35 +00:00
ache
0c50457380
Change localizing to LC_ALL
2001-02-10 23:25:09 +00:00
ru
8a6f8b5fe4
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
ru
6ab0b23323
Prepare for mdoc(7)NG.
2000-12-27 16:52:31 +00:00
ru
e6cfc0711d
Prepare for mdoc(7)NG.
2000-12-19 16:00:12 +00:00
ru
0d1334ca0c
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
kris
d84b4d3f4d
Oops, missed another printf() invocation with no format string.
2000-07-10 09:07:04 +00:00
kris
9ecdb01e43
Don't call printf() with no format string.
2000-07-10 09:05:31 +00:00
phantom
353c1a6746
Correct spelling : ascii -> ASCII
...
PR: docs/13702
Submitted by: Stephen J. Roznowski <sjr@home.com>
Reviewed by: mpp
1999-09-20 09:15:23 +00:00
peter
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
billf
4822432874
Clean up some ambiguous nested if/elses.
1999-07-04 17:26:16 +00:00
dillon
a9cca9c815
PR: bin/9016
...
Fix bug with od/hd/hexdump. "*" lines are supposed to indicate one or
duplicates of the previous line, but a small file with less then 16
characters of zeros in it will be falsy identified as a repeat of
the (non-existant) previous line. i.e. the first line of output winds
up being a "*". Added a bit of code to handle the degenerate 'there is
no previous line' case for the first line.
1998-12-13 06:40:18 +00:00
ache
4f252df3ad
Localize it
1997-11-04 05:33:15 +00:00
charnier
c4ced555e1
Use err(3) instead of local redefinition, incorporate `hd' in usage str.
1997-07-10 06:48:24 +00:00
steve
f8049f60d8
Fix a minor nit in the .Dd macro invocation so that
...
the revision date is displayed correctly.
1997-06-23 04:52:13 +00:00
imp
141381e1cb
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
peter
deba7db48c
Merge from Lite2
1997-03-11 13:43:33 +00:00
peter
f390c26dd9
Revert $FreeBSD$ to $Id$
1997-02-22 19:58:13 +00:00
jkh
808a36ef65
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
wosch
000fb64288
delete doubled words, e.g.: "the the" -> "the"
1996-10-05 22:27:30 +00:00
peter
8b748f9115
Fix the previous commit. The second of the 8-character columns was
...
a duplicate of the first column of 8...
1996-10-04 23:29:38 +00:00
joerg
f811c2ec39
Now that we've already got "hexdump -C", make calling the command "hd"
...
having the same effect, and install a link for this. There is
historic precedence for the command hd(1) (with roughly that output
format) in Xenix, SCO, and a few SysV's that tooks the idea.
Also, added a couple of spaces to the -C format to make the output
better readable.
Ok'ed by: phk
1996-09-29 04:17:24 +00:00
phk
132596c18d
Add '-C' "Canonical" format to hexdump:
...
$ hexdump -C /etc/resolv.conf
00000000 64 6f 6d 61 69 6e 20 64 6b 2e 74 66 73 2e 63 6f |domain dk.tfs.co|
00000010 6d 0a 6e 61 6d 65 73 65 72 76 65 72 20 31 34 30 |m.nameserver 140|
00000020 2e 31 34 35 2e 32 33 30 2e 31 30 0a |.145.230.10.|
1996-09-16 21:18:48 +00:00
wosch
ab0ebe585d
[HISTORY] command appeared in Version 1 AT&T UNIX
...
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
1996-08-29 18:06:19 +00:00
mpp
9fcf3504c2
Correct some cross references and some path names.
1996-04-06 09:47:30 +00:00