summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a stupid bug.Manuel Novoa III2002-11-011-0/+1
|
* Reworked setlocale() return values and locale arg processing toManuel Novoa III2002-11-011-89/+166
| | | | | | | 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.
* Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen2002-10-3155-154/+135
| | | | | | | | | | | | | | | 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
* Fix a couple of 'restrict' bugs in mbstowcs and wcstombs.Manuel Novoa III2002-10-291-3/+10
|
* Fix a silly typo for ManuelEric Andersen2002-10-291-1/+1
| | | | -Erik
* Remove my horrible SH hack infavor of this fix for initfini.awk fromEric Andersen2002-10-291-10/+0
| | | | Stefan Allius <allius@atecom.com>, which does a better job.
* Add in a horrible hack that seems necessary for the HitachiEric Andersen2002-10-291-0/+10
| | | | | SH processors to work properly. -Erik
* Fix a problem in vasprintf (reported by vodz a while back) when builtManuel Novoa III2002-10-291-14/+35
| | | | | | 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.
* ANSI/ISO C99 requires assert() to write to stderr. This means thatManuel Novoa III2002-10-281-0/+35
| | | | | | | | 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.
* Allow timezone info to be specified in a file... /etc/TZ. Turned on byManuel Novoa III2002-10-281-3/+132
| | | | | | | | | | | | | | 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.
* Fixup dependsEric Andersen2002-10-251-3/+3
|
* Put it back the way it was. Sigh.Eric Andersen2002-10-251-3/+3
|
* Sigh. Lets not use LD to link, or we lose the INTERP field.Eric Andersen2002-10-251-3/+3
| | | | -Erik
* Doh. Add a missing #include to interp.c. I wonder why it used toEric Andersen2002-10-251-0/+1
| | | | | | work? Perhaps the wrapper bug miles fixed? Regardless this is very much needed. -Erik
* Overwriting the crt1.o link is fineEric Andersen2002-10-251-1/+1
|
* Be nicer to gcc -- add a link for crt1.oEric Andersen2002-10-251-0/+1
|
* When UNIX98PTY_ONLY was false, but Unix 98 ptys were in fact working andEric Andersen2002-10-221-7/+9
| | | | | | | functional, everything would succeed but then we would return a failure due to a silly logic bug. This patch fixes it so things will work correctly regardless of the UNIX98PTY_ONLY setting. -Erik
* This patch, based on a patch from Stefan Allius, lets us pick anEric Andersen2002-10-181-2/+2
| | | | | | appropriate awk implementation at compile time, so we can again compile on Solaris and whatnot. -Erik
* Don't infinitely recurse when trying to grow __malloc_mmb_heap.Miles Bader2002-10-181-18/+19
|
* Fix malloc so it compiles and works when using pthreadsEric Andersen2002-10-172-5/+5
| | | | -Erik
* Use __heap_[un]lock instead of __malloc_[un]lock.Miles Bader2002-10-151-4/+4
|
* Get rid of old malloc lock stuff.Miles Bader2002-10-151-8/+0
|
* Fix locking to not deadlock when __UCLIBC_UCLINUX_BROKEN_MUNMAP__ is defined.Miles Bader2002-10-152-34/+32
|
* Patch from Christian MICHON <christian_michon@yahoo.fr> to reimplementEric Andersen2002-10-141-2/+2
| | | | | | my little initfini.pl script in awk. This eliminates uClibc's compile-time dependancy on perl, and lets us use the much lighter weight awk, which facilitates building uClibc standalone environments.
* It turns out that __thread is now a gcc keyword. We used __thread inEric Andersen2002-10-131-1/+1
| | | | | | | | a few spots in our header files. In this change I do a s/__thread/__thread_id/ so we no longer conflict with newer CVS versions of gcc (such as the patched up gcc 3.2 included with RedHat 3.0). -Erik
* Octal to hexEric Andersen2002-10-092-2/+2
|
* Support O_STREAMINGEric Andersen2002-10-0912-0/+12
|
* * Add support for uClinux's broken munmap, contingent onMiles Bader2002-10-094-29/+264
| | | | | | | | | __UCLIBC_UCLINUX_BROKEN_MUNMAP__ (which is currently not defined anywhere). This makes other cases a tiny bit less efficient too. * Move the malloc lock into the heap structure (locking is still done at the malloc level though, not by the heap functions). * Initialize the malloc heap to contain a tiny initial static free-area so that programs that only do a very little allocation won't ever call mmap.
* Patch from Marshall M. Midden <m4@brecis.com> to fixup crt0 forEric Andersen2002-10-011-14/+12
| | | | mips where I had made a mess
* Patch from Stefan Allius <allius@atecom.com>:Eric Andersen2002-10-011-2/+1
| | | | 'wcschrnul.o' appeares two times in MOBJW2
* Patch from Stefan Allius <allius@atecom.com>:Eric Andersen2002-10-014-8/+8
| | | | | | | | | | | | | | | | | | | ----------------------------------- In extra/Configs/Config.sh I added the INCLUDE_PTHREADS statement and change the default values for BUILD_UCLIBC_LDSO and HAVE_SHARED. ----------------------------------- In extra/scripts/initfini.pl My last patch removes two labels, which migth be used by the .size statements. (Sorry, but I'm a perl beginner) I fixed it. ----------------------------------- In libc/sysdeps/linux/common/initfini.c I fixed two warnings "nested extern declaration of `i_am_not_a_leaf.. ----------------------------------- In libc/sysdeps/linux/sh/__init_brl.c brk.c sbrk.c I fixed some compiler warnings which comes from a wrong inclusion order. -----------------------------------
* This commit contains a patch from Stefan Allius <allius@atecom.com> to changeEric Andersen2002-10-016-107/+185
| | | | | | | how uClibc handles _init and _fini, allowing shared lib constructors and destructors to initialize things in the correct sequence. Stefan ported the SH architecture. I then ported x86, arm, and mips. x86 and arm are working fine, but I don't think I quite got things correct for mips.
* Replace _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__Eric Andersen2002-09-262-5/+7
| | | | -Erik
* A bug fix from Alexey V. Neyman:Eric Andersen2002-09-261-2/+2
| | | | | | | In case of vfork(), the parent was left with __exit_count of -1 and thus tried to find non-NULL value of __exit_function_table[-1].atexit, __exit_function_table[-2].atexit and call this function; of course, it leads to coredump.
* Cosmetic cleanup.Tobias Anderberg2002-09-236-28/+32
|
* * Added clone() system call.Tobias Anderberg2002-09-208-65/+493
| | | | | | | | | | | | * Proper implementation of bits/syscalls.h, no cheating by just including <asm/unistd.h>. * Proper implementation of syscall.S, it no longer contains the __syscall_error, instead it contains code which makes syscall(nr,...) a system call. * Added sysdep.S which contains the code for __syscall_error. * Added some macros to sysdep.h. * Added sys/procfs.h, which is needed when compiling with thread support. * Removed unused syscall-cris.c.
* Removed unused fileTobias Anderberg2002-09-201-4/+0
|
* Add gnu obstack support. I still need to implement the obstack_printfManuel Novoa III2002-09-193-1/+671
| | | | and obstack_vprintf, but at least now the reiserfsprogs build.
* Add SUSv3 function getsubopt.Manuel Novoa III2002-09-192-1/+73
|
* Hide my personal #warning reminders. Add __wcschrnul, rename strchrnulManuel Novoa III2002-09-196-6/+29
| | | | to __strchrnul, and add weak aliases for them.
* Add in clone and make the assembler PIC/msep-data friendly.David McCullough2002-09-171-6/+16
|
* Fixup JMPBUF_UNWINDS so that is will compile if used :-)David McCullough2002-09-171-1/+1
|
* Fix a memory corruption bug.David McCullough2002-09-171-3/+6
| | | | | | With gcc, sizeof on a sized array argument to a function returns 4, not 16 as was expected in this code. This caused inet_ntoa to overwrite whatever came before the buffer in the BSS by up to 12 bytes.
* Use __UCLIBC_HAVE_LFS__ not __USE_LARGEFILE64 to decide ifEric Andersen2002-09-161-2/+3
| | | | | 64 bit interfaces should be used. -Erik
* * Added semi-support for version scripts. If sysdeps/linux/<arch>/libc.mapTobias Anderberg2002-09-161-2/+8
| | | | | exists read it and include it when linking. * Add LIBGCC when linking libc.
* Added cris to ALL_SUBDIRSTobias Anderberg2002-09-161-1/+1
|
* Initial version of the CRIS port.Tobias Anderberg2002-09-1627-0/+1634
|
* Fix stupid typo noticed by John Mullin <john.mullin@homenetcomm.com>Eric Andersen2002-09-161-1/+1
|
* Fix a thinko -- I used the wrong symbol to check for LFS support.Eric Andersen2002-09-141-1/+1
| | | | -Erik
* (__heap_check_failure): New function.Miles Bader2002-09-131-16/+67
| | | | (__heap_check): Add more checks. Use `__heap_check_failure'.