summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Joakim Tjernlund writes:Eric Andersen2004-01-273-1/+245
| | | | | | | | | | | | Hi Erik I have had some fun trying to optimize memcpy, memset and memmove for PPC. There are only boot tested, but I don't expect any problems :) Read the comments in powerpc/string.c for more info. Patch is relative to libc/string Jocke
* Oleksandr G. Zhadan writes:Eric Andersen2004-01-241-0/+11
| | | | | | | | | | Hi Eric, The attached diff file includes BUS_ISA fix for kernel since 2.4.23/ Kind regards, Oleks
* Imre Sunyi writes:Eric Andersen2004-01-241-11/+16
| | | | | | | | | | | | | | | | | | | | | Hi Erik I have corrected a bug in uClibc/libc/inet/resolv.c in function __dns_lookup(). Have attaced a txt file with my diffs regarding to uClibc 0.9.26. If two nameservers are included in /etc/resolv.conf and the first one is wrong and the secondary is correct the algorithm never looked up the secondary one. Please review my diff and feel free to submit the patch onto your CVS. If reading manual page resolv.conf(5) under nameserver and how the algorithm should work the previous dns_lookup did not fully followed that. Regards Imre Sunyi
* Sort all the filesEric Andersen2004-01-211-45/+34
|
* Split up syscalls.c, since it had grown to be quite large and ugly.Eric Andersen2004-01-21171-2391/+3118
| | | | -Erik
* Add pollEric Andersen2004-01-211-1/+1
|
* Move poll to its own file, rather than being only half in its own fileEric Andersen2004-01-212-10/+13
|
* Massive formatting cleanup, making it easier to parseEric Andersen2004-01-211-431/+503
|
* Add __data_start needed by boehm garbage collector, in turn needed by libgcj.Manuel Novoa III2004-01-171-0/+4
|
* Prevent runaway asserts, which can happen if there's a problem withManuel Novoa III2004-01-171-9/+15
| | | | stdio or locales.
* s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/gEric Andersen2004-01-1610-32/+32
|
* Link with libfloat if necessary.Manuel Novoa III2004-01-161-1/+1
|
* Include missing errno.h header (as noted by Alan Hourihane).Eric Andersen2004-01-141-3/+5
| | | | | Fix uninitialized pthread mutex used to lock the list of aligned memory blocks.
* Ok.. we need to link with libgcc.a for some archs. I haven't looked atManuel Novoa III2004-01-141-1/+1
| | | | | all cases, but the archs I've looked at do build the needed routines as PIC so we should be ok.
* Add a dummy (always fails) wcsftime. This is needed for the libstdc++ localeManuel Novoa III2004-01-142-0/+36
| | | | implementation to build. Later this month I'll add a functional wcsftime.
* Add another devfs subdir to the list of checked subdirs.Manuel Novoa III2004-01-131-0/+1
|
* Oops... Seems I forgot an else...Manuel Novoa III2004-01-121-0/+1
|
* Implement res_search and res_querydomain based on netbsd code,Eric Andersen2004-01-041-5/+203
| | | | | | but remove support for host aliases (the HOSTALIASES env variable) which looks like a very bad idea. -Erik
* My mistake. We do need some weak pthread_* funcs. But we were previouslyManuel Novoa III2004-01-041-2/+87
| | | | | | | missing one in the glibc abi, and including a number of extras (which I left in commented). Unfortunately, this brings back the perl pthread bug. Fixing the incorrect weaks in libpthread wasn't sufficient to escape the shared loader bug. :-(
* And just like that, clone is now fixed.... Previously theEric Andersen2004-01-031-26/+38
| | | | | error handling code was mostly broken. -Erik
* oopsEric Andersen2004-01-031-6/+0
|
* Minor changesEric Andersen2004-01-031-13/+24
|
* Peter S. Mazinger writes:Eric Andersen2004-01-025-2/+140
| | | | | | | | | | | | | | | | | | | Hello Erik! I have made some cosmetical changes to the files, removed the added SCRT=-fPIC option from building the crt0.S file (but it is a requirement to build them with -fPIC), and changed some comments. I have left the ldso.c patch with PIE_SUPPORT ifdefs, but consider applying it w/o them (see some earlier comment from PaX Team on this issue, as it is considered a bug). To have it work correctly, you'll also need removing COMPLETELY_PIC. One thing is missing: PIE_SUPPORT should be usable only for i386 (for now). Also added the support for propolice protection (that works for me and catches memcpy/strcpy attacks (but needs a special gcc version). Thanks, Peter
* 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
|