History log of /openbsd-current/usr.bin/hexdump/odsyntax.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_6_2_BASE
# 1.28 30-May-2017 tedu

fix a shadow warning. from Brian Callahan


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.27 15-Mar-2016 mmcc

o clean up a little whitespace and formatting
o move some declarations out of hexdump.h
o mark some declarations as __dead or static

from Michal Mazurek, with input from and ok tb@


Revision tags: OPENBSD_5_9_BASE
# 1.26 16-Sep-2015 schwarze

Fix two bugs (at least 13 year old) of the [+]offset[.][Bb] XSI offset syntax:
Make it work with decimal offsets and with standard input.
Also fix the documentation; it showed the argument in the wrong place.
According to XSI (and our code), it must come *after* the filename,
and it can be used with at most one single filename.
Remove it from the SYNOPSIS; it only provides a subset of -j,
is less standard and contains lots of traps (i counted 7 distinct traps).
Instead, mention it as an alternative below -j where it belongs.
Also fix some markup quirks (that's what originally made me find this mess).
Feedback and OK sobrado@ jmc@.


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.25 19-Apr-2014 sobrado

use an appropriate name for this variable.

ok millert@


# 1.24 15-Apr-2014 sobrado

add -s (two-byte signed decimal display) to od(1), as mandated by POSIX;
remove cross reference to strings(1), it only made sense in the context of
the old 4.3BSD od(1)'s -s flag.

ok jmc@, millert@


# 1.23 14-Apr-2014 sobrado

add a description for this filter similar to what POSIX and FreeBSD use;
do not mark od(1) as deprecated, and remove language that says it is really
just hexdump(1); do not mention options supported by the old 4.3BSD od(1)
that we no longer provide.

ok jmc@, millert@


Revision tags: OPENBSD_5_5_BASE
# 1.22 20-Nov-2013 deraadt

unsigned char casts needed for isdigit()
ok millert


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.21 08-Oct-2010 sobrado

remove three superfluous trailing tabs, no binary change.


# 1.20 07-Oct-2010 sobrado

usage must fit on a 80-column display.


Revision tags: OPENBSD_4_8_BASE
# 1.19 23-Mar-2010 fgsch

Add POSIX -A option to od and simplify a bit. From FreeBSD.
jmc@ and millert@ input and ok.


Revision tags: OPENBSD_4_7_BASE
# 1.18 12-Nov-2009 nicm

Use the default 4 correctly if no type size is given to od -t.

ok deraadt miod


# 1.17 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.16 06-Feb-2007 jmc

remove a comment which is no longer true; ok otto


# 1.15 06-Feb-2007 jmc

sync synopsis and usage();


Revision tags: OPENBSD_4_0_BASE
# 1.14 16-Mar-2006 deraadt

clean up the od(1) usage form, it was ugly with a capital u


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.13 12-Jun-2003 deraadt

de-register and ansification; millert ok


# 1.12 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.11 08-Apr-2002 millert

Correct usage() for od syntax; Peter Stromberg


# 1.10 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.9 30-Dec-2001 pvalchev

Changes come from NetBSD, Lite-2 and me. ok deraadt
od(1):
- Enable support for printing 8-byte integers.
- Added -C option for hexadecimal+ASCII display.
- Fix od so it displays short files containing nulls.
- POSIXification: 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. Support -N, equivalent to hexdump's
-n (format only COUNT bytes of input). Add -j option which does the
same thing as -s in hexdump (skipping some of the input).
hexdump(1):
- POSIX.2 doesn't specify hexdump so it can't be compatible with it...
- add missing trailing \n in usage() printf


# 1.8 19-Nov-2001 mpech

kill more registers

millert@ ok


# 1.7 02-Nov-2001 mickey

replace fprintf(stderr)/exit w/ err/warn


Revision tags: OPENBSD_3_0_BASE
# 1.6 30-Sep-2001 pvalchev

-Wall cleanup; ok deraadt


# 1.5 18-Jul-2001 pvalchev

-Wall cleanup


# 1.4 12-Jul-2001 deraadt

first pass at a -Wall cleanup


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.3 15-Jan-1997 millert

getopt(3) returns -1 when out of args, not EOF, whee!


Revision tags: OPENBSD_2_0_BASE
# 1.2 26-Jun-1996 deraadt

rcsid


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision