History log of /openbsd/usr.bin/hexdump/display.c (Results 1 – 25 of 25)
Revision Date Author Comments
# 9a497675 24-Aug-2016 guenther <guenther@openbsd.org>

Convert quad_t to int64_t and %q to %ll
Convert bzero() to memset() and bcopy() to memcpy()

ok natano@ millert@


# 9844ea72 15-Mar-2016 mmcc <mmcc@openbsd.org>

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@


# deb8a9e6 09-Feb-2016 tb <tb@openbsd.org>

For a long time, nomem() has been a wrapper for err(1, NULL) and
meanwhile emalloc() has turned into calloc() by doing malloc + memset.
Delete them and Use the libc functions directly instead. I've b

For a long time, nomem() has been a wrapper for err(1, NULL) and
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@

show more ...


# 9ddc59ea 08-Feb-2016 schwarze <schwarze@openbsd.org>

Fix a bug that caused nothing to be skipped when skipping exactly the
number of bytes present in a regular file was requested.
Bug reported by a user called "tdm" on the comstyle #openbsd IRC channel

Fix a bug that caused nothing to be skipped when skipping exactly the
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@

show more ...


# b9fc9a72 16-Jan-2015 deraadt <deraadt@openbsd.org>

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N

Replace <sys/param.h> with <limits.h> and other less dirty headers where
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)

show more ...


# d3ca22dc 22-Oct-2010 millert <millert@openbsd.org>

Move setvbuf() added in r1.19 to before the call to doskip() since
anything read from stdin in doskip() may be lost when we change the
buffering. Fixes PR 6492. OK guenther@


# 0b7d80bc 12-Oct-2010 millert <millert@openbsd.org>

If the input length was specified, use it to set the stdio buffer
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

If the input length was specified, use it to set the stdio buffer
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@

show more ...


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

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
(th

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

show more ...


# fbafc07e 28-Jan-2007 miod <miod@openbsd.org>

In doskip(), do not access an uninitialized variable in the statok == 0 case
(introduced in r1.9)


# ac04cc4c 18-Aug-2005 miod <miod@openbsd.org>

Oops, previous fix would prevent standard input from being processed at all
since it is not stat(2)'ed; spotted by fgs@, better fix by tom@


# 2b564050 16-Aug-2005 miod <miod@openbsd.org>

Do not consider there is a file to process when stat(2) fails; gets rid of
spurious error messages.
ok deraadt@ millert@ pedro@ tdeval@


# adcab417 14-Sep-2004 deraadt <deraadt@openbsd.org>

use __inline instead of inline (for portability)


# 802f2f8e 21-Jul-2004 millert <millert@openbsd.org>

Use fseeko, not fseek when offset is an off_t; Fabio Olive Leite


# 3921aef3 12-Jun-2003 deraadt <deraadt@openbsd.org>

de-register and ansification; millert ok


# f75387cb 03-Jun-2003 millert <millert@openbsd.org>

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


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

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 don

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.

show more ...


# 7baf058c 30-Dec-2001 pvalchev <pvalchev@openbsd.org>

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 contain

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

show more ...


# c0932ef1 19-Nov-2001 mpech <mpech@openbsd.org>

kill more registers

millert@ ok


# baf68b34 02-Nov-2001 mickey <mickey@openbsd.org>

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


# c3e1e82e 12-Jul-2001 deraadt <deraadt@openbsd.org>

first pass at a -Wall cleanup


# 124f3ad8 16-Dec-1998 deraadt <deraadt@openbsd.org>

for less than 16 NUL bytes, do not print a * line; dillon


# 180acc8f 17-Jan-1997 millert <millert@openbsd.org>

r?index -> strr?chr


# 1258a77d 26-Jun-1996 deraadt <deraadt@openbsd.org>

rcsid


# ffecc4b2 21-May-1996 deraadt <deraadt@openbsd.org>

use existing protos


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree