summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
2003-12-31Add extra checks for sigprocmask and rt_sigprocmask syscalls.Eric Andersen
The rt_sigprocmask syscall has broken error handling in 2.4.x kernels, while the sigprocmask syscall appears to get things right. Regardless we should be extra careful, and add these checks.
2003-12-30Fix the manditory typo in my last minute untested fix.Eric Andersen
-Erik
2003-12-30Make sleep behave itself properly inthe presence of SIGCHLDEric Andersen
2003-12-30Rework malloc. The new default implementation is based on dlmalloc from DougEric Andersen
Lea. It is about 2x faster than the old malloc-930716, and behave itself much better -- it will properly release memory back to the system, and it uses a combination of brk() for small allocations and mmap() for larger allocations. -Erik
2003-12-30Update and restore malloc-simple. Slow as molasses, but triviallyEric Andersen
simple and releases memory immediately when asked to do so. -Erik
2003-12-28Fix a really dumb bug introduced in version 1.4 of this file (a patch for ipv6Eric Andersen
support) which could cause things like EOF and read errors while reading /etc/services to always return a TRY_AGAIN. The perl test suite would alloc a larger buffer and try again until all memory was exhausted. When we get a read error, or EOF, it means we didn't get what we wanted, and so we should return an error. Doing so fixes the failing perl 5.8.2 test. -Erik
2003-12-28Fix whitespaceEric Andersen
2003-12-27Handle the app_fini stuff in exit without requiring atexit().Manuel Novoa III
This avoids pulling in all the malloc/free code for a simple true/false app.
2003-12-27Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III
were including libc-lock.h which had a bunch of weak pragmas. Also, uClibc supplied a number of no-op weak thread functions even though many weren't needed. This combined result was that sometimes the functional versions of thread functions in pthread would not override the weaks in libc. While fixing this, I also prepended double-underscore to all necessary weak thread funcs in uClibc, and removed all unused weaks. I did a test build, but haven't tested this since these changes are a backport from my working tree. I did test the changes there and no longer need to explicitly add -lpthread in the perl build for perl to pass its thread self tests.
2003-12-22oopsEric Andersen
2003-12-22implement the worthless cuserid() function we claim to support.Eric Andersen
This isn't in SuSv3, but is expected by at least some apps such as emacs...
2003-12-22In unistd.h, getpgrp() is redirected to __getpgid(), butEric Andersen
we did not have a __getpgid(). Fix that.
2003-12-17Patch from Paul Mundt <lethal@linux-sh.org>:Eric Andersen
The subject says it all.. optimized memset/memcpy/strcpy, lifted from SuperH's glibc tree.
2003-12-14Fix some dst issues in _time_mktime().Manuel Novoa III
Normalize the tm_isdst value to -1, 0, or 1. If no dst for this timezone, then reset tm_isdst to 0.
2003-12-14Fix a couple of 'declaration after statement' errors.Manuel Novoa III
2003-12-05Paul Mundt <lethal@linux-sh.org> writes:Eric Andersen
This patch adds the libpthread backend bits for sh64. As noted previously, we can't inline things like the testandset() in pt-machine.h as we need to use a completely different ISA / CFLAGS in order for this to work. As a result, this patch is somewhat of a RFC as well to see what people think of the libpthread/linuxthreads/sysdeps Makefile approach, etc. The approach I've taken currently has been to provide a sysdeps/Makefile with a note that TARGET_ARCHs that want build rules can simply add themselves into the list of matching architectures to add to the subdir rule for. This probably isn't the cleanest solution, but it's quite transparent and works quite well.
2003-12-04Fix infinite loop in putgrent (forgotten increment).Manuel Novoa III
2003-12-04Fix arm profiling support, which was accidentally removedEric Andersen
2003-12-04Building of iconv.o was accidently always disabled.Manuel Novoa III
Also, build the iconv app in utils.
2003-12-03Lethal noticed that the generated file gmon-start.S was notEric Andersen
being cleaned up.
2003-12-03Patch from lethal, adding syscall() to the sh64 portEric Andersen
2003-12-03remove some garbageEric Andersen
2003-12-02Add a syscall() implementation using a hacked version of the syscall6 macro.Manuel Novoa III
Untested, but syscall() is needed by busybox for pivot_root at least.
2003-12-02Add function versions of ntohl and friendsEric Andersen
2003-12-02Avoid a potentially undefined operation with a veriable++ in a macroEric Andersen
2003-12-02Put in a dummy reference to main so busybox will link.Manuel Novoa III
2003-11-29Patch by "Bradley D. LaRonde" <brad@ltc.com> for boehm garbage collector.Manuel Novoa III
2003-11-28Another missing mips function, needed by the boehm garbage collector.Manuel Novoa III
2003-11-28Add sysmips(), based on a patch by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.Manuel Novoa III
2003-11-22Remove SAFECFLAGS. It was a workaround for failures in old awk scriptEric Andersen
used to generate the crti.S and crtn.S files. Since we don't use that anymore, keeping the workaround makes no sense. Furthermore, in most cases, SAFECFLAGS was not picking up all the needed flags, causing crti.o and crtn.o to not be built PIC. Which is very bad. Removing SAFECFLAGS and using CFLAGS fixes that as well.
2003-11-20Add missing weak alias for bcmpEric Andersen
2003-11-20Always include locale.h, which was included by libintl.h only whenManuel Novoa III
optimizing.
2003-11-20Don't depend on BSD namingEric Andersen
2003-11-20Add an initial set of arm optimized string functions. TheseEric Andersen
do seem to make noticable speed improvement... -Erik
2003-11-20Lets try that one again...Eric Andersen
2003-11-20Make certain that the arch specific stuff is always compiled lastEric Andersen
2003-11-20Fixup dependancies to ensure arch specific string functionsEric Andersen
will always win
2003-11-19Fix the return value for fputs when passed an empty string.Manuel Novoa III
Indirectly detected by gmp-4.1.2 self-tests and reported by "Peter S. Mazinger" <ps.m@gmx.net>.
2003-11-17If __NR_ftruncate64 isn't defined, do the best we can.Manuel Novoa III
2003-11-16I forgot to update the thread locking in the last dst fix.Manuel Novoa III
2003-11-16Fix a build problem when using 2.2.x kernel headers.Manuel Novoa III
2003-11-12Add support for missing ntp_gettime and ntp_adjtimeEric Andersen
2003-11-11Fix for the last "fix".Manuel Novoa III
2003-11-11Protect some header inclusions.Manuel Novoa III
2003-11-11Stefan Allius writes:Eric Andersen
Hello Erik, to compile the new uClibc release for a SH3 we need some little modifications: First I fix the crt[in].S files, so we can use them for big endian and little endian targets.
2003-11-08Darn. Fix compilation for soft-float, which I inadvertantlyEric Andersen
broke a couple of days ago. :-(
2003-11-08kill mention of the wrapperEric Andersen
2003-11-08For now, disable the iconv utilityEric Andersen
2003-11-08Fix up several errors related to filename length and errno thatEric Andersen
showed up while running the latest LTP testsuite. -Erik
2003-11-07Add clock_gettime() submitted by Justus Pendleton <uc@ryoohki.net>.Manuel Novoa III