The NetBSD Project

CVS log for src/lib/libc/stdlib/strfmon.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / stdlib

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 27 19:46:14 2023 UTC (4 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.20: +2 -4 lines
Diff to previous 1.20 (colored) to selected 1.6 (colored)

Restore original code now that the broken test has been fixed.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Nov 19 18:57:11 2023 UTC (4 months, 4 weeks ago) by christos
Branch: MAIN
Changes since 1.19: +99 -84 lines
Diff to previous 1.19 (colored) to selected 1.6 (colored)

minimize diffs with FreeBSD.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Sep 28 10:03:41 2023 UTC (6 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored) to selected 1.6 (colored)

Fix padding for formats with mutliple padded values.
PR lib/57633, fix from FreeBSD.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Aug 18 11:05:02 2022 UTC (20 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) to selected 1.6 (colored)

fix whitespace prefix behavior

Revision 1.17 / (download) - annotate - [select for diffs], Wed Aug 17 09:32:56 2022 UTC (20 months ago) by christos
Branch: MAIN
Changes since 1.16: +36 -21 lines
Diff to previous 1.16 (colored) to selected 1.6 (colored)

PR/56967: John Zaitseff: Reduce diff with FreeBSD, fixes various bugs.

Revision 1.16 / (download) - annotate - [select for diffs], Mon May 23 19:21:30 2022 UTC (22 months, 3 weeks ago) by andvar
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) to selected 1.6 (colored)

s/beggining/beginning/ in comments.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Apr 19 20:32:16 2022 UTC (23 months, 4 weeks ago) by rillig
Branch: MAIN
Changes since 1.14: +7 -7 lines
Diff to previous 1.14 (colored) to selected 1.6 (colored)

lib: remove CONSTCOND comment

Since 2021-01-31, lint doesn't need it anymore for the common pattern of
'do ... while (0)'.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Dec 5 08:09:30 2021 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.13: +6 -6 lines
Diff to previous 1.13 (colored) to selected 1.6 (colored)

s/supress/suppress/

Revision 1.13 / (download) - annotate - [select for diffs], Mon Nov 27 23:54:28 2017 UTC (6 years, 4 months ago) by maya
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.12: +3 -4 lines
Diff to previous 1.12 (colored) to selected 1.6 (colored)

use calloc rather than malloc + memset 0

Revision 1.12 / (download) - annotate - [select for diffs], Mon Nov 27 22:43:07 2017 UTC (6 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.11: +13 -10 lines
Diff to previous 1.11 (colored) to selected 1.6 (colored)

Fix various bugs with strfmon:
- Avoid out of bounds access for the currency_symbol[3] when the symbol
  is shorter (as it happens with the C locale where it is empty)
- Don't compare pointers to NUL, it is not helpful.
- Make the default sep_by_space 1 as suggested in:
      https://ftp.gnu.org/old-gnu/Manuals/glibc-2.2.3/html_node/libc_111.html
- Use the correct number of bytes for memmove(3)

XXX: pullup-8

Revision 1.10.24.1 / (download) - annotate - [select for diffs], Tue Aug 29 11:51:50 2017 UTC (6 years, 7 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.10: +50 -29 lines
Diff to previous 1.10 (colored) next main 1.11 (colored) to selected 1.6 (colored)

Pull up following revision(s) (requested by joerg in ticket #215):
	tests/lib/libc/locale/t_strfmon.c: revision 1.1
	tests/lib/libc/locale/Makefile: revision 1.12
	lib/libc/stdlib/strfmon.c: revision 1.11
	distrib/sets/lists/debug/mi: revision 1.224
	include/monetary.h: revision 1.3
	distrib/sets/lists/tests/mi: revision 1.761
	lib/libc/stdlib/strfmon.3: revision 1.6
	lib/libc/stdlib/strfmon.3: revision 1.7
Add missing strfmon_l. Noticed by Bruno Haible. Add test case.
Typo fix.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Aug 16 13:53:20 2017 UTC (6 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.10: +50 -29 lines
Diff to previous 1.10 (colored) to selected 1.6 (colored)

Add missing strfmon_l. Noticed by Bruno Haible. Add test case.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:25 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.8: +18 -11 lines
Diff to previous 1.8 (colored) next main 1.9 (colored) to selected 1.6 (colored)

sync with head

Revision 1.10 / (download) - annotate - [select for diffs], Wed Mar 21 14:19:15 2012 UTC (12 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: netbsd-8
Changes since 1.9: +12 -8 lines
Diff to previous 1.9 (colored) to selected 1.6 (colored)

unsigned char portability casts

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 13 21:13:48 2012 UTC (12 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.8: +8 -5 lines
Diff to previous 1.8 (colored) to selected 1.6 (colored)

PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
  would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
  builds)

approved by core@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 14 09:07:15 2011 UTC (12 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.7: +6 -7 lines
Diff to previous 1.7 (colored) to selected 1.6 (colored)

no need for the snprintf/asprintf dance; use fixed width formats.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jan 30 23:46:03 2009 UTC (15 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

sign-compare fix

Revision 1.4.6.1 / (download) - annotate - [select for diffs], Tue Jun 3 20:47:08 2008 UTC (15 years, 10 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored) next main 1.5 (colored) to selected 1.6 (colored)

Sync with netbsd-4.

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Mon Apr 7 13:14:45 2008 UTC (16 years ago) by jdc
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.4.4.1: +8 -8 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.6 (colored)

Pull up revision 1.6 (requested by mjf in ticket #1115).

Fix another integer overflow issue discovered by Maksymilian Arciemowicz.
On top of this, limit the range of getnumber to 0x00ffffff to make sure
that adding two of them does not cause an integer overflow.

Revision 1.4.14.2 / (download) - annotate - [select for diffs], Mon Apr 7 13:14:22 2008 UTC (16 years ago) by jdc
Branch: netbsd-4-0
CVS Tags: netbsd-4-0-1-RELEASE
Changes since 1.4.14.1: +8 -8 lines
Diff to previous 1.4.14.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.6 (colored)

Pull up revision 1.6 (requested by mjf in ticket #1115).

Fix another integer overflow issue discovered by Maksymilian Arciemowicz.
On top of this, limit the range of getnumber to 0x00ffffff to make sure
that adding two of them does not cause an integer overflow.

Revision 1.6 / (download) - annotate - [selected], Thu Mar 27 21:50:30 2008 UTC (16 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, christos-time_t-nbase, christos-time_t-base, christos-time_t
Changes since 1.5: +8 -8 lines
Diff to previous 1.5 (colored)

Fix another integer overflow issue discovered by Maksymilian Arciemowicz.
On top of this, limit the range of getnumber to 0x00ffffff to make sure
that adding two of them does not cause an integer overflow.

Revision 1.4.16.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:14:45 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored) next main 1.5 (colored) to selected 1.6 (colored)

sync with head.

Revision 1.4.10.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:40:26 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored) next main 1.5 (colored) to selected 1.6 (colored)

sync with HEAD

Revision 1.4.14.1 / (download) - annotate - [select for diffs], Wed Mar 19 19:15:01 2008 UTC (16 years, 1 month ago) by bouyer
Branch: netbsd-4-0
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored) to selected 1.6 (colored)

Pull up following revision(s) (requested by mjf in ticket #1102):
	lib/libc/stdlib/strfmon.c: revision 1.5
Avoid integer overflow; reported by Maksymilian Arciemowicz.

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Wed Mar 19 19:13:21 2008 UTC (16 years, 1 month ago) by bouyer
Branch: netbsd-4
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored) to selected 1.6 (colored)

Pull up following revision(s) (requested by mjf in ticket #1102):
	lib/libc/stdlib/strfmon.c: revision 1.5
Avoid integer overflow; reported by Maksymilian Arciemowicz.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Mar 18 18:16:08 2008 UTC (16 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-base
Changes since 1.4: +8 -3 lines
Diff to previous 1.4 (colored) to selected 1.6 (colored)

Avoid integer overflow; reported by Maksymilian Arciemowicz.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Mar 19 01:50:49 2006 UTC (18 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-base-1, 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, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-fixsa, netbsd-4-0, netbsd-4, matt-armv6, keiichi-mipv6
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored) to selected 1.6 (colored)

Coverity CID 1560: Don't leak memory when multiple currency symbols are present

Revision 1.3 / (download) - annotate - [select for diffs], Fri Dec 2 14:19:43 2005 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.2: +10 -10 lines
Diff to previous 1.2 (colored) to selected 1.6 (colored)

redo the previous; constify rather than making a string writable.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Nov 29 03:12:00 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored) to selected 1.6 (colored)

WARNS=4

Revision 1.1 / (download) - annotate - [select for diffs], Sun Apr 3 20:09:29 2005 UTC (19 years ago) by christos
Branch: MAIN
Diff to selected 1.6 (colored)

Add FreeBSD's strfmon(3). From Rui Paulo. No bump this time. Take advantage
of the getpwent_r bump.

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>