summaryrefslogtreecommitdiff
path: root/libc/stdio/printf.c
AgeCommit message (Collapse)Author
2002-08-13__fsetlocking() and FILE field user_locking were completely broken. :-(Manuel Novoa III
I think they're fixed now (I've run a few tests). Note: __fsetlocking() is not threadsafe... but glibc's doesn't appear to be either.
2002-08-12Revert commit by davidm to printf.c that initialized conv_numManuel Novoa III
needlessly. To do so increases the generated code size with bcc. Eliminate duplicate define warnings in wstring.c. Fix potentially broken preprocessor comparisons. The preprocessor converts integers to maximal signed type, so inequality comparisons involving UINTMAX_MAX, ULLONG_MAX, and (if no long long) ULONG_MAX were potentially broken.
2002-08-09Fix a number of compile time warnings so that uClibc will build with -Werror ↵David McCullough
using a 3.0.4 version of the sh-linux-gcc compiler.
2002-07-07Attempt to clean up the strerror_r situation.Manuel Novoa III
2002-07-03Enable WCHAR support for C/POSIX stub locales.Manuel Novoa III
Implemented unformatted wide i/o functions. (ungetwc still needs testing) Fix a few bugs in wchar.c. Modifications for bcc/elks support.
2002-06-18Fix perror() and printf("%m") to not call strerror(), as required by theManuel Novoa III
standards. Temporarily added a utility function to wrap Erik's strerror_r so that "Unknown error xxx" strings can be generated for errno's which cause strerror_r to fail. That utility function will eventually be merged in with the strerror/strerror_r functions when I change over to optionallly mmap'ing the system error strings to provide for lower mem comsumption on non-MMU platforms, as well as locale-specific system error messages.
2002-06-11Revert Erik's patch to vasprintf and fix the real issue.Manuel Novoa III
The writer for the stream returned by open_memstream was supposed to keep the buffer nul-terminated. I apparently left out a statement.
2002-06-11This patch from Rik Faith <faith@alephnull.com> fixes a potentiallyEric Andersen
non-NULL terminated string problem that could result from the use of open_memstream(). Manuel may have a better solution, but this one works for me, since with this plus the popen fix I can now run things like gdb properly. Thanks Rik!
2002-05-12Several bugfixes for problems that showed up on alphaEric Andersen
-Erik
2002-05-11Adjust preprocessor logic to initialize QUAL_CHARS correctly for Erik's alphaManuel Novoa III
port. Also, explicitly use the macro versions of isdigit and isspace in the printf and scanf code.
2002-04-02Fix an arg promotion handling bug in _do_one_spec for %c reportedManuel Novoa III
by Ilguiz Latypov <ilatypov@superbt.com>.
2002-04-01Forget to initialize thread locks for fake files. Thanks Erik.Manuel Novoa III
2002-03-22Add in a knob to disable %m supportEric Andersen
-Erik
2002-03-13Apply Miles Bader's missing __va_copy() fix.Manuel Novoa III
2002-03-12Fix another O_LARGEFILE bug. Also, I forget to make floating point optionalManuel Novoa III
in the new printf code.
2002-03-12Deal with cvs "feature"... or is that cvs _user_...Manuel Novoa III
2002-03-12Swap in the new stdio code.Manuel Novoa III
2001-06-13Fix printf so that %p outputs "(nil)" for (void *) 0, to match glibc behavior.Manuel Novoa III
2001-06-13Fix printf handling of %p to prepend "0x" since output is in hex.Manuel Novoa III
Note: glibc output for (void *)0 is "(nil)" while uClibc output is "0". Does anyone have a preference?
2001-05-07A couple of printf fixes from Johan Adolfsson (johan.adolfsson@axis.com).Manuel Novoa III
2001-03-19Since Erik apparently wants def/undef vs def 1/0...Manuel Novoa III
2001-03-18Test for Config features using features.h.Manuel Novoa III
2001-03-13Delete a stray character that hopped into the file...Manuel Novoa III
2001-02-28Fix a buglet regarding floating point output for ?nprintf functions.Manuel Novoa III
2001-02-27stdio mostly rewritten... passes lots of tests now.Manuel Novoa III
printf now supports long double, plus some bug fixes.
2001-02-19Lots of stdio cleanups. Several bug fixes, addition of a number of functionsManuel Novoa III
to supplement macros in stdio.h, change perror to use stdio package instead of "write". Also add back in weak stdio initialization for static lib case.
2001-02-15Add vdprintf function. Note: will be rewritten to check if file descriptor ↵Manuel Novoa III
has an associated FILE to avoid bad interactions with buffered output, but needed for busybox right now and that implementation has the same bug.
2001-01-30Fix a couple of bugs in printf. Add floating pt output for doubles. Yeah!Manuel Novoa III
Modified stdio/Makefile to build printf.c according to Config values for HAS_FLOATS and HAS_LONG_LONG.
2001-01-28Really fixed 0-pad bug this time. ;-) Code-size reductions if sizeof(int) andManuel Novoa III
sizeof(long) equal. printf # flag now works for b (binary) specifier.
2001-01-27Fixed (hopefully) 0-pad bug in printf. Added asprintf function. ReworkedManuel Novoa III
the *s*printf functions to no longer use a static fake file.
2001-01-12Cannot portably pass a short via va_args, since it will beEric Andersen
internally converted to an int on many platforms. So make it be an int explicitly and call that good enough. -Erik
2001-01-11A large update from Manuel Novoa III <mnovoa3@bellsouth.net>.Eric Andersen
2000-12-20A number of updates from Manuel Novoa III. Things look good...Eric Andersen
2000-10-09Bug ugly formatting updateEric Andersen
2000-08-11Add in snprintf and vsnprintfEric Andersen
-Erik
2000-05-14Initial revisionErik Andersen