summaryrefslogtreecommitdiff
path: root/usr.bin/hexdump
AgeCommit message (Collapse)Author
2016-09-04Replace strlen + calloc + snprintf with asprintf.Theo Buehler
ok martijn, beck, deraadt, gsoares
2016-08-24Convert quad_t to int64_t and %q to %llPhilip Guenther
Convert bzero() to memset() and bcopy() to memcpy() ok natano@ millert@
2016-03-15 o clean up a little whitespace and formattingmmcc
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@
2016-02-09Replace a three step string duplication with strndup().mmcc
ok and with input from tb@
2016-02-09For a long time, nomem() has been a wrapper for err(1, NULL) andtb
meanwhile emalloc() has turned into calloc() by doing malloc + memset. Delete them and Use the libc functions directly instead. I've been running with this diff for ages and was reminded of it by a similar suggestion from mmcc@ and by recent diffs from Michal Mazurek. ok mmcc@
2016-02-08Fix a bug that caused nothing to be skipped when skipping exactly theIngo Schwarze
number of bytes present in a regular file was requested. Bug reported by a user called "tdm" on the comstyle #openbsd IRC channel. Patch written by Michal Mazurek <akfaew at jasminek dot net>. OK jung@ millert@ czarkoff@
2016-02-08remove main() declarationmmcc
from Michal Mazurek
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-05tame "stdio rpath" for the entire lifetime. newsyntax() could open a fileTheo de Raadt
very early on, but next() can open one quite late. ok doug
2015-09-16Fix two bugs (at least 13 year old) of the [+]offset[.][Bb] XSI offset syntax:Ingo Schwarze
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@.
2015-09-12Old diff found in my tree: Add HISTORY; info from the CSRG CDs.Ingo Schwarze
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-11-15Reduce instances of `` '' in manuals.Anthony J. Bentley
troff displays these as typographic quotes, but nroff implementations almost always print them literally, which rarely has the intended effect with modern fonts, even in stock xterm. These uses of `` '' can be replaced either with more semantic alternatives or with Dq, which prints typographic quotes in a UTF-8 locale (but will automatically fall back to `` '' in an ASCII locale). improvements and ok schwarze@
2014-04-19use an appropriate name for this variable.Igor Sobrado
ok millert@
2014-04-19do not mark od(1) as deprecated.Igor Sobrado
ok jmc@, millert@
2014-04-15document which bits are xsi; ok millert sobradoJason McIntyre
2014-04-15add a STANDARDS section; pointed out by jmc@Igor Sobrado
2014-04-15add -s (two-byte signed decimal display) to od(1), as mandated by POSIX;Igor Sobrado
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@
2014-04-14add a description for this filter similar to what POSIX and FreeBSD use;Igor Sobrado
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@
2013-11-20unsigned char casts needed for isdigit()Theo de Raadt
ok millert
2013-02-09'dcl' -> 'dc1'. From William Ahern via bugs@. Thanks!Kenneth R Westerback
2011-09-22Revert r1.15. Now that the "C" locale is ASCII-only, this workaroundStefan Sperling
is no longer needed.
2011-05-06a od -> an od;Jason McIntyre
2011-05-06Fix description and table of _u; with jmc@Otto Moerbeek
2011-05-06sync -x, default and example in man page as they should be;Otto Moerbeek
ok jmc@ millert@
2011-05-04- note that quotes may have to be escaped from the shell and add an exampleJason McIntyre
(requested by Michael W. Bombardieri, who also provided the example; otto provided a better description) - reword the rest of the descriptions in EXAMPLES to make them a bit clearer ok otto
2011-04-03Call setlocale() to avoid display glitches in UTF-8 locales.Stefan Sperling
ok phessler nicm mikeb
2010-10-22Move setvbuf() added in r1.19 to before the call to doskip() sinceTodd C. Miller
anything read from stdin in doskip() may be lost when we change the buffering. Fixes PR 6492. OK guenther@
2010-10-12If the input length was specified, use it to set the stdio bufferTodd C. Miller
size for fread(). Otherwise, stdio will read as much as it can (using a very large buffer) which may cause a hang if the input comes from a blocking device such as /dev/srandom. OK deraadt@
2010-10-08remove three superfluous trailing tabs, no binary change.Igor Sobrado
2010-10-07use a .Bk/.Ek block to avoid breaking options with arguments.Igor Sobrado
ok jmc@
2010-10-07usage must fit on a 80-column display.Igor Sobrado
2010-09-03add an EXIT STATUS section for /usr/bin;Jason McIntyre
2010-03-23Add POSIX -A option to od and simplify a bit. From FreeBSD.Federico G. Schwindt
jmc@ and millert@ input and ok.
2010-02-25The correct value of DEL is 0x7F, not 0xFF. This is purely a documentationChristian Weisgerber
issue--od(1) and hexdump(1) behave as expected. From FreeBSD.
2009-11-12Use the default 4 correctly if no type size is given to od -t.Nicholas Marriott
ok deraadt miod
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30some i missed...Jason McIntyre
- consistent text for STANDARDS - note which options are extensions to POSIX
2007-03-20remove some bogus *p tests from charles longeauTed Unangst
ok deraadt millert
2007-02-07its four-byte, not four byte; ok jmc@Otto Moerbeek
2007-02-07space before punctuation;Jason McIntyre
2007-02-06document -D; ok jmc@Otto Moerbeek
2007-02-06remove a comment which is no longer true; ok ottoJason McIntyre
2007-02-06sync synopsis and usage();Jason McIntyre
2007-02-06+.Ex -std odJason McIntyre
2007-02-06sort options and sync usage();Jason McIntyre
2007-02-06switch to .Ex and remove some unnecessary brackets;Jason McIntyre