summaryrefslogtreecommitdiffstats
path: root/usr.bin/hexdump/conv.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo ('1' != 'l')eadler2013-03-041-1/+1
| | | | | | PR: bin/175975 Submitted by: William Ahern <william@25thandclement.com> Approved by: cperciva (mentor)
* Correct a logic error in usr.bin/hexdump/conv.c, found by clang.dim2011-12-171-2/+2
| | | | | | | | | | | | | | | Whenever the conv_c() function encounters an incomplete multibyte char, it peeks ahead. It also sets p to peekbuf, to indicate it is still processing the incomplete character. However, on the next retry, it compares buf against peekbuf, which always returns false, since both buf and peekbuf are local char arrays, whose addresses are never the same. Fix this by comparing against p instead, which was the intention. Also turn peekbuf into an array of u_char, to prevent conversion warnings. MFC after: 1 week
* 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
* In 'od -c' mode, deal with printable but zero-width combiningjkoshy2006-07-311-1/+1
| | | | | | | | | | characters correctly. These characters are displayed "combined" with a space character. PR: misc/100215 Submitted by: "J.R. Oldroyd" <<fbsd AT opal.com>> Reviewed by: "J.R. Oldroyd" <<fbsd AT opal.com>> (revised patch) MFC after: 3 days
* Include <string.h> to get memset and strcmp prototype.johan2004-07-161-1/+2
| | | | | | Sort includes. This is now WARNS=2 clean, bump WARNS to keep it clean.
* Add POSIX-style support for multibyte characters to od(1): the 'c'tjr2004-07-111-4/+63
| | | | | | conversion interprets input bytes as multibyte sequences and displays printable characters in the area corresponding to their first byte. The remaining bytes are shown as "**".
* ANSIify function definitions.dwmalone2002-09-041-6/+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
* Overhaul hexdump's od syntax code to handle the -s -A -j -N -t options thattjr2002-05-171-4/+0
| | | | | | SUSv3 requires and give od a proper manual page. PR: 36783
* Un-deprecate od(1): rename the `deprecated' variable to `odmode', remove thetjr2002-05-171-6/+4
| | | | | | | | | 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
* A less intrusive version of rev 1.2.obrien2002-03-071-21/+15
|
* WARNS=2 fixups.markm2001-12-021-10/+20
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+128
OpenPOWER on IntegriCloud