freebsd-skq/lib/libc/stdio
David Schultz 6a66acb565 Replace our ancient dtoa/strtod implementation with the gdtoa
package, a more recent, generalized set of routines.  Among the
changes:
- Declare strtof() and strtold() in stdlib.h.
- Add glue to libc to support these routines for all kinds
  of ``long double''.
- Update printf() to reflect the fact that dtoa works slightly
  differently now.

As soon as I see that nothing has blown up, I will kill
src/lib/libc/stdlib/strtod.c.  Soon printf() will be able
to use the new routines to output long doubles without loss
of precision, but numerous bugs in the existing code must
be addressed first.

Reviewed by:	bde (briefly), mike (mentor), obrien
2003-03-12 20:30:00 +00:00
..
_flock_stub.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
asprintf.c Back out previous and solve the problems a different way: move va_start/ 2002-09-26 13:09:48 +00:00
clrerr.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
fclose.3 mdoc(7) police: "The .Fn function". 2002-12-18 12:45:11 +00:00
fclose.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
fdopen.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
feof.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
ferror.3 mdoc(7) police: markup laundry. 2003-02-23 01:47:49 +00:00
ferror.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
fflush.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
fflush.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
fgetc.c Basic support for wide character I/O: getwc(), fgetwc(), getwchar(), 2002-08-13 09:30:41 +00:00
fgetln.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
fgetln.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
fgetpos.c Add restrict type-qualifier. 2002-10-12 16:13:41 +00:00
fgets.3 Consistently mark std(in|out|err) with .Dv, because that's how they 2002-12-04 18:57:46 +00:00
fgets.c Basic support for wide character I/O: getwc(), fgetwc(), getwchar(), 2002-08-13 09:30:41 +00:00
fgetwc.c Set the error bit on the stream if an encoding error occurs. Improve 2002-10-16 12:09:43 +00:00
fgetws.3 MFp4: Add the standard "the {fgetws,fputws} function will fail if" text 2003-03-09 02:56:54 +00:00
fgetws.c Lock the file once per call and use the unlocked fgetwc()/fputwc() variants. 2002-09-20 13:25:40 +00:00
fileno.c Lock the stream before calling __sfileno() to retrieve the file descriptor. 2003-01-13 02:58:18 +00:00
findfp.c bde points out that the LIBC_MAJOR macro doesn't exist and requests 2002-11-14 14:06:14 +00:00
flags.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
floatio.h Fix the style of the SCM ID's. 2002-03-22 23:42:05 +00:00
flockfile.3 Add missing word to "Return Values" section. 2003-01-13 01:29:14 +00:00
fopen.3 Initial implementation of the C99 feature whereby calling freopen() with 2003-01-26 10:01:59 +00:00
fopen.c Add restrict type-qualifier. 2002-10-12 16:13:41 +00:00
fprintf.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
fpurge.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
fputc.c Basic support for wide character I/O: getwc(), fgetwc(), getwchar(), 2002-08-13 09:30:41 +00:00
fputs.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
fputs.c Add restrict type-qualifier. 2002-10-12 16:13:41 +00:00
fputwc.c Set the error bit on the stream if an encoding error occurs. Improve 2002-10-16 12:09:43 +00:00
fputws.3 MFp4: Add the standard "the {fgetws,fputws} function will fail if" text 2003-03-09 02:56:54 +00:00
fputws.c Lock the file once per call and use the unlocked fgetwc()/fputwc() variants. 2002-09-20 13:25:40 +00:00
fread.3 Add restrict type-qualifier. 2002-10-12 16:13:41 +00:00
fread.c Add restrict type-qualifier. 2002-10-12 16:13:41 +00:00
freopen.c Remove part of my stateful locale patch that slipped into the previous rev. 2003-01-26 11:45:54 +00:00
fscanf.c #include "local.h" to make __svfscanf()'s prototype visible. 2003-01-03 23:27:27 +00:00
fseek.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
fseek.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
fsetpos.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
ftell.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
funopen.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
funopen.c Assume __STDC__, remove non-__STDC__ code. 2002-05-28 17:03:12 +00:00
fvwrite.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
fvwrite.h Assume __STDC__, remove non-__STDC__ code. 2002-05-28 17:03:12 +00:00
fwalk.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
fwide.3 mdoc(7) police: "The .Fn function". 2002-12-18 12:45:11 +00:00
fwide.c Basic support for wide character I/O: getwc(), fgetwc(), getwchar(), 2002-08-13 09:30:41 +00:00
fwprintf.c Add implementations of the wprintf() family of functions, which perform 2002-09-21 13:00:30 +00:00
fwrite.c Add restrict type-qualifier. 2002-10-12 16:13:41 +00:00
fwscanf.c Add implementations of wscanf() and related functions: fwscanf(), swscanf(), 2002-09-23 12:40:06 +00:00
getc.3 mdoc(7) police: markup laundry. 2003-02-23 01:47:49 +00:00
getc.c Basic support for wide character I/O: getwc(), fgetwc(), getwchar(), 2002-08-13 09:30:41 +00:00
getchar.c Basic support for wide character I/O: getwc(), fgetwc(), getwchar(), 2002-08-13 09:30:41 +00:00
gets.c Back out previous. Many people disagreed with removing the warning. 2003-01-30 23:32:53 +00:00
getw.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
getwc.3 Consistently mark std(in|out|err) with .Dv, because that's how they 2002-12-04 18:57:46 +00:00
getwc.c Remove masking macros for getwc(), putwc(), putwchar() and getwchar(). 2002-09-28 07:43:44 +00:00
getwchar.c Remove masking macros for getwc(), putwc(), putwchar() and getwchar(). 2002-09-28 07:43:44 +00:00
glue.h Fix the style of the SCM ID's. 2002-03-22 23:42:05 +00:00
local.h The ORIENTLOCK macro is no longer needed since all functions use 2002-10-25 07:01:56 +00:00
makebuf.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
Makefile.inc Document clearerr_unlocked(), feof_unlocked(), ferror_unlocked() 2003-01-10 06:22:28 +00:00
mktemp.3 mdoc(7) police: Deal with self-xrefs. 2002-12-24 13:41:48 +00:00
mktemp.c Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go). 2003-02-16 17:29:11 +00:00
perror.c Write the message to stderr, not file descriptor 2, so that perror() 2002-12-19 09:53:26 +00:00
printf.3 Note that the printf(3) and scanf(3) family of functions don't deal with 2003-01-06 06:19:19 +00:00
printf.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
putc.3 mdoc(7) police: markup laundry. 2003-02-23 01:47:49 +00:00
putc.c Basic support for wide character I/O: getwc(), fgetwc(), getwchar(), 2002-08-13 09:30:41 +00:00
putchar.c Basic support for wide character I/O: getwc(), fgetwc(), getwchar(), 2002-08-13 09:30:41 +00:00
puts.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
putw.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
putwc.3 Consistently mark std(in|out|err) with .Dv, because that's how they 2002-12-04 18:57:46 +00:00
putwc.c Remove masking macros for getwc(), putwc(), putwchar() and getwchar(). 2002-09-28 07:43:44 +00:00
putwchar.c Remove masking macros for getwc(), putwc(), putwchar() and getwchar(). 2002-09-28 07:43:44 +00:00
refill.c Basic support for wide character I/O: getwc(), fgetwc(), getwchar(), 2002-08-13 09:30:41 +00:00
remove.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
remove.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
rewind.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
rget.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
scanf.3 Note that the printf(3) and scanf(3) family of functions don't deal with 2003-01-06 06:19:19 +00:00
scanf.c #include "local.h" to make __svfscanf()'s prototype visible. 2003-01-03 23:27:27 +00:00
setbuf.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
setbuf.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
setbuffer.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
setvbuf.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
snprintf.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
sprintf.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
sscanf.c Add restrict type-qualifier. 2002-10-12 16:13:41 +00:00
stdio.3 mdoc(7) police: markup laundry. 2003-02-23 01:47:49 +00:00
stdio.c #include <stdlib.h> for free()'s prototype. 2003-01-07 06:17:13 +00:00
swprintf.c Add implementations of the wprintf() family of functions, which perform 2002-09-21 13:00:30 +00:00
swscanf.c Add implementations of wscanf() and related functions: fwscanf(), swscanf(), 2002-09-23 12:40:06 +00:00
tempnam.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
tmpfile.c Fix use of an uninitialized pointer introduced in a previous revision. 2003-02-06 01:08:19 +00:00
tmpnam.3 mdoc(7) police: "The .Fn function". 2002-12-18 12:45:11 +00:00
tmpnam.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
ungetc.3 Cross-reference between byte and wide-character stdio functions. Remove 2002-10-10 04:12:40 +00:00
ungetc.c Basic support for wide character I/O: getwc(), fgetwc(), getwchar(), 2002-08-13 09:30:41 +00:00
ungetwc.3 mdoc(7) police: markup overhaul. 2002-12-04 17:49:15 +00:00
ungetwc.c Set the error bit on the stream if an encoding error occurs. Improve 2002-10-16 12:09:43 +00:00
unlocked.c Add function versions of getchar_unlocked(), getc_unlocked(), 2003-01-10 04:35:08 +00:00
vasprintf.c Back out previous, free the buffer when __vfprintf() fails and don't bother 2002-09-26 13:11:24 +00:00
vfprintf.c Replace our ancient dtoa/strtod implementation with the gdtoa 2003-03-12 20:30:00 +00:00
vfscanf.c No need to include floatio.h here: vfscanf() no longer uses anything 2002-11-01 05:13:01 +00:00
vfwprintf.c Set the error bit on the stream if an encoding error occurs. Improve 2002-10-16 12:09:43 +00:00
vfwscanf.c No need to include floatio.h here: vfscanf() no longer uses anything 2002-11-01 05:13:01 +00:00
vprintf.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
vscanf.c #include "local.h" to make __svfscanf()'s prototype visible. 2003-01-03 23:27:27 +00:00
vsnprintf.c Fix vsnprintf(3) memory leak for size == 0. 2002-09-17 11:28:24 +00:00
vsprintf.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
vsscanf.c Add restrict type-qualifier. 2002-10-12 16:13:41 +00:00
vswprintf.c Remove an unused variable: mbresult. 2003-01-07 06:20:47 +00:00
vswscanf.c Add implementations of wscanf() and related functions: fwscanf(), swscanf(), 2002-09-23 12:40:06 +00:00
vwprintf.c Add implementations of the wprintf() family of functions, which perform 2002-09-21 13:00:30 +00:00
vwscanf.c Add implementations of wscanf() and related functions: fwscanf(), swscanf(), 2002-09-23 12:40:06 +00:00
wbuf.c Basic support for wide character I/O: getwc(), fgetwc(), getwchar(), 2002-08-13 09:30:41 +00:00
wprintf.3 Consistently mark std(in|out|err) with .Dv, because that's how they 2002-12-04 18:57:46 +00:00
wprintf.c Add implementations of the wprintf() family of functions, which perform 2002-09-21 13:00:30 +00:00
wscanf.3 mdoc(7) police: tiny nits. 2002-12-09 14:11:37 +00:00
wscanf.c Add implementations of wscanf() and related functions: fwscanf(), swscanf(), 2002-09-23 12:40:06 +00:00
wsetup.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00