summaryrefslogtreecommitdiffstats
path: root/usr.bin/hexdump/hexsyntax.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-031-1/+1
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* ANSIify function definitions.dwmalone2002-09-041-4/+2
| | | | | | | | | 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
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Declare variables that were extern'd in multiple places in hexdump.h.tjr2002-05-171-3/+0
| | | | PR: 36783
* File positions are off_t nowdays, not long, so:ache2001-09-011-1/+1
| | | | | | | | | | 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.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Use err(3) instead of local redefinition, incorporate `hd' in usage str.charnier1997-07-101-4/+12
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Merge from Lite2peter1997-03-111-1/+3
|
* Fix the previous commit. The second of the 8-character columns waspeter1996-10-041-4/+2
| | | | a duplicate of the first column of 8...
* Now that we've already got "hexdump -C", make calling the command "hd"joerg1996-09-291-3/+12
| | | | | | | | | | | 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
* Add '-C' "Canonical" format to hexdump:phk1996-09-161-1/+6
| | | | | | | $ 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.|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+127
OpenPOWER on IntegriCloud