summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Sorry. Changed this while fixing the last bug and forgot to change itManuel Novoa III2003-05-231-1/+1
| | | | back. Unfortunately, none of my test cases caught it.
* Fix (hopefully) scanf behavior for nul bytes in the stream when processingManuel Novoa III2003-05-152-7/+23
| | | | | | | %c, %s, and %[ specifiers. Note that scanf is undergoing rewrite so I didn't bother optimizing this. I did run all my regression tests though. Set EOF correctly for fmemopen on readonly streams. I really need to check what glibc behavior is for the various open modes though.
* Sleep was returning the wrong value because:David McCullough2003-05-141-2/+4
| | | | | | | | | * nanosleep returns the remaining time, not the time slept * nanosleep only fills out the remaining time if it returns -1 (ie., the sleep was interrupted) Fix from Paul Dale <pauli@snapgear.com>
* (__libc_open): Fix wacky indentation.Miles Bader2003-05-081-6/+6
|
* setjmp was trashing r12 which is bad and can cause apps to crash if they areDavid McCullough2003-05-011-3/+3
| | | | | using r12. r12 is supposed to be preserved across C function calls. r0-r7 are trashable :-)
* Some small fixups for the h8 support and add the h8s platform support.David McCullough2003-04-293-4/+18
|
* Fixup __libc_open to use varargs and match the prototype.David McCullough2003-04-291-2/+7
| | | | | On the H8 varargs are rather unusual and if you declare a function with varargs, it had better use them or it won't work.
* uClibc 0.9.19 has a bug in globfree(). If the previous call toEric Andersen2003-04-291-2/+2
| | | | | | | | | | | glob(...,pglob) used the GLOB_DOOFFS flag to reserve the first pglob->gl_offs slots of pglob->gl_pathv, globfree(pglob) would attempt to free the objects pointed to by those slots. If those objects were not on the heap, the system would crash. The attached patch fixes this. Norm
* Thierry De Corte notices that when UCLIBC_HAS_FLOAT is disabled, we must alsoEric Andersen2003-04-231-5/+4
| | | | disable drand48, drand48_r, erand48, and erand48_r since they use floats.
* Fix SIGTRAP handling on arm. The defination of struct ucontext,Eric Andersen2003-04-211-8/+7
| | | | | which was copied from glibc, is wrong. So fix it. -Erik
* Patch from Marshall M. Midden:Eric Andersen2003-04-191-33/+39
| | | | | | It turns out that uClibc's syslog.c does not close sockets when doing retries and when it exits due to errors. This patch fixes it.
* Konrad Taro Eisele noticed the sparc struct stat was broken.Eric Andersen2003-04-191-22/+18
| | | | Fix it.
* Patch from Liam Girdwood to fix mips profiling when usingEric Andersen2003-04-161-0/+5
| | | | newer gcc versions.
* (free_to_heap): Unlock the heap before returning in theMiles Bader2003-04-021-2/+5
| | | | __UCLIBC_UCLINUX_BROKEN_MUNMAP__ case. Fix from YYang1@Winbond.com.tw.
* sjhill needs to buy donuts for everyoneEric Andersen2003-03-111-1/+0
|
* Compliance with MIPS ABI and MIPS kernel changes."Steven J. Hill"2003-03-112-17/+2
|
* Patch from Stefan Allius:Eric Andersen2003-03-072-3/+7
| | | | fix a couple of gcc 3.3 compiler warnings in gmon.c
* For now, leave mmap on mips using mmap1, since mmap2 seemsEric Andersen2003-03-061-0/+5
| | | | | to have 'issues' (i.e. it doesn't work 100% properly). -Erik
* Finish off gmon based profiling for powerpcEric Andersen2003-03-063-4/+120
|
* Make profiling on arm workEric Andersen2003-03-062-2/+15
|
* Patch from Stefan Allius to finish off the last required bitsEric Andersen2003-03-063-29/+90
| | | | for gmon profiling support for the SuperH target.
* The vfork system call on powerpc seems to be completelyEric Andersen2003-03-051-3/+9
| | | | broken. Use fork instead, per glibc behavior.
* Default to using fork() for vfork() when no arch specificEric Andersen2003-03-052-1/+9
| | | | implementation of vfork is present.
* Fix compile when profiling is disabledEric Andersen2003-03-041-1/+1
|
* Initial effort at adding profiling support.Eric Andersen2003-03-0353-3/+2660
|
* Remove bogus link_warning. It is meaningless and stupid. While theManuel Novoa III2003-03-031-2/+0
| | | | | | previous committed patch was well-meaning, the #warning it replaced was simply a reminder I accidently left in when implementing strcoll/wcscoll. Besides, strcmp is completely locale invariant.
* Fix the double sub #48, should have been an add :-)David McCullough2003-03-031-1/+1
|
* cut-n-paste strikes againEric Andersen2003-03-021-1/+1
|
* Add missing alias __modify_ldtEric Andersen2003-03-021-0/+1
|
* Patch from Jeffrey Damick:Eric Andersen2003-03-011-0/+2
| | | | | | | | With glibc if you do a res_init() that forces a reread of the nameservers file, but in uClibc the res_init will not force a reread if it has already read the file because then the nameservers value is greater than 0. So res_init must call close_nameservers() before calling open_nameservers().
* Major update for pthreads, based in large part on improvementsEric Andersen2003-02-272-10/+9
| | | | | from glibc 2.3. This should make threads much more efficient. -Erik
* Prefer mmap2 for mips when available. Fix the mmap test.Eric Andersen2003-02-261-0/+5
| | | | -Erik
* Fixup some small issues that show up when large file support is disabledEric Andersen2003-02-242-0/+6
|
* Fix FP handling alignment problems on ARM platforms without an FPU,David McCullough2003-02-232-0/+4
| | | | patch from Vadim Lebedev <vadim@7chips.com>.
* Some stuff I forgot to check in about a month ago...Eric Andersen2003-02-232-27/+39
| | | | -Erik
* Reserve stack space for args we pass to __uClibc_main.Miles Bader2003-02-211-2/+3
|
* Add back in PTRACE_SINGLESTEP.Miles Bader2003-02-201-3/+7
| | | | Use decimal instead of hex to agree with common/sys/ptrace.h.
* Fixup ioctl so we can special case powerpc sillinessEric Andersen2003-02-185-22/+95
|
* Patch from Stefan Allius:Eric Andersen2003-02-171-1/+2
| | | | | In libc/string/wstring I replaced a '#warning ..' statement by the link_warning macro.
* Use a define for the path to /etc/TZDavid McCullough2003-02-171-1/+2
|
* Using -g when doing the initfini compilation breaks the SH4 case prettyDavid McCullough2003-02-171-0/+5
| | | | | badly. I have removed -g for all platforms as I suspect no one wants it for the initfini creation process.
* If floating point was enabled, setjmp would write to memory well past theDavid McCullough2003-02-171-2/+3
| | | | end of the buffer.
* Fixup powerpc syscalls to eliminate warnings with gcc-3.2, and fixEric Andersen2003-02-161-5/+5
| | | | some other minor warnings.
* Add missing ';'s so powerpc will compileEric Andersen2003-02-151-2/+2
|
* Fix a _ton_ of system call user type/kernel type translationEric Andersen2003-02-153-109/+301
| | | | | problems, causing user space to get scrambled hosed up results. -Erik
* Eliminate a needless externEric Andersen2003-02-122-50/+41
|
* We need to have the size of struct dirent equal to the size of struct dirent64Eric Andersen2003-02-103-18/+12
| | | | | | | so when _FILE_OFFSET_BITS=64 (such that we transparently change 32bit into 64 bit interfaces), we will not lose an unsigned char from d_name which silently becomes the d_type field instead. oops. -Erik
* Pass CHILD_STACK argument to system call (it possibly worked before `byMiles Bader2003-02-101-3/+5
| | | | accident', as the function argument is in the same register).
* Fix a warningEric Andersen2003-02-091-52/+49
|
* Fix a compile errorEric Andersen2003-02-091-1/+0
|