#
bb0373ec |
| 04-Mar-2016 |
dholland <dholland@NetBSD.org> |
Don't try to use stdin after clobbering it with a failed freopen(). Prevents an extra "Bad file descriptor" message when trying to hexdump a single nonexistent file.
The intended behavior seems to h
Don't try to use stdin after clobbering it with a failed freopen(). Prevents an extra "Bad file descriptor" message when trying to hexdump a single nonexistent file.
The intended behavior seems to have been to read from stdin if there was one filename given and it wasn't valid. But this seems like a bad idea, so prevent that case instead of hacking it up so it works.
show more ...
|
#
32d31322 |
| 04-Mar-2016 |
dholland <dholland@NetBSD.org> |
Don't use one function for two different things. Two functions is the ticket.
|
#
a8c078ad |
| 04-Mar-2016 |
dholland <dholland@NetBSD.org> |
use "static"
|
#
c647f870 |
| 18-Oct-2013 |
christos <christos@NetBSD.org> |
don't read random garbage from the stack
|
#
53ee7761 |
| 18-Jan-2009 |
apb <apb@NetBSD.org> |
Integer values, no matter what their width, are cast to int64_t or uint64_t for printing. Because of this, parse.c:rewrite() should use PRI[diouxX]64 as the printf format; the previous revision whic
Integer values, no matter what their width, are cast to int64_t or uint64_t for printing. Because of this, parse.c:rewrite() should use PRI[diouxX]64 as the printf format; the previous revision which used "lld" and friends was a temporary measure. We assume that PRId64 ends with 'd', PRIx64 ends with 'x', etc.
In display.c:display(), change some u_intNN_t types to C99 standard uintNN_t types, and consistently cast to [u]int64_t when printing integer values (even in two cases where it's not really necessary but it makes the code look more consistent).
show more ...
|
#
cdab3a7a |
| 26-Aug-2006 |
christos <christos@NetBSD.org> |
More programs using efun.
|
#
d310ebb1 |
| 04-Jan-2006 |
perry <perry@NetBSD.org> |
de-__P, ANSIfy prototypes
|
#
171d6532 |
| 27-Oct-2003 |
lukem <lukem@NetBSD.org> |
Overhaul how `build.sh tools' are used:
* Rename "config.h" to "nbtool_config.h" and HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H. This makes in more obvious in the source when we're using tools/com
Overhaul how `build.sh tools' are used:
* Rename "config.h" to "nbtool_config.h" and HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H. This makes in more obvious in the source when we're using tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before <sys/cdefs.h> so that the former can provide __RCSID() (et al), and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding: #if HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h" #endif to the top of the source files (for the general case).
show more ...
|
#
188fcee3 |
| 22-Oct-2003 |
dmcmahill <dmcmahill@NetBSD.org> |
add #if HAVE_CONFIG_H #include "config.h" #endif to get this to build under solaris-2.6/sparc with gcc-2.95.1 as part of the NetBSD cross toolchain build. Fixes PR23211. Patch approved by Alistair
add #if HAVE_CONFIG_H #include "config.h" #endif to get this to build under solaris-2.6/sparc with gcc-2.95.1 as part of the NetBSD cross toolchain build. Fixes PR23211. Patch approved by Alistair Crooks.
show more ...
|
#
7272f1e9 |
| 12-Sep-2003 |
cl <cl@NetBSD.org> |
include <inttypes.h> to get uint64_t defined
|
#
3de69989 |
| 09-Sep-2003 |
wiz <wiz@NetBSD.org> |
This is a host tool: use {u,}int64_t instead of {u_,}quad_t.
|
#
89aaa1bb |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
#
177beb54 |
| 12-Mar-2003 |
augustss <augustss@NetBSD.org> |
Two more __RCSID checks that I missed.
|
#
41a2a8aa |
| 07-Dec-2001 |
bjh21 <bjh21@NetBSD.org> |
WARNS=2
|
#
84f98450 |
| 07-Dec-2001 |
bjh21 <bjh21@NetBSD.org> |
Enable support for printing 8-byte integers. For some reason, most of the code for this was present, but disabled. This is required for POSIX compliance on platforms with 8-byte longs.
|
#
853a8e1d |
| 15-Feb-2001 |
christos <christos@NetBSD.org> |
PR/9195: Tanaka Akira: od does not display short files containing nulls. Fix from Andrew Brown.
|
#
4806b172 |
| 10-Jul-2000 |
itojun <itojun@NetBSD.org> |
printf() pedant - even if we are sure that there's no %-formatted in a varaiable, don't pass variable alone to printf(). From: kris@freebsd.org (FreeBSD-current usr.bin/hexdump/display.c 1.4 -> 1.6)
|
#
85cbf55d |
| 09-Nov-1999 |
drochner <drochner@NetBSD.org> |
Since our gcc doesn't warn about NULL format strings anymore, we can fix the incorrect err(1, "%s", "") et al. Closes PR bin/7592 by cgd.
|
#
c6810a02 |
| 19-Oct-1997 |
lukem <lukem@NetBSD.org> |
WARNSify, fix .Nm usage, deprecate register
|
#
73973984 |
| 18-Oct-1997 |
mrg <mrg@NetBSD.org> |
merge lite-2.
|
#
769693f9 |
| 11-Jul-1997 |
mikel <mikel@NetBSD.org> |
add explicit return types to many functions pull global variable declarations and function prototypes into hexdump.h add #includes where necessary for prototypes replace index() with strchr(), const-
add explicit return types to many functions pull global variable declarations and function prototypes into hexdump.h add #includes where necessary for prototypes replace index() with strchr(), const-poison static string vars, etc.
show more ...
|
#
9d225a17 |
| 09-Jan-1997 |
tls <tls@NetBSD.org> |
RCS ID police
|
#
273e6cc6 |
| 07-May-1996 |
jtc <jtc@NetBSD.org> |
Include appropriate header files to bring prototypes into scope. Removed explicit errno declarations.
|
#
e9d867ef |
| 01-Aug-1993 |
mycroft <mycroft@NetBSD.org> |
Add RCS identifiers.
|
#
c78c6a22 |
| 06-Jun-1993 |
mrg <mrg@NetBSD.org> |
4.4BSD-Lite2
|