NetBSD

CVS log for src/usr.bin/printf/printf.c

[BACK] Up to [NetBSD] / src / usr.bin / printf

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Mar 16 00:11:49 2011 CET (10 months, 3 weeks ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, cherry-xenmp-base, cherry-xenmp, HEAD
Diff to previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
support grouping format.

Revision 1.33.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 07:27:12 2010 (21 months, 2 weeks ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to previous 1.33: preferred, colored next main 1.34: preferred, colored
Changes since revision 1.33: +17 -7 lines
sync to netbsd-5

Revision 1.33.8.1: download - view: text, markup, annotated - select for diffs
Wed Oct 14 20:37:30 2009 (2 years, 3 months ago) by sborrill
Branches: netbsd-5-0
CVS tags: netbsd-5-0-2-RELEASE
Diff to previous 1.33: preferred, colored next main 1.34: preferred, colored
Changes since revision 1.33: +17 -7 lines
Pull up the following revisions(s) (requested by christos in ticket #1091):
	usr.bin/printf/printf.c:	revision 1.34

Avoid segv on "printf '%*********s' 666".

Revision 1.33.4.1: download - view: text, markup, annotated - select for diffs
Wed Oct 14 20:12:55 2009 (2 years, 3 months ago) by sborrill
Branches: netbsd-5
CVS tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to previous 1.33: preferred, colored next main 1.34: preferred, colored
Changes since revision 1.33: +17 -7 lines
Pull up the following revisions(s) (requested by christos in ticket #1091):
	usr.bin/printf/printf.c:	revision 1.34

Avoid segv on "printf '%*********s' 666".

Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Oct 13 21:28:31 2009 (2 years, 3 months ago) by christos
Branches: MAIN
CVS tags: matt-premerge-20091211, matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to previous 1.33: preferred, colored
Changes since revision 1.33: +17 -7 lines
Avoid segv on "printf '%*********s' 666", from Maksymilian Arciemowicz

Revision 1.32.4.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 06:29:18 2008 (3 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to previous 1.32: preferred, colored next main 1.33: preferred, colored
Changes since revision 1.32: +4 -4 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Jul 21 16:19:24 2008 (3 years, 6 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Branch point for: netbsd-5-0, netbsd-5, matt-nb5-mips64
Diff to previous 1.32: preferred, colored
Changes since revision 1.32: +4 -4 lines
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Mar 28 19:05:39 2008 CET (3 years, 10 months ago) by christos
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to previous 1.31: preferred, colored
Changes since revision 1.31: +37 -16 lines
detect more errors from printf/malloc.

Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 27 18:30:56 2005 (6 years, 10 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Diff to previous 1.30: preferred, colored next main 1.31: preferred, colored
Changes since revision 1.30: +3 -3 lines
Pull up revision 1.31 (requested by dsl in ticket #57):
Remember to consume input bytes when processing '\0nnn' for %b formats

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Mar 23 00:55:46 2005 CET (6 years, 10 months ago) by dsl
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
Remember to consume input bytes when processing '\0nnn' for %b formats

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Oct 30 21:28:10 2004 (7 years, 3 months ago) by christos
Branches: MAIN
CVS tags: netbsd-3-base
Branch point for: netbsd-3
Diff to previous 1.29: preferred, colored
Changes since revision 1.29: +29 -26 lines
- KNF, WARNS=3, pass lint.
- Simplify octal parsing code.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Aug 7 13:15:33 2003 (8 years, 6 months ago) by agc
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Diff to previous 1.28: preferred, colored
Changes since revision 1.28: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Jun 25 14:56:59 2003 (8 years, 7 months ago) by dsl
Branches: MAIN
Diff to previous 1.27: preferred, colored
Changes since revision 1.27: +2 -9 lines
Revert previous.  'None' means that the "Utility Syntax Guidlines" apply.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Jun 25 11:54:15 2003 (8 years, 7 months ago) by dsl
Branches: MAIN
Diff to previous 1.26: preferred, colored
Changes since revision 1.26: +9 -2 lines
Remove getopt() loop, IEEE 1003.1 doesn't say that printf(1) should conform
to the "Utility Syntax Guidlines".
Fixes PR 21970.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Feb 24 15:42:27 2003 CET (8 years, 11 months ago) by dsl
Branches: MAIN
Diff to previous 1.25: preferred, colored
Changes since revision 1.25: +86 -28 lines
Fix the output of NUL bytes within %b formats.
(Approved by Christos)

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Nov 24 23:35:45 2002 CET (9 years, 2 months ago) by christos
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to previous 1.24: preferred, colored
Changes since revision 1.24: +340 -255 lines
Fixes from David Laight:
- ansification
- format of output of jobs command (etc)
- job identiers %+, %- etc
- $? and $(...)
- correct quoting of output of set, export -p and readonly -p
- differentiation between nornal and 'posix special' builtins
- correct behaviour (posix) for errors on builtins and special builtins
- builtin printf and kill
- set -o debug (if compiled with DEBUG)
- cd src obj (as ksh - too useful to do without)
- unset -e name, remove non-readonly variable from export list.
  (so I could unset -e PS1 before running the test shell...)

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Jun 14 13:32:15 2002 (9 years, 7 months ago) by tron
Branches: MAIN
Diff to previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
Complete declaration of progprintf() to fix build problem in csh(1).

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jun 14 03:12:15 2002 (9 years, 7 months ago) by wiz
Branches: MAIN
Diff to previous 1.22: preferred, colored
Changes since revision 1.22: +28 -55 lines
Remove #ifdef __STDC__. De-__P() and ANSIfy. Fix a prototype mismatch
uncovered by this.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat May 5 19:29:39 2001 (10 years, 9 months ago) by kleink
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Diff to previous 1.21: preferred, colored
Changes since revision 1.21: +20 -19 lines
Change to use {u,}intmax_t internally (was: (unsigned) long).

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Dec 19 21:21:44 1998 CET (13 years, 1 month ago) by christos
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Diff to previous 1.20: preferred, colored
Changes since revision 1.20: +5 -5 lines
brace pollution, and char -> unsigned char

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Oct 14 02:56:00 1998 (13 years, 4 months ago) by wsanchez
Branches: MAIN
Diff to previous 1.19: preferred, colored
Changes since revision 1.19: +3 -2 lines
include unistd

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Feb 3 04:10:15 1998 CET (14 years ago) by perry
Branches: MAIN
Diff to previous 1.18: preferred, colored
Changes since revision 1.18: +7 -6 lines
add <unistd.h> to fix compiler warning

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Oct 20 00:57:05 1997 (14 years, 3 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Diff to previous 1.17: preferred, colored
Changes since revision 1.17: +10 -10 lines
s/index/strchr

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Oct 18 17:38:08 1997 (14 years, 3 months ago) by mrg
Branches: MAIN
Diff to previous 1.16: preferred, colored
Changes since revision 1.16: +18 -17 lines
"merge" lite-2.  our printf is already kinda different...minor changes only.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Jul 4 23:25:17 1997 (14 years, 7 months ago) by christos
Branches: MAIN
Diff to previous 1.15: preferred, colored
Changes since revision 1.15: +17 -5 lines
Fix compiler warnings.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Jan 14 20:20:09 1997 CET (15 years ago) by cgd
Branches: MAIN
Diff to previous 1.14: preferred, colored
Changes since revision 1.14: +28 -27 lines
lint and KNF changes.  (mostly casting returns to void to quiet lint.)

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Jan 9 21:20:49 1997 CET (15 years, 1 month ago) by tls
Branches: MAIN
Diff to previous 1.13: preferred, colored
Changes since revision 1.13: +3 -1 lines
RCS ID police

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Wed Mar 22 18:02:54 1995 CET (16 years, 10 months ago) by mrg
Branches: WFJ-920714, CSRG
CVS tags: lite-2
Diff to previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +179 -76 lines
4.4BSD-Lite2

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Feb 3 02:10:49 1994 CET (18 years ago) by jtc
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1, netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Diff to previous 1.12: preferred, colored
Changes since revision 1.12: +8 -20 lines
Simplify conversion of "quoted" numeric arguments.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Feb 3 01:35:18 1994 CET (18 years ago) by jtc
Branches: MAIN
Diff to previous 1.11: preferred, colored
Changes since revision 1.11: +21 -32 lines
Code to check if conversion (by strtol(), strtoul(), or strtod()) was
identical, so I moved it into its own function.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Feb 3 01:16:11 1994 CET (18 years ago) by jtc
Branches: MAIN
Diff to previous 1.10: preferred, colored
Changes since revision 1.10: +58 -5 lines
Add and use getulong() to handle %u, %o, %x & %X formatting directives.
It was using getlong(), which caused values larger than LONG_MAX to be
truncated to LONG_MAX.
As recommended by 1003.2, print warning messages when argument cannot be
converted to value or is out of range.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Dec 31 02:46:16 1993 CET (18 years, 1 month ago) by jtc
Branches: MAIN
Diff to previous 1.9: preferred, colored
Changes since revision 1.9: +3 -4 lines
Handle format strings error correctly.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Nov 25 05:42:11 1993 CET (18 years, 2 months ago) by jtc
Branches: MAIN
Diff to previous 1.8: preferred, colored
Changes since revision 1.8: +8 -8 lines
Error in hextobin() macro messed up hex escape constants.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Nov 19 22:08:17 1993 CET (18 years, 2 months ago) by jtc
Branches: MAIN
Diff to previous 1.7: preferred, colored
Changes since revision 1.7: +1 -2 lines
Oops! get rid of the free(), mklong()'s buffer no longer malloc()'d.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Nov 19 22:05:37 1993 CET (18 years, 2 months ago) by jtc
Branches: MAIN
Diff to previous 1.6: preferred, colored
Changes since revision 1.6: +30 -17 lines
Return from main() if a \c escape is encountered in a %b string (was an exit()).
Use macro constants for "skip1" and "skip2" instead of assigning them
each loop iteration.
Reformat the multi-case entries in the "big switch" so the lines don't wrap.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Nov 19 21:50:27 1993 CET (18 years, 2 months ago) by jtc
Branches: MAIN
Diff to previous 1.5: preferred, colored
Changes since revision 1.5: +87 -96 lines
Move all the code from do_printf() into do-while loop in main().  I need
to be able to return from main() when a "\c" in a %b string is encountered.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Nov 19 21:30:57 1993 CET (18 years, 2 months ago) by jtc
Branches: MAIN
Diff to previous 1.4: preferred, colored
Changes since revision 1.4: +99 -41 lines
Merged in most of the changes from 4.4 necessary to make printf a sh
and csh builtin --- still need to handle the one remaining exit() in
the SysV escape string handling code.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Nov 5 21:12:40 1993 CET (18 years, 3 months ago) by jtc
Branches: MAIN
Diff to previous 1.3: preferred, colored
Changes since revision 1.3: +290 -161 lines
Changes required to make printf utility POSIX.2 compliant:
 * Escape characters in the string needed to be processed as they were
   encountered, otherwise a "\000" octal constant would prematurely
   terminate the formatting string.
 * Implemented the %b, SysV echo(1) compatibility, formatting directive.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Aug 1 20:10:03 1993 (18 years, 6 months ago) by mycroft
Branches: MAIN
Diff to previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1 lines
Add RCS identifiers.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Apr 19 09:42:04 1993 (18 years, 9 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Diff to previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1 lines
Cleanup for GCC 2.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 10:45:37 1993 CET (18 years, 10 months ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Diff to previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 10:45:37 1993 CET (18 years, 10 months ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

cvsweb.de.netbsd.org <zafer@aydogan.de>