summaryrefslogtreecommitdiffstats
path: root/libc/stdio
Commit message (Collapse)AuthorAgeFilesLines
* prettify make cleanBernhard Reutner-Fischer2010-03-251-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* lift printf field width limitMichael Deutschmann2010-03-171-4/+4
| | | | | | | | | | uClibc mishandles printf field width limits larger than 40959, as a result of misguided overflow-protection code. This causes spurious test failures with GNU coreutils, which depends on "%65536s" and "%20000000f" working according to spec. Signed-off-by: Michael Deutschmann <michael@talamasca.ocis.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* remove a few more empty #if/#endif pairsDenys Vlasenko2009-09-194-14/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-185-24/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-1876-209/+0
| | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* remove(): slight readabability tweak, no code changesDenys Vlasenko2009-09-051-5/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* support building out-of-treeBernhard Reutner-Fischer2009-08-171-0/+2
| | | | | | Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* suppress bogus ioctl on fd==INT_MAX when vasprintf() is calledDenis Vlasenko2009-02-154-14/+23
|
* *: remove __UCLIBC_CURLOCALE_DATA, __UCLIBC_CURLOCALE_DATA.xDenis Vlasenko2009-01-214-30/+30
| | | | | | | | | | | | | | | | | | | is always equivalent to __UCLIBC_CURLOCALE->x. remove typedef __uclibc_locale_t, it used only in a few places, it is lees confusing to use struct __uclibc_locale_struct everywhere. xlocale.h: hide __global_locale back under _LIBC, bug 53 is wrong in claiming it should be exported. Also hide under _LIBC: extern __locale_t __curlocale_var; extern __locale_t __curlocale(void); extern __locale_t __curlocale_set(__locale_t newloc); # define __UCLIBC_CURLOCALE # define __XL_NPP(N) # define __LOCALE_PARAM # define __LOCALE_ARG # define __LOCALE_PTR
* more of warning fixes, mostly pointer signedness mismatchesDenis Vlasenko2008-12-213-7/+8
|
* more of pointer signedness warnings removedDenis Vlasenko2008-12-211-4/+4
|
* heed multiple warnings of the typeDenis Vlasenko2008-12-211-7/+8
| | | | | | libc/stdio/_vfprintf.c:1892: warning: passing argument 1 of '_[w]stdio_fwrite' from incompatible pointer type
* libc/stdio/_scanf.c: heed lots of warnings about signed/unsigned charsDenis Vlasenko2008-12-201-24/+12
| | | | | | and such; remove two unneeded static string (inline "str" works better code-size wise).
* fix improperly hidden fputc_unlockedDenis Vlasenko2008-11-292-4/+2
|
* fix improperly hidden fwprintf.Denis Vlasenko2008-11-291-0/+1
| | | | | | | | | make two data objects static. text data bss dec hex filename - 274779 1835 19012 295626 482ca lib/libuClibc-0.9.30-svn.so + 274693 1835 19012 295540 48274 lib/libuClibc-0.9.30-svn.so
* fix some unneeded PLT referencesDenis Vlasenko2008-11-222-2/+2
|
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-2063-143/+143
| | | | | Appears to build fine (several .configs tried)
* next portion of libc_hidden_proto removalDenis Vlasenko2008-11-2018-24/+24
|
* libc_hidden_proto removal, a few more functionsDenis Vlasenko2008-11-189-13/+13
|
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-186-6/+6
|
* - less verbose make cleanBernhard Reutner-Fischer2008-11-071-4/+4
|
* - Fix __user_locking with stdio buffers (Carmelo AMOROSO)Bernhard Reutner-Fischer2008-11-021-1/+1
| | | | Closes #5254
* Fix up memset() argument ordering in open_memstream(). PreviouslyPaul Mundt2008-09-211-2/+2
| | | | | | parts of the buffers were not being zeroed out as expected. Reported by Dmytro Gorbunov <dmitro.gorbunov@gmail.com>.
* Fix some locale multibyte tests failures ad below:Carmelo Amoroso2008-09-091-3/+0
| | | | | | | | | | | libc/stdlib/_strtod.c -> tst_wcstod; libc/stdlib/stdlib.c -> tst_mblen, tst_mbtowc, tst_wctomb; libc/stdio/_scanf.c -> tst_swscanf; libc/string/strncmp.c -> tst_wcsncmp; libc/misc/wchar/wchar.c -> tst_mbrlen, tst_mbrtowc, tst_wcswidth. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix problem in vfprintf when assertion are enabled.Carmelo Amoroso2008-09-091-2/+1
| | | | | | | | | | | Here follow the output of my analysis: __stdio_fwrite expects at least 1 bytes. fputs_unlocked(S,F) calls fwrite_unlocked and this calls __stdio_fwrite only if bytes to be written are > 0, otherwise simply returs 0 (that is correct). During the parsing of format spec it could happen that __stdio_fwrite is called passing an empty string and with assertion enabled it will abort. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-2310-30/+30
|
* Remove __PRINTF_INFO_NO_BITFIELD hack, UCLIBC_INTERNAL can be used instead,Denis Vlasenko2008-06-032-4/+0
| | | | | | | | | and it's slightly shorter. Also removes stray macros from public <printf.h> header and uses spaces for comment indentation. No code changes (verified with objdump).
* suppress a few "might be used uninitialized" warnings. No code growth.Denis Vlasenko2008-06-011-2/+2
|
* - Avoid warning about undefined preprocessor token. No obj-code changes.Bernhard Reutner-Fischer2008-05-302-2/+2
|
* - avoid warning about cast from pointer to integer of different sizeBernhard Reutner-Fischer2008-05-231-1/+1
|
* - for non-threaded, non-macro case we were missing __GI_fputc (for e.g. error.c)Bernhard Reutner-Fischer2008-05-231-0/+2
|
* replace "if (p) free(p)" by just "free(p)" - free(NULL) is safe.Denis Vlasenko2008-05-201-3/+1
|
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-1914-25/+25
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* remove "register" from _vf[w]printf_internal declarations tooDenis Vlasenko2008-04-101-2/+2
|
* even more fixes for vda-made breakage in vXXXfprintfDenis Vlasenko2008-04-103-15/+12
| | | | | (pointed out by Peter S.Mazinger)
* fix breakage in old_vfprintf caseDenis Vlasenko2008-04-093-1/+26
|
* restore erroneously removed hidden_def for vdprintfDenis Vlasenko2008-04-091-0/+1
|
* Remove vestigial locking init from sprintf routines.Denis Vlasenko2008-04-093-12/+3
|
* Factor out the core of vprintf() into separate functionDenis Vlasenko2008-04-099-55/+124
| | | | | | | | | | | | vprintf_internal, so that: * vprintf() does locking and __STDIO_STREAM_TRANS_TO_WRITE thing, then calls vprintf_internal * vsnprintf, vdprintf.c, vasprintf.c use vprintf_internal directly This makes sprintf faster (since it doesn't do any locking) and stops it from pulling in fseek in static compile.
* Fix stack overflow in _ppfs_parsespecCarmelo Amoroso2008-02-071-1/+1
|
* patch from Hans-Christian Egtvedt to silence some spurious signed warningsMike Frysinger2008-01-053-10/+10
|
* - dtrtBernhard Reutner-Fischer2007-04-141-2/+4
|
* Paul Brook writes:Mike Frysinger2007-02-081-29/+24
| | | | | | | | | | | | | | I'm seeing a hang in applications that open and close files with a non-threaded uClibc. There is code in fclose() to remove a file handle from _stdio_openlist however it's commented out, allegedly because it is dead. _stdio_openlist is used in several places, including _stdio_term when a program exits. fclose() frees the struct, so I don't see how the code can possibly be redundant. In the __UCLIBC_HAS_THREADS__ && __STDIO_BUFFERS case the file is removed from _stdio_openlist by __STDIO_OPENLIST_DEC_USE. The attached patch fixes this bug be re-enabling the code.
* fix from Atsushi Nemoto for displaying of 64bit typesMike Frysinger2007-01-291-1/+1
|
* fix from Roman Kononov for reading in of 64bit typesMike Frysinger2007-01-291-1/+1
|
* - Trim superfluous trailing whitespace. No obj-code changes.Bernhard Reutner-Fischer2007-01-201-10/+8
|
* - provide a hidden_def for fputc_unlocked that is aliased to __fputc_unlocked.Bernhard Reutner-Fischer2006-12-221-0/+2
| | | | Fixes undefined references to __fputc_unlocked when calling fputc().
* Paul Brook writes:Mike Frysinger2006-12-201-0/+1
| | | | | | | | | | When building an arm-uclinux toolchain withthreading disabled I get: libc/stdio/getchar.c:26: error: 'getchar' aliased to undefined symbol 'getchar_unlocked' It looks like it's missing libc_hidden_def(getchar_unlocked). Patch below fixes this.
* Patch from Bernhard Fischer:Eric Andersen2006-12-152-4/+4
| | | | fix compilation if PUTC_MACRO and/or GETC_MACRO is turned off
* Fix/disable locking when pthreads is disabledEric Andersen2006-12-121-0/+13
|