summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
* rohde at soap dot adsl dot dk writes:Eric Andersen2004-01-021-1/+1
| | | | | | | | The macro to do some floating point checks in libc/sysdeps/linux/powerpc/setjmp.S is incorrect. The following should fix it. Same applies to uClibc/libc/sysdeps/linux/powerpc/__longjmp.S Hope there aren't other files I've missed :)
* rohde at soap dot adsl dot dk writes:Eric Andersen2004-01-021-1/+1
| | | | | The macro to do some floating point checks in libc/sysdeps/linux/powerpc/setjmp.S is incorrect. The following should fix it.
* Fix __freadable and __fwritable... were using '~' instead of '!'. (ugh)Manuel Novoa III2004-01-021-10/+13
| | | | | | Fix (hopefully) a potential problem with failed freopen() calls. The fix isn't tested since I've been working on the replacement stdio core code which will go in after the next release.
* Oops... temporarily support the old stdio code.Manuel Novoa III2004-01-021-0/+5
|
* The checking Erik added seems to be unnecessary. Without it, I am notManuel Novoa III2004-01-021-72/+5
| | | | seeing any LTP failures.
* Redo the exec functions to comply with SUSv3.Manuel Novoa III2004-01-028-208/+332
|
* Rewrite popen for SUSv3 compliance.Manuel Novoa III2004-01-021-47/+171
| | | | | | | Added a list of popen()'d to store pids and use waitpid() in pclose(). Loop on waitpid() failure due to EINTR as required. Close parent's popen()'d FILEs in the {v}fork()'d child. Fix failure exit code for failed execve().
* Minor fix from upstream glibc.Manuel Novoa III2004-01-021-4/+8
|
* Kept the same approach, but rewrote the code for the most part.Manuel Novoa III2004-01-021-86/+98
| | | | Fixed some minor issues plus (as I recall) one SUSv3 errno case.
* Fir errno return when the file/path is NULL or points to an empty string.Eric Andersen2003-12-311-6/+6
| | | | -Erik
* Add extra checks for sigprocmask and rt_sigprocmask syscalls.Eric Andersen2003-12-311-4/+34
| | | | | | | 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.
* Fix the manditory typo in my last minute untested fix.Eric Andersen2003-12-301-1/+1
| | | | -Erik
* Make sleep behave itself properly inthe presence of SIGCHLDEric Andersen2003-12-302-11/+8
|
* Rework malloc. The new default implementation is based on dlmalloc from DougEric Andersen2003-12-3018-798/+3133
| | | | | | | 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
* Update and restore malloc-simple. Slow as molasses, but triviallyEric Andersen2003-12-302-0/+233
| | | | | simple and releases memory immediately when asked to do so. -Erik
* Fix a really dumb bug introduced in version 1.4 of this file (a patch for ipv6Eric Andersen2003-12-281-1/+3
| | | | | | | | | 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
* Fix whitespaceEric Andersen2003-12-281-5/+5
|
* Handle the app_fini stuff in exit without requiring atexit().Manuel Novoa III2003-12-272-3/+13
| | | | This avoids pulling in all the malloc/free code for a simple true/false app.
* Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III2003-12-2733-152/+126
| | | | | | | | | | | | | | | | 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.
* oopsEric Andersen2003-12-221-1/+1
|
* implement the worthless cuserid() function we claim to support.Eric Andersen2003-12-221-0/+8
| | | | | This isn't in SuSv3, but is expected by at least some apps such as emacs...
* In unistd.h, getpgrp() is redirected to __getpgid(), butEric Andersen2003-12-221-1/+3
| | | | we did not have a __getpgid(). Fix that.
* Patch from Paul Mundt <lethal@linux-sh.org>:Eric Andersen2003-12-175-1/+431
| | | | | The subject says it all.. optimized memset/memcpy/strcpy, lifted from SuperH's glibc tree.
* Fix some dst issues in _time_mktime().Manuel Novoa III2003-12-141-5/+12
| | | | | Normalize the tm_isdst value to -1, 0, or 1. If no dst for this timezone, then reset tm_isdst to 0.
* Fix a couple of 'declaration after statement' errors.Manuel Novoa III2003-12-142-3/+2
|
* Paul Mundt <lethal@linux-sh.org> writes:Eric Andersen2003-12-051-0/+96
| | | | | | | | | | | | | 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.
* Fix infinite loop in putgrent (forgotten increment).Manuel Novoa III2003-12-041-0/+1
|
* Fix arm profiling support, which was accidentally removedEric Andersen2003-12-041-0/+6
|
* Building of iconv.o was accidently always disabled.Manuel Novoa III2003-12-041-8/+4
| | | | Also, build the iconv app in utils.
* Lethal noticed that the generated file gmon-start.S was notEric Andersen2003-12-034-0/+8
| | | | being cleaned up.
* Patch from lethal, adding syscall() to the sh64 portEric Andersen2003-12-032-1/+25
|
* remove some garbageEric Andersen2003-12-031-1/+0
|
* Add a syscall() implementation using a hacked version of the syscall6 macro.Manuel Novoa III2003-12-022-1/+26
| | | | Untested, but syscall() is needed by busybox for pivot_root at least.
* Add function versions of ntohl and friendsEric Andersen2003-12-022-1/+68
|
* Avoid a potentially undefined operation with a veriable++ in a macroEric Andersen2003-12-021-2/+2
|
* Put in a dummy reference to main so busybox will link.Manuel Novoa III2003-12-021-0/+6
|
* Patch by "Bradley D. LaRonde" <brad@ltc.com> for boehm garbage collector.Manuel Novoa III2003-11-291-0/+3
|
* Another missing mips function, needed by the boehm garbage collector.Manuel Novoa III2003-11-282-1/+32
|
* Add sysmips(), based on a patch by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.Manuel Novoa III2003-11-283-2/+7
|
* Remove SAFECFLAGS. It was a workaround for failures in old awk scriptEric Andersen2003-11-2215-116/+33
| | | | | | | | | | 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.
* Add missing weak alias for bcmpEric Andersen2003-11-201-0/+4
|
* Always include locale.h, which was included by libintl.h only whenManuel Novoa III2003-11-201-0/+2
| | | | optimizing.
* Don't depend on BSD namingEric Andersen2003-11-201-12/+12
|
* Add an initial set of arm optimized string functions. TheseEric Andersen2003-11-2012-1/+1117
| | | | | do seem to make noticable speed improvement... -Erik
* Lets try that one again...Eric Andersen2003-11-201-8/+6
|
* Make certain that the arch specific stuff is always compiled lastEric Andersen2003-11-201-4/+7
|
* Fixup dependancies to ensure arch specific string functionsEric Andersen2003-11-201-3/+3
| | | | will always win
* Fix the return value for fputs when passed an empty string.Manuel Novoa III2003-11-191-1/+4
| | | | | Indirectly detected by gmp-4.1.2 self-tests and reported by "Peter S. Mazinger" <ps.m@gmx.net>.
* If __NR_ftruncate64 isn't defined, do the best we can.Manuel Novoa III2003-11-171-5/+19
|
* I forgot to update the thread locking in the last dst fix.Manuel Novoa III2003-11-161-2/+4
|