summaryrefslogtreecommitdiffstats
path: root/usr.bin/hexdump
Commit message (Collapse)AuthorAgeFilesLines
* Use same table markup as in hexdump.1uqs2010-06-111-6/+6
|
* mdoc: order prologue macros consistently by Dd/Dt/Osuqs2010-04-141-1/+1
| | | | | | | | Although groff_mdoc(7) gives another impression, this is the ordering most widely used and also required by mdocml/mandoc. Reviewed by: ru Approved by: philip, ed (mentors)
* The correct value of DEL is 0x7f, not 0xff. This is purely a documentationgavin2010-02-182-4/+4
| | | | | | | | issue - od(1) and hexdump(1) behave as expected. PR: docs/143869 Submitted by: gcooper MFC after: 2 weeks
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-132-0/+2
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-112-2/+0
| | | | Tested with: make universe
* Use strlcpy() instead of explicitly set \0 on the tail of the array.delphij2009-06-231-2/+1
|
* Document the -d option.ru2006-12-241-1/+5
|
* Fix markup.ru2006-12-241-22/+18
|
* o Simple strcpy/strcat replacement.maxim2006-08-091-3/+4
| | | | | | | PR: bin/101575 Founded by: Dan Lukes Obtained from: OpenBSD, rev. 1.11 by deraadt MFC after: 2 weeks
* 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
* Added the EXIT STATUS section where appropriate.ru2005-01-172-2/+2
|
* Scheduled mdoc(7) sweep.ru2005-01-111-1/+2
|
* In next(), ensure that 'done' is set in the case when a file cannottjr2004-08-041-1/+2
| | | | | be opened, to avoid trying to read standard input after already closing it, which resulted in EBADF errors.
* Do not predeclare __inline functions, this makes no sense and generateskan2004-07-281-2/+2
| | | | a warning with gcc 3.4.x.
* display.c:johan2004-07-224-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 'savech' is only used if it is set a few lines above where it is used, initialize it to silence warning. - 'length' is either -1 or greater than 0, hence it is safe to cast it to unsigned when comparing it here. odsyntax.c: - 'p' is assigned either (*argvp)[0] or (*argvp)[1] which both are char *. 'num' and 'end' are assigned values based on 'p'. Hence use char * instead of unsigned char * for these variables. '&end' as the second argument to strtoll does not need to be casted to char** any more. This solves a 'dereferencing type-punned pointer will break strict-aliasing rules' warning when compiling with -O2. parse.c: - 'prec' is only used when sokay == USEPREC and sokay = USEPREC when 'prec' is assigned. Hence 'prec' is not used uninitialized, initialize it to silence warning. - The code involving 'nextpr' is hard to follow, but I belive 'nextpr' will not be used unless it is initialized. Anyway, IF 'nextpr' is used uninitialized it is better to get a consistant error (seg fault, when dereferencing a NULL pointer) than potentially accessing some random memory. The above changes makes hexdump WARNS=6 clean even when compiled with -O2. Hence bump WARNS to keep it clean. Tested by: CFLAGS='-O2 -pipe' make universe
* Revert WARNS bump until I figure out why this does not work.johan2004-07-171-1/+0
|
* Include <string.h> to get memset and strcmp prototype.johan2004-07-162-1/+3
| | | | | | 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-114-11/+114
| | | | | | 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 "**".
* Add a reference to od(1).tjr2004-07-101-2/+3
|
* Document missing multibyte character support in utilities specifiedtjr2004-07-031-1/+5
| | | | by POSIX.
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+1
|
* Capitalize ASCII code names.ru2002-12-052-13/+13
| | | | Approved by: re
* ANSIify function definitions.dwmalone2002-09-047-66/+40
| | | | | | | | | 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
* s/inline/__inline/markm2002-07-191-2/+2
|
* Consistently use FBSDIDobrien2002-06-305-10/+10
|
* mdoc(7) police: tidy up the markup.ru2002-05-291-51/+70
|
* From NetBSD:tjr2002-05-271-3/+1
| | | | | | | | 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
* Make the output tidier when multiple integer formats are requested bytjr2002-05-171-3/+3
| | | | | | attempting to line up values into columns. Obtained from: NetBSD (idea)
* Overhaul hexdump's od syntax code to handle the -s -A -j -N -t options thattjr2002-05-175-87/+425
| | | | | | SUSv3 requires and give od a proper manual page. PR: 36783
* Declare variables that were extern'd in multiple places in hexdump.h.tjr2002-05-174-9/+3
| | | | PR: 36783
* Add support for printing long doubles.tjr2002-05-173-1/+12
| | | | PR: 36783
* Print signed single-byte decimal integers correctly instead of implicitlytjr2002-05-171-1/+1
| | | | | | converting them to unsigned bytes. PR: 36783
* Un-deprecate od(1): rename the `deprecated' variable to `odmode', remove thetjr2002-05-174-14/+7
| | | | | | | | | 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
* Use `The .Nm utility'charnier2002-04-192-11/+14
|
* remove __Pimp2002-03-223-23/+23
|
* Slightly more efficient version of rev 1.6.obrien2002-03-071-1/+1
|
* A less intrusive version of rev 1.2.obrien2002-03-071-21/+15
|
* Slightly more efficient fix to the const problem.obrien2002-03-071-1/+1
|
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* WARNS=2 fixups.markm2001-12-025-23/+33
|
* mdoc(7) police: Fixed the .Ex calls in manpages that describe moreru2001-09-111-1/+1
| | | | | | | than one utility. PR: docs/30437 Submitted by: SUZUKI Koichi <koich@cac.co.jp>
* File positions are off_t nowdays, not long, so:ache2001-09-013-3/+3
| | | | | | | | | | 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.
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-3/+2
|
* Remove the misnamed `emalloc' and replace its uses with the calloc (alongobrien2001-07-243-26/+14
| | | | with error checking) that it actually was.
* Remove whitespace at EOL.dd2001-07-151-8/+8
|
* MAN[1-9] -> MAN.ru2001-03-271-1/+2
|
* mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.ru2001-02-131-2/+2
|
* Change localizing to LC_ALLache2001-02-101-1/+1
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-5/+5
|
OpenPOWER on IntegriCloud