summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
2002-11-08Patch from Stefan Allius for libgcc multilib supportEric Andersen
this is the last patch, we need to make the support of multitarget libgcc complete. --------------------------------- In ldso/ldso/Makefile I added the CPU_LDFLAGS-y to the LDFLAGS --------------------------------- In libc/Makefile I set the LDFLAGS for the script get-needed-objects.sh with CPU_LDFLAGS-y --------------------------------- In extra/scripts/get-needed-object.sh we now use the LIBGCC from Rules.mak and call LD with LDFLAGS (==CPU_LDFLAGS-y). Addtionally I grep the NM output, to fix the unresolved external __GLOBAL_OFFSET_TABLE__ on SuperH targets. ---------------------------------
2002-11-08Added some temporary "stubs" for collation.Manuel Novoa III
strcoll is an alias for strcmp. strxfrm is an alias for strlcpy. wcscoll is an alias for wcscmp. wcsxfrm is implemented as a wchar version of strlcpy. Real locale-dependent implementations are coming soon.
2002-11-08Add wcwidth and wcswidth, based on Markus Kuhn's wcwidth of 2002-05-08.Manuel Novoa III
Added some size/speed optimizations and integrated it into my locale framework. Minimally tested at the moment, but the stub C-locale version (which most people would probably be using) should be fine.
2002-11-07Remove atof from strtod.o...Manuel Novoa III
2002-11-07Okay, fix for atof _correctly_...Manuel Novoa III
2002-11-07Apparently I forgot to build atof...Manuel Novoa III
2002-11-07Fixup function prototype for __uint128_t which fixes the compileEric Andersen
on powerpc with gcc 3.2. -Erik
2002-11-06Update soft-float handlingEric Andersen
2002-11-05Forgot to change btowc and wctob when I changed the wc<->mb functions yesterday.Manuel Novoa III
2002-11-05For now, leave the "Oddly enough, __fsetlocking() is NOT threadsafe."Eric Andersen
comment as an mjn3 only item.
2002-11-05Fixup handling of disabled optionsEric Andersen
2002-11-05A patch from Danny Lepage so that we do not setting on symlinksEric Andersen
when looking for a device match, and instead keep looking till we find the correct device.
2002-11-05Patch from Stefan Allius -- export LIBGCCEric Andersen
2002-11-05Patch from Stefan Allius. Include CPU_CFLAGS when compilingEric Andersen
initfini
2002-11-04Add printf wchar support for %lc (%C) and %ls (%S).Manuel Novoa III
Require printf format strings to be valid multibyte strings beginning and ending in their initial shift state, as per the stds. Fixed a bug in _wchar_wcsntoutf8s(). Don't store wcs position if dst is NULL. Also, introduce an awful hack into _wchar_wcsntoutf8s() and wcsrtombs() in order to support %ls in printf. See comments below for details. Change behaviour of wc<->mb functions when in the C locale. Now they do a 1-1 map for the range 0x80-UCHAR_MAX. This is for backwards compatibility and consistency with the stds requirements that a printf format string by a valid multibyte string beginning and ending in it's initial shift state.
2002-11-04I dunno why there were align 5, but align 4 is much more sensible.Eric Andersen
2002-11-04Kill sysdep.h and fixup the SH asm to not use it.Eric Andersen
-Erik
2002-11-04Don't use ENTRY(), make the asm explicitEric Andersen
-Erik
2002-11-04Oops. Fix compilation on arm.Eric Andersen
-Erik
2002-11-03A patch from Vincent Sanders to fix the arm implementation ofEric Andersen
ioperm() and iopl()
2002-11-03It was easy enough to respect locale-specific decimal point for printfManuel Novoa III
floating point output, so at least implement that. But grouping will have to wait for the rewrite of _dtostr.
2002-11-03Implement locale-specific grouping in printf for base 10 integer conversionsManuel Novoa III
when the grouping flag "'" is specified. Grouping for floating point values may wait until I do a rewrite of the floating pt to string code...
2002-11-03Another update to initfini.awk and initfini.c from Stefan AlliusEric Andersen
to hopefully address SH wierdness. Now works on other architecture properly as well.
2002-11-03Properly prefix some symbolsEric Andersen
2002-11-03Patch from "Cho, Seong-Myun" <smcho@xecurenexus.com> to limitEric Andersen
things to the lower 16 bits of 'id'.
2002-11-01Fix a stupid bug.Manuel Novoa III
2002-11-01Reworked setlocale() return values and locale arg processing toManuel Novoa III
be more like glibc. Applications expecting to be able to query locale settings should now work... at the cost of almost doubling the size of the setlocale object code. Fixed a bug in the internal fixed-size-string locale specifier code.
2002-10-31Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen
been working on a new config system on and off for about 6 months now, but I've never been fully satisfied. Well, I'm finally am happy with the new config system, so here it is. This completely removes the old uClibc configuration system, and replaces it with an entirely new system based on LinuxKernelConf, from http://www.xs4all.nl/~zippel/lc/ As it turns out, Linus has just merged LinuxKernelConf into Linux 2.5.45, so it looks like I made the right choice. I have thus far updated only x86. I'll be updating the other architectures shortly. -Erik
2002-10-29Fix a couple of 'restrict' bugs in mbstowcs and wcstombs.Manuel Novoa III
2002-10-29Fix a silly typo for ManuelEric Andersen
-Erik
2002-10-29Remove my horrible SH hack infavor of this fix for initfini.awk fromEric Andersen
Stefan Allius <allius@atecom.com>, which does a better job.
2002-10-29Add in a horrible hack that seems necessary for the HitachiEric Andersen
SH processors to work properly. -Erik
2002-10-29Fix a problem in vasprintf (reported by vodz a while back) when builtManuel Novoa III
without custom stream support. In that case, it is necessary to do a va_copy. Note: The affected code is not built in the stock config. Also, make sure each va_copy has a matching va_end, as required by C99.
2002-10-28ANSI/ISO C99 requires assert() to write to stderr. This means thatManuel Novoa III
writing to STDERR_FILENO is insufficient, as the user could freopen stderr. It is also insufficient to output to fileno(stderr) since this would fail in the custom stream case. I didn't remove the old code though, as it doesn't use stdio stream functionality and is useful in debugging the stdio code.
2002-10-28Allow timezone info to be specified in a file... /etc/TZ. Turned on byManuel Novoa III
default for now. From the comments... * Defining __TIME_TZ_FILE causes tzset() to attempt to read the TZ value * from the file /etc/TZ if the TZ env variable isn't set. The file contents * must be the intended value of TZ, followed by a newline. No other chars, * spacing, etc is allowed. As an example, an easy way for me to init * /etc/TZ appropriately would be: echo CST6CDT > /etc/TZ Also optimized timezone setting when the timezone string hasn't changed, as well as fixed a minor buglet wrt SUSv3-allowed chars in TZ std and dst fields.
2002-10-25Fixup dependsEric Andersen
2002-10-25Put it back the way it was. Sigh.Eric Andersen
2002-10-25Sigh. Lets not use LD to link, or we lose the INTERP field.Eric Andersen
-Erik
2002-10-25Doh. Add a missing #include to interp.c. I wonder why it used toEric Andersen
work? Perhaps the wrapper bug miles fixed? Regardless this is very much needed. -Erik
2002-10-25Overwriting the crt1.o link is fineEric Andersen
2002-10-25Be nicer to gcc -- add a link for crt1.oEric Andersen
2002-10-22When UNIX98PTY_ONLY was false, but Unix 98 ptys were in fact working andEric Andersen
functional, everything would succeed but then we would return a failure due to a silly logic bug. This patch fixes it so things will work correctly regardless of the UNIX98PTY_ONLY setting. -Erik
2002-10-18This patch, based on a patch from Stefan Allius, lets us pick anEric Andersen
appropriate awk implementation at compile time, so we can again compile on Solaris and whatnot. -Erik
2002-10-18Don't infinitely recurse when trying to grow __malloc_mmb_heap.Miles Bader
2002-10-17Fix malloc so it compiles and works when using pthreadsEric Andersen
-Erik
2002-10-15Use __heap_[un]lock instead of __malloc_[un]lock.Miles Bader
2002-10-15Get rid of old malloc lock stuff.Miles Bader
2002-10-15Fix locking to not deadlock when __UCLIBC_UCLINUX_BROKEN_MUNMAP__ is defined.Miles Bader
2002-10-14Patch from Christian MICHON <christian_michon@yahoo.fr> to reimplementEric Andersen
my little initfini.pl script in awk. This eliminates uClibc's compile-time dependancy on perl, and lets us use the much lighter weight awk, which facilitates building uClibc standalone environments.
2002-10-13It turns out that __thread is now a gcc keyword. We used __thread inEric Andersen
a few spots in our header files. In this change I do a s/__thread/__thread_id/ so we no longer conflict with newer CVS versions of gcc (such as the patched up gcc 3.2 included with RedHat 3.0). -Erik