summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Oops. As Pavel Roskin notes, I forgot to conditionally includeEric Andersen2002-11-211-0/+2
| | | | | the __fsetlocking call in libc/unistd/usershell.c. It should be wrapped and only included if __UCLIBC_HAS_THREADS__ is defined.
* Doh! As Stefan Allius points out, I forgot to properly reviewEric Andersen2002-11-211-1/+2
| | | | this change.
* Debugging tweaks.Miles Bader2002-11-212-8/+12
|
* Oops.Eric Andersen2002-11-211-0/+1
|
* Cleanup use of in6addr_loopback and in6addr_anyEric Andersen2002-11-214-20/+36
|
* Patch from Yoshinori Sato to update the h8300 architecture.Eric Andersen2002-11-215-0/+289
|
* Improve malloc debugging support.Miles Bader2002-11-217-46/+186
|
* Rework usershell.c, as the old one was packed full of unhandledEric Andersen2002-11-201-43/+114
| | | | | | failures, returned stack allocated memory, and misbehaved itself in a number of other annoying ways, -Erik
* Implement dynamic atexit handling. Adds a few bytes and a dependancyEric Andersen2002-11-191-28/+68
| | | | | on malloc (via realloc). -Erik
* This draws from an old patch by David Blythe for the now-deadEric Andersen2002-11-156-48/+276
| | | | | | | unified syscall interface. I reworked his old patch considerably and cleaned up his version of bits/syscalls.h with some sneaky macro magic. And I implemented a powerpc correct version of pread/pwrite -Erik
* Cleanup a few structural wierdnessesEric Andersen2002-11-156-23/+27
|
* Stefan Allius writes:Eric Andersen2002-11-153-115/+116
| | | | | | | | | | | I attached a patch, which revise the clone.S and vfork.S: - Use PIC code. - include new file syscall.S, so we can simply make a branch to __syscall_error instead of a PLT/GOT call - call errno_location to store the syscall error (for pthreads) - avoid to use the 'shad' statement on SH2 targets - call fork if vfork isn't available - some cleanups and optimization
* Remove obsolete filesEric Andersen2002-11-152-74/+0
|
* Fix it for real this time.Eric Andersen2002-11-152-8/+13
|
* Doh! I screwed that one all up. Lets try that again...Eric Andersen2002-11-152-8/+16
| | | | -Erik
* Patch from Luc Van Oostenryck to fix a buffer overflowEric Andersen2002-11-151-1/+1
| | | | in getlogin_r
* Stefan Allius writes:Eric Andersen2002-11-153-11/+78
| | | | | | | | | | | | | Hi Erik, I added the FPU support for the setjmp/longjmp stuff. This patch also moves the code from the bsd*.S files to the setjmp.S file, so we can use simple branch instructions instead of referencing over the .GOT/.PLT section. This makes the PIC code much easier, smaller and faster. (The idea comes from the SPARC target) Bye Stefan
* I was an idiot and put _fini into the wrong register. Duh.Eric Andersen2002-11-151-3/+2
| | | | This patch from David Meggy fixes it...
* As released in uClibc 0.9.16, regex was being compiled withoutEric Andersen2002-11-141-2/+2
| | | | | | wide char support, even when the rest of uClibc was. This led to anyone using regex segfaulting... -Erik
* Minor cleanupEric Andersen2002-11-142-8/+11
| | | | -Erik
* Implement sendfile64Eric Andersen2002-11-142-1/+48
| | | | -Erik
* Patch from Stefan Allius for libgcc multilib supportEric Andersen2002-11-081-1/+1
| | | | | | | | | | | | | | | | | | 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. ---------------------------------
* Added some temporary "stubs" for collation.Manuel Novoa III2002-11-083-60/+28
| | | | | | | | 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.
* Add wcwidth and wcswidth, based on Markus Kuhn's wcwidth of 2002-05-08.Manuel Novoa III2002-11-082-1/+254
| | | | | | 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.
* Remove atof from strtod.o...Manuel Novoa III2002-11-071-7/+0
|
* Okay, fix for atof _correctly_...Manuel Novoa III2002-11-071-1/+4
|
* Apparently I forgot to build atof...Manuel Novoa III2002-11-071-1/+1
|
* Fixup function prototype for __uint128_t which fixes the compileEric Andersen2002-11-071-5/+3
| | | | | on powerpc with gcc 3.2. -Erik
* Update soft-float handlingEric Andersen2002-11-064-5/+7
|
* Forgot to change btowc and wctob when I changed the wc<->mb functions yesterday.Manuel Novoa III2002-11-051-9/+25
|
* For now, leave the "Oddly enough, __fsetlocking() is NOT threadsafe."Eric Andersen2002-11-051-0/+2
| | | | comment as an mjn3 only item.
* Fixup handling of disabled optionsEric Andersen2002-11-052-3/+3
|
* A patch from Danny Lepage so that we do not setting on symlinksEric Andersen2002-11-051-2/+2
| | | | | when looking for a device match, and instead keep looking till we find the correct device.
* Patch from Stefan Allius -- export LIBGCCEric Andersen2002-11-051-1/+1
|
* Patch from Stefan Allius. Include CPU_CFLAGS when compilingEric Andersen2002-11-051-1/+1
| | | | initfini
* Add printf wchar support for %lc (%C) and %ls (%S).Manuel Novoa III2002-11-042-29/+140
| | | | | | | | | | | | | 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.
* I dunno why there were align 5, but align 4 is much more sensible.Eric Andersen2002-11-046-6/+6
|
* Kill sysdep.h and fixup the SH asm to not use it.Eric Andersen2002-11-047-114/+48
| | | | -Erik
* Don't use ENTRY(), make the asm explicitEric Andersen2002-11-041-1/+5
| | | | -Erik
* Oops. Fix compilation on arm.Eric Andersen2002-11-041-1/+4
| | | | -Erik
* A patch from Vincent Sanders to fix the arm implementation ofEric Andersen2002-11-033-88/+247
| | | | ioperm() and iopl()
* It was easy enough to respect locale-specific decimal point for printfManuel Novoa III2002-11-031-2/+15
| | | | | floating point output, so at least implement that. But grouping will have to wait for the rewrite of _dtostr.
* Implement locale-specific grouping in printf for base 10 integer conversionsManuel Novoa III2002-11-033-5/+95
| | | | | 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...
* Another update to initfini.awk and initfini.c from Stefan AlliusEric Andersen2002-11-031-0/+19
| | | | | to hopefully address SH wierdness. Now works on other architecture properly as well.
* Properly prefix some symbolsEric Andersen2002-11-034-36/+11
|
* Patch from "Cho, Seong-Myun" <smcho@xecurenexus.com> to limitEric Andersen2002-11-031-1/+3
| | | | things to the lower 16 bits of 'id'.
* Fix a stupid bug.Manuel Novoa III2002-11-011-0/+1
|
* Reworked setlocale() return values and locale arg processing toManuel Novoa III2002-11-011-89/+166
| | | | | | | 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.
* Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen2002-10-3155-154/+135
| | | | | | | | | | | | | | | 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
* Fix a couple of 'restrict' bugs in mbstowcs and wcstombs.Manuel Novoa III2002-10-291-3/+10
|