The NetBSD Project

CVS log for src/lib/libc/stdio/vfprintf.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.59.6.1 / (download) - annotate - [select for diffs], Thu May 22 11:36:54 2014 UTC (8 years, 6 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.59: +3 -0 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.59.12.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:21:06 2013 UTC (9 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.59: +3 -0 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

resync from head

Revision 1.60 / (download) - annotate - [select for diffs], Fri Apr 19 15:22:25 2013 UTC (9 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, 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, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, 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, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, HEAD
Changes since 1.59: +3 -0 lines
Diff to previous 1.59 (colored)

Add explicit locale versions for the printf family. Replace asprintf,
snprintf and sprintf with simple wrappers around the corresponding
va_list functions to reduce code duplication.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Oct 15 06:19:35 2009 UTC (13 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, 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-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.58: +0 -1181 lines
Diff to previous 1.58 (colored)

Reverse previous, committed by mistake.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Oct 14 21:25:52 2009 UTC (13 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.57: +1181 -0 lines
Diff to previous 1.57 (colored)

Change a while () {} into a do {} while() so that fgets(buf, 1, file)
detects EOF on an empty file.
Fixes most of PR/41992

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Mon May 7 19:49:09 2007 UTC (15 years, 7 months ago) by pavel
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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
Changes since 1.54: +2 -898 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

Pull up following revision(s) (requested by manu in ticket #607):
	lib/libc/arch/i386/gen/isnanl.c: revision 1.6
	lib/libc/gdtoa/gdtoa.c: revision 1.2-1.3
	lib/libc/arch/x86_64/gen/isnanl.c: revision 1.6
	lib/libc/gdtoa/gdtoaimp.h: revision 1.6
	sys/arch/m68k/include/ieee.h: revision 1.13
	usr.bin/xlint/lint1/scan.l: revision 1.36-1.37
	lib/libc/stdio/snprintf_ss.c: revision 1.4
	lib/libc/arch/i386/gen/isfinitel.c: revision 1.2
	lib/libc/stdio/vfscanf.c: revision 1.38
	sys/arch/sparc/include/ieee.h: revision 1.11-1.12
	lib/libc/gdtoa/dtoa.c: revision 1.4
	lib/libc/stdio/Makefile.inc: revision 1.35
	lib/libc/stdio/fvwrite.c: revision 1.17
	lib/libc/arch/m68k/gen/fpclassifyl.c: revision 1.2
	lib/libc/arch/i386/gen/isinfl.c: revision 1.6
	lib/libc/arch/x86_64/gen/isinfl.c: revision 1.6
	lib/libc/arch/x86_64/gen/isfinitel.c: revision 1.2
	lib/libc/stdio/vfprintf.c: revision 1.55-1.57
	lib/libc/stdio/vsnprintf_ss.c: revision 1.3
	lib/libc/stdio/vfwprintf.c: revision 1.10
	sys/arch/x86/include/ieee.h: revision 1.10
	lib/libc/gdtoa/dmisc.c: revision 1.3
	lib/libc/gdtoa/Makefile.inc: revision 1.5
	sys/arch/hppa/include/ieee.h: revision 1.10
	lib/libc/arch/x86_64/gen/fpclassifyl.c: revision 1.3
	lib/libc/arch/i386/gen/fpclassifyl.c: revision 1.2
	sys/sys/ieee754.h: revision 1.7
	lib/libc/gdtoa/gdtoa.h: revision 1.7
	include/stdio.h: revision 1.67-1.68
	lib/libc/gdtoa/hdtoa.c: revision 1.1-1.4
	lib/libc/gdtoa/ldtoa.c: revision 1.1-1.4
defined(_NETBSD_SOURCE) is equivalent to (!defined(_ANSI_SOURCE) &&
!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)), so there's no
need to check both of them.
Fix for issue reported in PR lib/35401 as well as related overflow bugs.
deal with hex doubles.
Instead of abusing stdio to get a signal-safe version of sprintf, provide one.
remove __SAFE
add long double and hex double support from freebsd.
make this compile.
add new prototypes.
add the new files to the build. Note I am not bumping libc now, because
these are not used yet.
Merge the int bit with the high fraction bit. Add constants/macros
needed by gdtoa.
add constants used by gdtoa
since the int bit is merged, do the explicit math.
ext_int bit is no more.
ext_int bit is no more.
- merge change from freebsd
- add support for building as vfprintf.c
- XXX: we strdup to simplify the freeing logic. This should be fixed for
  efficiency in the vfprintf case.
use vfwprintf.c
enable wide doubles.
some int -> size_t
deal with sparc64 that has 112 bits of mantissa.
make extended precision gdtoa friendly.
int/size_t changes
make this gdtoa friendly.
remove dup definition
use dtoa() instead of returning empty when we don't have extended precision
information.
Fix previous, add forgotten pointer dereference in the call to dtoa().
Add a cheesy workaround marked XXX for the situation where the
strtod() implementation available in the environment does not
handle hex floats.
Discussed with and suggested by christos
From Christos:  gdtoa fixes for m68k.  M68k ports should build now, but
printing extended precision is a little off.
vax does not have <machine/ieee.h> or long double
It would be nice if the compiler provided something like __IEEE_MATH__
bring in FreeBSD's vfscanf() to gain multi-byte/collation support.
Unfortunately it is too difficult to make vfwscanf and this share
the same code like I did with printf, because for string parsing
the code is too different.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Feb 3 00:28:43 2007 UTC (15 years, 10 months 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, mjf-devfs2-base, mjf-devfs2, 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, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, christos-time_t-nbase, christos-time_t-base, christos-time_t
Changes since 1.56: +2 -915 lines
Diff to previous 1.56 (colored)

use vfwprintf.c

Revision 1.56 / (download) - annotate - [select for diffs], Fri Feb 2 23:00:28 2007 UTC (15 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.55: +7 -23 lines
Diff to previous 1.55 (colored)

Instead of abusing stdio to get a signal-safe version of sprintf, provide one.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Jan 26 00:37:30 2007 UTC (15 years, 10 months ago) by cbiere
Branch: MAIN
Changes since 1.54: +55 -22 lines
Diff to previous 1.54 (colored)

Fix for issue reported in PR lib/35401 as well as related overflow bugs.

Revision 1.54 / (download) - annotate - [select for diffs], Mon Oct 30 05:10:40 2006 UTC (16 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.53: +4 -3 lines
Diff to previous 1.53 (colored)

set n properly so that we can terminate.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Oct 28 15:02:02 2006 UTC (16 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

Initialize decimal_point.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Oct 28 14:38:55 2006 UTC (16 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.51: +6 -3 lines
Diff to previous 1.51 (colored)

initialize floating_point as needed.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Oct 27 19:59:58 2006 UTC (16 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.50: +22 -7 lines
Diff to previous 1.50 (colored)

Add signal-safe versions of snprintf and vsnprintf

Revision 1.50 / (download) - annotate - [select for diffs], Thu Feb 16 23:26:19 2006 UTC (16 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.49: +20 -13 lines
Diff to previous 1.49 (colored)

- s/notyet/WIDE_DOUBLE/
- Add a little more glue for WIDE_DOUBLE; not done yet.
- s/def FLOATING_POINT/ndef NO_FLOATING_POINT/ to reduce diffs with FreeBSD.
- fix memory leak where each double formatted leaked 24 by calling __freedtoa()
  appropriately. the new gdtoa keeps a list of memory chunks allocated by
  malloc(), and it must maintained properly by calling __freedtoa() on the
  results of __dtoa() Hi Klaus!
- in vfwprintf() make cvt return char * and convert it using __mbsconv(),
  instead of having it return wchar_t *.

This should fix the memory leaks people have been reporting (eg. in top etc.)

Revision 1.49 / (download) - annotate - [select for diffs], Tue Nov 29 03:12:00 2005 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

WARNS=4

Revision 1.46.4.1 / (download) - annotate - [select for diffs], Wed Jun 1 15:50:34 2005 UTC (17 years, 6 months ago) by riz
Branch: netbsd-2
CVS Tags: 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
Changes since 1.46: +2 -15 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

Pull up revision 1.47 (requested by christos in ticket #1968):
remove __UNCONST definition; it is now in &lt;sys/cdefs.h&gt;

Revision 1.48 / (download) - annotate - [select for diffs], Wed Feb 9 21:35:47 2005 UTC (17 years, 10 months ago) by kleink
Branch: MAIN
CVS Tags: netbsd-3-base, 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, netbsd-3
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

A little libc namespace housekeeping exercise:
* Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked().
* Add internal names for arc4random(), endnetpath(), fhstatvfs(),
  fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(),
  uuid_create_nil(), uuid_is_nil(), and wcwidth().
* Include namespace.h where supposed to.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jul 2 03:00:01 2004 UTC (18 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.46: +2 -15 lines
Diff to previous 1.46 (colored)

remove __UNCONST definition; it is now in <sys/cdefs.h>

Revision 1.46 / (download) - annotate - [select for diffs], Wed Mar 3 11:19:05 2004 UTC (18 years, 9 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-2-base, 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
Branch point for: netbsd-2
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Don't zero a floating point variable on entry -- this causes the FPU to
be allocated needlessly by almost every program (at least on i386/amd64).

Revision 1.45 / (download) - annotate - [select for diffs], Thu Aug 7 16:43:34 2003 UTC (19 years, 4 months ago) by agc
Branch: MAIN
Changes since 1.44: +3 -7 lines
Diff to previous 1.44 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

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

Revision 1.44 / (download) - annotate - [select for diffs], Sat Jan 18 11:29:59 2003 UTC (19 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.43: +21 -7 lines
Diff to previous 1.43 (colored)

Merge the nathanw_sa branch.

Revision 1.35.2.6 / (download) - annotate - [select for diffs], Fri Jun 21 18:18:22 2002 UTC (20 years, 5 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.35.2.5: +3 -8 lines
Diff to previous 1.35.2.5 (colored) next main 1.36 (colored)

Catch up to -current.

Revision 1.43 / (download) - annotate - [select for diffs], Sun May 26 14:44:00 2002 UTC (20 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.42: +3 -8 lines
Diff to previous 1.42 (colored)

__STDC__ is always defined on NetBSD.

Revision 1.35.2.5 / (download) - annotate - [select for diffs], Thu May 2 17:04:55 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.35.2.4: +20 -6 lines
Diff to previous 1.35.2.4 (colored)

Remove calls to FLOCKFILE() and FUNLOCKFILE() from vfprintf() and __svfscanf(),
rename those routines to vfprintf_unlocked() and __svfscanf_unlocked(),
and implement vfprintf() and __svfscanf() as small routines that do
FLOCKFILE()/foo_unlocked()/FUNLOCKFILE().

Revision 1.35.2.4 / (download) - annotate - [select for diffs], Wed Feb 6 23:18:51 2002 UTC (20 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.35.2.3: +3 -3 lines
Diff to previous 1.35.2.3 (colored)

#include "reentrant.h" before "local.h" so that the thread types used
in fileext.h are avaliable.

Revision 1.35.2.3 / (download) - annotate - [select for diffs], Mon Jan 28 20:51:12 2002 UTC (20 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.35.2.2: +19 -8 lines
Diff to previous 1.35.2.2 (colored)

Catch up to -current.

Revision 1.32.8.1 / (download) - annotate - [select for diffs], Sun Dec 9 19:25:52 2001 UTC (21 years ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Pull up revision 1.40 (requested by kleink):
  Print the sign prefix for -0.0; fixes PR#3137.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Dec 7 11:47:44 2001 UTC (21 years ago) by yamt
Branch: 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
Changes since 1.41: +6 -2 lines
Diff to previous 1.41 (colored)

- make FILE structure extensible without breaking binary-compatibility.
- add fputwc, fgetwc, fwide and related functions.
- add hooks needed to maintain the orientation of file stream.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Dec 2 20:12:03 2001 UTC (21 years ago) by kleink
Branch: MAIN
Changes since 1.40: +13 -6 lines
Diff to previous 1.40 (colored)

C99:
* Recognize %F.
* Convert {Infinity,NaN} to {"inf","nan"} for %[efg], and to
  {"INF","NAN"} for %[EFG].

Revision 1.40 / (download) - annotate - [select for diffs], Wed Nov 28 11:58:22 2001 UTC (21 years ago) by kleink
Branch: MAIN
Changes since 1.39: +4 -4 lines
Diff to previous 1.39 (colored)

Since we're returned the sign of a floating-point number by __dtoa(),
use that to decide whether to include a minus sign in the result.
Fixes printing -0.0, and thus PR lib/3137.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Nov 27 18:05:30 2001 UTC (21 years ago) by augustss
Branch: MAIN
Changes since 1.38: +1 -1 lines
Diff to previous 1.38 (colored)

Ugh, back out last commit.  It makes vfprintf depend on -lm.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Nov 27 18:00:55 2001 UTC (21 years ago) by augustss
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Print sign of -0.0 correctly.  Fixes PR 3137 (mine).

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:32:02 2001 UTC (21 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.35.2.1: +11 -11 lines
Diff to previous 1.35.2.1 (colored)

Catch up to -current.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Nov 4 13:57:30 2001 UTC (21 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.36: +11 -11 lines
Diff to previous 1.36 (colored)

fix WARNS=2 (-Wshadow) warnings

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Mon Oct 8 20:20:58 2001 UTC (21 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.35: +56 -27 lines
Diff to previous 1.35 (colored)

Catch up to -current.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Apr 28 15:41:29 2001 UTC (21 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.35: +56 -27 lines
Diff to previous 1.35 (colored)

* Move definitions of exact-width integer types from <machine/types.h>
  to <sys/types.h> and <sys/stdint.h>.
* Add a new C99 <stdint.h> header, which provides integer types of
  explicit width, related limits and integer constant macros.
* Extend <inttypes.h> to provide <stdint.h> definitions and format
  macros for printf() and scanf().
* Add C99 strtoimax() and strtoumax() functions.
* Use the latter within scanf().
* Add C99 %j, %t and %z printf()/scanf() conversions for
  intmax_t, pointer-type and size_t arguments.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Dec 30 04:13:25 2000 UTC (21 years, 11 months ago) by itojun
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

initialize mbstate_t properly.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Dec 23 13:19:31 2000 UTC (21 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.33: +7 -3 lines
Diff to previous 1.33 (colored)

make printf-variant work with stateful encodings.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Jul 8 14:57:57 2000 UTC (22 years, 5 months ago) by sommerfeld
Branch: MAIN
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored)

Attach __format__ attributes to local __sbprintf function

Revision 1.32 / (download) - annotate - [select for diffs], Mon Sep 20 04:39:33 1999 UTC (23 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-5
Changes since 1.31: +2 -12 lines
Diff to previous 1.31 (colored)

back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Sep 16 11:45:31 1999 UTC (23 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.30: +29 -2 lines
Diff to previous 1.30 (colored)

* use _DIAGASSERT() to check pointer arguments against NULL and file
  descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
  and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

		_DIAGASSERT(path != NULL)
	#ifdef _DIAGNOSTIC
		if (path == NULL) {
			errno = EFAULT;
			return (-1);
		}
	#endif

Revision 1.30 / (download) - annotate - [select for diffs], Sun Nov 15 17:19:05 1998 UTC (24 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Changes since 1.29: +19 -6 lines
Diff to previous 1.29 (colored)

This is ugly. There is a const castaway inside the print macro, so we cannot
use /* LINTED */ comments, since cpp will expand comments only at the macro
definition location, not at every expansion.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Oct 13 14:43:39 1998 UTC (24 years, 2 months ago) by kleink
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Need internal names for isinf() and isnan().

Revision 1.28 / (download) - annotate - [select for diffs], Wed Sep 9 12:08:05 1998 UTC (24 years, 3 months ago) by kleink
Branch: MAIN
Changes since 1.27: +15 -6 lines
Diff to previous 1.27 (colored)

Perform stdio stream locking as appropriate.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jul 27 14:04:01 1998 UTC (24 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.26: +18 -15 lines
Diff to previous 1.26 (colored)

Delint (partially).

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jul 26 13:55:45 1998 UTC (24 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Minor nit.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jul 26 12:35:24 1998 UTC (24 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

const poisoning.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jul 26 12:31:39 1998 UTC (24 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)

const poisoning.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Feb 3 18:41:23 1998 UTC (24 years, 10 months ago) by perry
Branch: MAIN
Changes since 1.22: +12 -12 lines
Diff to previous 1.22 (colored)

remove obsolete register declarations

Revision 1.22 / (download) - annotate - [select for diffs], Fri Dec 19 14:08:44 1997 UTC (24 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.21: +6 -6 lines
Diff to previous 1.21 (colored)

Change several functions to return -1 instead of EOF, which was semantically
wrong.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Aug 29 05:31:11 1997 UTC (25 years, 3 months ago) by phil
Branch: 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
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Remove the flag test when seeing if _double is zero or not.  We
are only testing for the cvt problem, not for alternate forms.
This change makes %#e and %e both correctly print 0.  It is just
a question of is it the proper number of zeros or not?

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jul 13 20:15:34 1997 UTC (25 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.19: +15 -9 lines
Diff to previous 1.19 (colored)

Fix RCSID's
Fix gcc warnings.
Add prototypes for functions that were declared in more than one place
to local.h or extern.h and use that instead.

Revision 1.19 / (download) - annotate - [select for diffs], Sat May 3 09:01:50 1997 UTC (25 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.18: +6 -3 lines
Diff to previous 1.18 (colored)

Upon an attempt to write to a stream that can't be written to, set errno
to EBADF.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Apr 2 12:50:25 1997 UTC (25 years, 8 months ago) by kleink
Branch: MAIN
Changes since 1.17: +3 -1 lines
Diff to previous 1.17 (colored)

RCSid police

Revision 1.17 / (download) - annotate - [select for diffs], Tue May 2 19:52:41 1995 UTC (27 years, 7 months ago) by jtc
Branch: MAIN
CVS Tags: nsswitch, 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, ivory_soap2
Changes since 1.16: +15 -8 lines
Diff to previous 1.16 (colored)

The C Standard says that printf's format string is a multi-byte
character string.  NA1 says that the 99 characters required by the
Standard have representations in the initial state which are one byte
long and do not alter the state.

Thus we can safely break apart the format string with mbtowc() until
we reach a '%' character, and the process format directive characters
one by one.

We really shouldn't be using mbtowc(), rather mbrtowc() (which takes a
mbstate-t argument) but we don't have the NA1 functions implemented
yet.  This is safe, because even when we do we're not likely to
support multi-byte character encodings that use shift states.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 22 00:56:55 1995 UTC (27 years, 8 months ago) by jtc
Branch: MAIN
Changes since 1.15: +7 -2 lines
Diff to previous 1.15 (colored)

Added "long long" support %ll{d,x,o,i}.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Thu Mar 2 20:24:16 1995 UTC (27 years, 9 months ago) by jtc
Branch: ivory_soap
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

#include "namespace.h"

Revision 1.15 / (download) - annotate - [select for diffs], Sat Feb 25 07:06:38 1995 UTC (27 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

when you have a pointer and want to assign to a quad, you must cast it
to long to quiet the compiler.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Thu Feb 2 00:59:16 1995 UTC (27 years, 10 months ago) by jtc
Branch: WFJ-920714, CSRG
CVS Tags: lite-2, lite-1
Changes since 1.1.1.1: +339 -466 lines
Diff to previous 1.1.1.1 (colored)

imported from 44lite

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jan 25 11:20:41 1995 UTC (27 years, 10 months ago) by jtc
Branch: MAIN
Branch point for: ivory_soap
Changes since 1.13: +5 -7 lines
Diff to previous 1.13 (colored)

Fixed bug with '+' or ' ' flags and precision.
for example, printf("% 6.4d\n", 77) output one two many padding chars.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Oct 20 03:56:56 1994 UTC (28 years, 1 month ago) by jtc
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Fix zero padding when using the # format modifier.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Sep 30 02:39:13 1994 UTC (28 years, 2 months ago) by jtc
Branch: MAIN
Changes since 1.11: +7 -6 lines
Diff to previous 1.11 (colored)

The decimal point character is locale specific.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Sep 19 04:43:03 1994 UTC (28 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +1 -4 lines
Diff to previous 1.10 (colored)

Move FLOATING_POINT definition into Makefile.inc.

Revision 1.10 / (download) - annotate - [select for diffs], Sun May 22 23:21:41 1994 UTC (28 years, 6 months ago) by cgd
Branch: MAIN
CVS Tags: 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
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

_VA_LIST_ -> _BSD_VA_LIST_

Revision 1.9 / (download) - annotate - [select for diffs], Thu Nov 4 02:26:10 1993 UTC (29 years, 1 month ago) by jtc
Branch: MAIN
Changes since 1.8: +31 -19 lines
Diff to previous 1.8 (colored)

Corrected and simplified floating point formatting.
Now conforms to ANSI C --- passes the fairly rigorous TCL "format.test".

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 3 19:32:01 1993 UTC (29 years, 1 month ago) by jtc
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Trailing zeros should be printed with all floating point formats
except %g && %G --- ANSI X3.159-1989, Sect 7.9.6.1.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 26 00:47:33 1993 UTC (29 years, 3 months ago) by jtc
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Declare rcsid strings so they are stored in text segment.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Aug 1 18:38:18 1993 UTC (29 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

Add RCS identifiers.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jul 12 02:09:31 1993 UTC (29 years, 5 months ago) by mycroft
Branch: 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
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

Make declarations match prototypes.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jul 9 09:40:08 1993 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.3: +199 -424 lines
Diff to previous 1.3 (colored)

update for better FP routines, from AT&T & elsewhere

Revision 1.3 / (download) - annotate - [select for diffs], Sun Apr 18 09:21:15 1993 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +0 -4 lines
Diff to previous 1.2 (colored)

Fix error in last patch.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Apr 18 09:19:56 1993 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +5 -1 lines
Diff to previous 1.1 (colored)

Make arguments match prototypes.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (29 years, 8 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (29 years, 8 months ago) by cgd
Branch: MAIN

Initial revision

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>