summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/vfprintf.c
AgeCommit message (Collapse)Author
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-01-18Merge the nathanw_sa branch.thorpej
2002-05-26__STDC__ is always defined on NetBSD.wiz
2001-12-07- make FILE structure extensible without breaking binary-compatibility.yamt
- add fputwc, fgetwc, fwide and related functions. - add hooks needed to maintain the orientation of file stream.
2001-12-02C99:kleink
* Recognize %F. * Convert {Infinity,NaN} to {"inf","nan"} for %[efg], and to {"INF","NAN"} for %[EFG].
2001-11-28Since we're returned the sign of a floating-point number by __dtoa(),kleink
use that to decide whether to include a minus sign in the result. Fixes printing -0.0, and thus PR lib/3137.
2001-11-27Ugh, back out last commit. It makes vfprintf depend on -lm.augustss
2001-11-27Print sign of -0.0 correctly. Fixes PR 3137 (mine).augustss
2001-11-04fix WARNS=2 (-Wshadow) warningslukem
2001-04-28* Move definitions of exact-width integer types from <machine/types.h>kleink
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.
2000-12-30initialize mbstate_t properly.itojun
2000-12-23make printf-variant work with stateful encodings.itojun
2000-07-08Attach __format__ attributes to local __sbprintf functionsommerfeld
1999-09-20back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.lukem
_DIAGASSERT() is still retained.
1999-09-16* use _DIAGASSERT() to check pointer arguments against NULL and filelukem
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
1998-11-15This is ugly. There is a const castaway inside the print macro, so we cannotchristos
use /* LINTED */ comments, since cpp will expand comments only at the macro definition location, not at every expansion.
1998-10-13Need internal names for isinf() and isnan().kleink
1998-09-09Perform stdio stream locking as appropriate.kleink
1998-07-27Delint (partially).mycroft
1998-07-26Minor nit.mycroft
1998-07-26const poisoning.mycroft
1998-07-26const poisoning.mycroft
1998-02-03remove obsolete register declarationsperry
1997-12-19Change several functions to return -1 instead of EOF, which was semanticallykleink
wrong.
1997-08-29Remove the flag test when seeing if _double is zero or not. Wephil
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?
1997-07-13Fix RCSID'schristos
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.
1997-05-03Upon an attempt to write to a stream that can't be written to, set errnokleink
to EBADF.
1997-04-02RCSid policekleink
1995-05-02The C Standard says that printf's format string is a multi-bytejtc
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.
1995-03-22Added "long long" support %ll{d,x,o,i}.jtc
1995-02-25when you have a pointer and want to assign to a quad, you must cast itcgd
to long to quiet the compiler.
1995-01-25Fixed bug with '+' or ' ' flags and precision.jtc
for example, printf("% 6.4d\n", 77) output one two many padding chars.
1994-10-20Fix zero padding when using the # format modifier.jtc
1994-09-30The decimal point character is locale specific.jtc
1994-09-19Move FLOATING_POINT definition into Makefile.inc.mycroft
1994-05-22_VA_LIST_ -> _BSD_VA_LIST_cgd
1993-11-04Corrected and simplified floating point formatting.jtc
Now conforms to ANSI C --- passes the fairly rigorous TCL "format.test".
1993-11-03Trailing zeros should be printed with all floating point formatsjtc
except %g && %G --- ANSI X3.159-1989, Sect 7.9.6.1.
1993-08-26Declare rcsid strings so they are stored in text segment.jtc
1993-08-01Add RCS identifiers.mycroft
1993-07-12Make declarations match prototypes.mycroft
1993-07-09update for better FP routines, from AT&T & elsewherecgd
1993-04-18Fix error in last patch.mycroft
1993-04-18Make arguments match prototypes.mycroft
1993-03-21initial import of 386bsd-0.1 sourcescgd