summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
2002-11-15This draws from an old patch by David Blythe for the now-deadEric Andersen
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
2002-11-15Cleanup a few structural wierdnessesEric Andersen
2002-11-15Stefan Allius writes:Eric Andersen
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
2002-11-15Remove obsolete filesEric Andersen
2002-11-15Fix it for real this time.Eric Andersen
2002-11-15Doh! I screwed that one all up. Lets try that again...Eric Andersen
-Erik
2002-11-15Patch from Luc Van Oostenryck to fix a buffer overflowEric Andersen
in getlogin_r
2002-11-15Stefan Allius writes:Eric Andersen
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
2002-11-15I was an idiot and put _fini into the wrong register. Duh.Eric Andersen
This patch from David Meggy fixes it...
2002-11-14As released in uClibc 0.9.16, regex was being compiled withoutEric Andersen
wide char support, even when the rest of uClibc was. This led to anyone using regex segfaulting... -Erik
2002-11-14Minor cleanupEric Andersen
-Erik
2002-11-14Implement sendfile64Eric Andersen
-Erik
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