History log of /src/usr.bin/hexdump/parse.c |
Revision | | Date | Author | Comments |
1.27 |
| 04-Sep-2011 |
joerg | static + __dead
|
1.26 |
| 18-Jan-2009 |
apb | 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).
|
1.25 |
| 17-Jan-2009 |
hans | Use ll instead of non-standard q as length modifier in format strings. Makes this work on Solaris. OK by apb.
|
1.24 |
| 09-Oct-2006 |
christos | branches: 1.24.24; use ecalloc in previous
|
1.23 |
| 09-Oct-2006 |
dsl | Fix core dump caused by non-zerod memory. From Auster in current_users.
|
1.22 |
| 23-Sep-2006 |
elad | PR/28157: KAMADA Ken'ichi: escape sequence of hexdump(1) is broken (SIGSEGV at worst) Applied patch, thanks for the report!
|
1.21 |
| 05-Sep-2006 |
hira | Fix uninitialized variables.
|
1.20 |
| 26-Aug-2006 |
christos | More programs using efun.
|
1.19 |
| 30-Mar-2006 |
dsl | Simplify the way the end of a singly linked list is followed (for adding items) so it is more obvious that we aren't going to indirect through a null pointer. Fixes coverty SID:101
|
1.18 |
| 04-Jan-2006 |
perry | de-__P, ANSIfy prototypes
|
1.17 |
| 27-Oct-2003 |
lukem | 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).
|
1.16 |
| 22-Oct-2003 |
dmcmahill | 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.
|
1.15 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
1.14 |
| 12-Mar-2003 |
augustss | More tests if __RCSID is defined.
|
1.13 |
| 11-Jun-2002 |
itojun | err/errx/warn/warnx do not need \n at the end
|
1.12 |
| 07-Dec-2001 |
bjh21 | 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.
|
1.11 |
| 07-Feb-2001 |
christos | constify
|
1.10 |
| 14-Oct-2000 |
bjh21 | Don't core dump with an empty format string. Fixes PR#11218. Patch supplied by Launey Thomas.
|
1.9 |
| 11-Oct-2000 |
itojun | string length computation bug. PR 8676.
|
1.8 |
| 19-Dec-1998 |
christos | branches: 1.8.2; 1.8.10; char -> unsigned char
|
1.7 |
| 19-Oct-1997 |
lukem | WARNSify, fix .Nm usage, deprecate register
|
1.6 |
| 18-Oct-1997 |
mrg | merge lite-2.
|
1.5 |
| 11-Jul-1997 |
mikel | 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.
|
1.4 |
| 09-Jan-1997 |
tls | RCS ID police
|
1.3 |
| 20-May-1994 |
pk | Display addresses -- which are off_t's -- with proper format string.
|
1.2 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.2 |
| 06-Jun-1993 |
mrg | 4.4BSD-Lite2
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.8.10.2 |
| 17-Oct-2000 |
tv | Pullup 1.9 [itojun]: string length computation bug. PR 8676.
|
1.8.10.1 |
| 17-Oct-2000 |
tv | Pullup 1.10 [bjh21]: Don't core dump with an empty format string. Fixes PR#11218. Patch supplied by Launey Thomas.
|
1.8.2.1 |
| 12-Oct-2000 |
he | Pull up revision 1.9 (requested by itojun): Fix string length computation bug. Fixes PR#8676.
|
1.24.24.1 |
| 27-Mar-2009 |
msaitoh | Pull up following revision(s) (requested by sketch in ticket #536): etc/Makefile: revision 1.364 Makefile: revision 1.267 usr.sbin/postinstall/postinstall: revision 1.90 usr.bin/hexdump/parse.c: revision 1.25 sys/arch/x86/acpi/genwakecode.sh: revision 1.3 usr.sbin/postinstall/postinstall: revision 1.87 usr.sbin/postinstall/postinstall: revision 1.88 usr.sbin/postinstall/postinstall: revision 1.89 sys/arch/x86/acpi/Makefile.wakecode.inc: revision 1.4 sys/conf/Makefile.kern.inc: revision 1.120 Use ll instead of non-standard q as length modifier in format strings. Makes this work on Solaris. OK by apb. Not every grep knows -q. Ok by apb. Use sed, awk and hexdump from tools to make this work on Solaris. Ok by apb. Use awk and grep host tools where required. 'build.sh release' now works on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now). "grep -q" is not portable; use "grep >/dev/null" instead. Also add a comment saying that postinstal is invoked during a cross build. In file_exists_exact(), fix an incorrect test of "1" instead of "$1", and improve the comment explaining what this function does. As long as we don't yet have a working TOOL_GREP, fgrep is more portablethan grep -F.
|