freebsd-skq/usr.bin/hexdump
kevans 7cd5ae4925 hexdump(1): Speed up -s flag on devices
Using the -s flag on devices is extraordinarily slow due to using fseek(3) a
little too conservatively. Address this by using fseek on character/block
devices as well, falling back to getchar(3) only if we fail to seek or we're
operating on tape drives, where fseek may succeed while not actually being
supported.

PR:		86485
Submitted by:	arundel (originally; modified since then)
Reviewed by:	cem
Differential Revision:	https://reviews.freebsd.org/D10939
2018-01-05 01:46:41 +00:00
..
tests DIRDEPS_BUILD: Connect new directories. 2017-10-31 00:04:07 +00:00
conv.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
display.c hexdump(1): Speed up -s flag on devices 2018-01-05 01:46:41 +00:00
hexdump.1 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
hexdump.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
hexdump.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
hexsyntax.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
Makefile Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
od.1 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
odsyntax.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
parse.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00