summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
2002-08-12Revert commit by davidm to printf.c that initialized conv_numManuel Novoa III
needlessly. To do so increases the generated code size with bcc. Eliminate duplicate define warnings in wstring.c. Fix potentially broken preprocessor comparisons. The preprocessor converts integers to maximal signed type, so inequality comparisons involving UINTMAX_MAX, ULLONG_MAX, and (if no long long) ULONG_MAX were potentially broken.
2002-08-12Geez I'm an idiot some times. I shouldn't code when I'm exhausted.Eric Andersen
I _totally_ screwed up the locking on exit and atexit such that it didn't do any good at all. -Erik
2002-08-11Ugh. Make uClibc cross compile with gcc 2.95.x and threads. I wonderEric Andersen
if this is serious enough to warrent 0.9.14? -Erik
2002-08-09Add missing thread-safe locking.Eric Andersen
-Erik
2002-08-09Add in __uClibc_syscallEric Andersen
2002-08-09Initial piece of unified syscall support from Brecis CommunicationsEric Andersen
2002-08-09New and improved fork for mips, thanks to the fine folksEric Andersen
at Brecis Communications.
2002-08-09Fix a number of compile time warnings so that uClibc will build with -Werror ↵David McCullough
using a 3.0.4 version of the sh-linux-gcc compiler.
2002-08-09pread and pwrite were broken in several ways:David McCullough
* pwrite was using the write system call. * SYSCALL_INLINE was only defined for pread and reused by pwrite meaning pwrite did a pread :-). * The kernel pread/pwrite interfaces always take a 64bit value. So the libc versions must do the LONG_LONG_PAIR stuff otherwise the pread/pwrite calls will not work. These guys are working now for SH at least (and I can format my DiskOnChip again ;-)
2002-08-09At some stage I was getting conflicts on the SH platform withDavid McCullough
the two i_am_not_a_leaf functions, changing the name of one is harmless and fixed the problem at the time. Not entirely sure it's still required.
2002-08-09Changes so that this file builds if we are not using threads.David McCullough
2002-08-09Be more path independentEric Andersen
2002-08-09Doh! I broke it. oops. Patch from Stefan Allius to fix it.Eric Andersen
2002-08-09Cleanup error returns to avoid warningsEric Andersen
-Erik
2002-08-08Oops. missed a spot.Eric Andersen
-Erik
2002-08-08Shuffle things around a bit. Looks a little cleaner.Eric Andersen
-Erik
2002-08-08I reworked syscalls.h to match how I'm doing other arches. Stefan Allius andEric Andersen
Edie C. Dost has some concerns about the perl script used to general crti.o and crtn.o and added their own versions. These versions will win since they are built last,
2002-08-08Fix a silly bug with using fstat64 instead of just fstat. NoEric Andersen
reason for 64bit stuff just to check perms. -Erik
2002-08-08Disable unused unifed stuffEric Andersen
-Erik
2002-08-08Fix lockingEric Andersen
-Erik
2002-08-08Fix lockingEric Andersen
2002-08-08Cleanup warnings and fix prototypesEric Andersen
-Erik
2002-08-08Add missing include fileEric Andersen
2002-08-08Cleanup some silly warningsEric Andersen
2002-08-08Avoid bad things happening on macro expansion...Eric Andersen
-Erik
2002-08-07Add getrpcent.c to default rpc buildEric Andersen
2002-08-07Remove some noiseEric Andersen
2002-08-07Changed my mind. Keep this separate.Eric Andersen
-Erik
2002-08-07Rewrite getenvEric Andersen
2002-08-07rework getopt. no read need to split this one up sinceEric Andersen
the parts are so tightly coupled.
2002-08-07Apply integer overflow security fix for "CERT Advisory CA-2002-25 IntegerEric Andersen
Overflow In XDR Library" http://www.cert.org/advisories/CA-2002-25.html Patch from Solar Designer <solar@openwall.com>.
2002-08-07Per suggestion from Miles Bader, move calloc.c to libc/stdlib.Eric Andersen
Also, Manuel notices that I forgot to check for when nmemb=0, which would result in a segfault, so fix that case as well. -Erik
2002-08-06Fixup the last missing pieces of thread lockingEric Andersen
-Erik
2002-08-06Rework RPC code once again. By default, only enable theEric Andersen
stuff needed for NFS mounts, rsh, and similar. -Erik
2002-08-06Changed fflush() behavior to no-op for r/w streams in read-mode.Manuel Novoa III
This falls under undefined behavior wrt ANSI/ISO C99, but SUSv3 seems to treat it as a no-op and it occurs in some apps. Fixed a problem with _stdio_fwrite() not checking for underlying write() failures. Fixed both _stdio_fwrite() and _stdio_fread() to make sure that the putc and getc macros were disabled if the stream was in and error state. The above changes should take care of a problem initially reported by "Steven J. Hill" <sjhill@realitydiluted.com>.
2002-08-06Unify calloc (its the same thing regardless of the underlyingEric Andersen
malloc implementation). Fix problem reported to bugtraq about problems with integer overflow that can occur during the computation of the memory region size by calloc (and similar functions) which could result in a subsequent buffer overflow. -Erik
2002-08-06Just in case, crash if somehow `exit' returns anywaysEric Andersen
-Erik
2002-08-03A couple of little cleanups I forgot to check in.Manuel Novoa III
2002-08-03When DODEBUG and HAS_WCHAR were enabled and HAS_LOCALE was disabled,Eric Andersen
wchar.c wouldn't compile: wchar.c: In function `__mbsnrtowcs': wchar.c:631: `__ctype_encoding_7_bit' undeclared (first use in this function) This fixes it by keeping the locale specific asserts hidden when not relevant. -Erik
2002-08-01Use MALLOC_REALLOC_MIN_FREE_SIZE.Miles Bader
2002-08-01(MALLOC_REALLOC_MIN_FREE_SIZE): New macro.Miles Bader
Enable debugging if MALLOC_DEBUGGING is defined.
2002-08-01(HEAP_MIN_SIZE): New macro.Miles Bader
(HEAP_MIN_FREE_AREA_SIZE): Increase size. Enable debugging if HEAP_DEBUGGING is defined.
2002-08-01Joseph Chiu <josephc@idealab.com> found an off-by-one bug. oops!Eric Andersen
2002-07-31In the allocate-and-copy case, don't include the malloc header in ourMiles Bader
size calculations.
2002-07-31Update debugging printfs.Miles Bader
2002-07-31Per discussion on the mailing list, simply vfork -> fork mapping to only applyEric Andersen
iff we do not have vfork available, which is simpler and more reasonable. -Erik
2002-07-31Patch from Martin Proulx <mproulx@okiok.com> to fix i960Eric Andersen
create_module() support.
2002-07-31Account for MALLOC_HEADER_SIZE when calculating new size.Miles Bader
2002-07-31Use MALLOC_HEADER_SIZE.Miles Bader
2002-07-31(MALLOC_HEADER_SIZE): New macro.Miles Bader
(MALLOC_BASE, MALLOC_ADDR): Use it.