Age | Commit message (Collapse) | Author | |
---|---|---|---|
2002-08-06 | Changed 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-06 | Unify calloc (its the same thing regardless of the underlying | Eric 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-06 | Just in case, crash if somehow `exit' returns anyways | Eric Andersen | |
-Erik | |||
2002-08-05 | remove BUILDTIME since it is not used | Eric Andersen | |
2002-08-03 | A couple of little cleanups I forgot to check in. | Manuel Novoa III | |
2002-08-03 | When 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-01 | Use 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-01 | Joseph Chiu <josephc@idealab.com> found an off-by-one bug. oops! | Eric Andersen | |
2002-07-31 | In the allocate-and-copy case, don't include the malloc header in our | Miles Bader | |
size calculations. | |||
2002-07-31 | Sigh. A bit more cleanup. | Eric Andersen | |
2002-07-31 | Update debugging printfs. | Miles Bader | |
2002-07-31 | Per discussion on the mailing list, simply vfork -> fork mapping to only apply | Eric Andersen | |
iff we do not have vfork available, which is simpler and more reasonable. -Erik | |||
2002-07-31 | More i960 support | Eric Andersen | |
2002-07-31 | Patch from Martin Proulx <mproulx@okiok.com> to fix i960 | Eric Andersen | |
create_module() support. | |||
2002-07-31 | Patch from Alexander Pevzner <pzz@pzz.msk.ru> to fixup things when invoked as | Eric Andersen | |
the C++ compiler to to automagically add include/g++ into the include search path, and automagically add -lstdc++ and -lm into the set of automatically linked libraries. | |||
2002-07-31 | You fool foolish. Goodbye level 2. | Eric Andersen | |
2002-07-31 | Always build utils by default | Eric Andersen | |
-Erik | |||
2002-07-31 | Account for MALLOC_HEADER_SIZE when calculating new size. | Miles Bader | |
2002-07-31 | Use MALLOC_HEADER_SIZE. | Miles Bader | |
2002-07-31 | (MALLOC_HEADER_SIZE): New macro. | Miles Bader | |
(MALLOC_BASE, MALLOC_ADDR): Use it. | |||
2002-07-30 | Make sure NEW_SIZE is a multiple of HEAP_GRANULARITY. | Miles Bader | |
Calculate amount freed when shrinking correctly. | |||
2002-07-30 | Update the size of grown/shrunk allocations. | Miles Bader | |
MALLOC_SET_SIZE now takes the user-address rather than the base-address. | |||
2002-07-30 | MALLOC_SET_SIZE now takes the user-address rather than the base-address. | Miles Bader | |
2002-07-30 | Define MALLOC_SET_SIZE to take the user-address rather than the base-address. | Miles Bader | |
2002-07-30 | Implement shrinking. | Miles Bader | |
Fix bug when growing an allocation. Use new malloc header macros. | |||
2002-07-30 | Use new malloc header macros. | Miles Bader | |
2002-07-30 | Add macros to abstract the malloc header format a bit. | Miles Bader | |
2002-07-27 | Avoid errors in case some loon has explicitly included | Eric Andersen | |
linux/kernel.h (even though doing so is very dumb). -Erik | |||
2002-07-27 | Oops. I accidentally omitted the actual mknod() function. | Eric Andersen | |
-Erik | |||
2002-07-26 | Ok, I get it. sjhill kept adding the 'find' command since | Eric Andersen | |
include/sgidefs.h wasn't getting scrubbed. Fix it so this symlink gets properly scrubbed, even for mipsel. -Erik | |||
2002-07-26 | Kill ill advised find command that was not doing anything | Eric Andersen | |
productive, but did annoying things instead. -Erik | |||
2002-07-26 | The __set_errno macro _must_ match that defined in include/bits/errno.h. We | Eric Andersen | |
can't tack in the return -1 since then when people include errno.h, the return -1 mysteriously vanishes... Setting the __set_errno back and restoring the 'return -1;' calls to each _syscall[0-n] macro makes mips syscalls work again. -Erik | |||
2002-07-25 | Addition to 'distclean' for little endian MIPS. | "Steven J. Hill" | |
2002-07-25 | ldso specific syscalls and userspace syscalls all in one file now. | "Steven J. Hill" | |
2002-07-25 | Cleanup from Neal Crook fixing some formatting and eliminating | Eric Andersen | |
some "sh: cd: ./lib: No such file or directory" errors. | |||
2002-07-25 | Kill cruft. Build ldd for the host system by default. | Eric Andersen | |
-Erik | |||
2002-07-25 | Implement syscall() for arm | Eric Andersen | |
-Erik | |||
2002-07-25 | Size tweaks. | Miles Bader | |
2002-07-25 | Miscellaneous tidying-up. | Miles Bader | |
2002-07-25 | Take advantage of the new syscall stuff on x86 and arm to kill | Eric Andersen | |
the ldso specific syscalls and use the generic ones instead. -Erik | |||
2002-07-25 | Redo the locking, so that it may actually work. Now locking is done at | Miles Bader | |
the malloc/free level, not within the heap abstraction, and there's a separate lock to control sbrk access. Also, get rid of the separate `unmap_free_area' function in free.c, and just put the code in the `free' function directly, which saves a bunch of space (even compared to using an inline function) for some reason. | |||
2002-07-24 | Add support for people calling syscall() | Eric Andersen | |
-Erik | |||
2002-07-24 | Remove source files that, well, no longer exist :). | "Steven J. Hill" | |
2002-07-24 | This rule is only necessary for little endian MIPS. | "Steven J. Hill" | |
2002-07-24 | Factor out some common code sequences into inline functions. | Miles Bader | |
2002-07-24 | Misc small cleanups. | Miles Bader | |
2002-07-24 | Remove, since it's entirely incorrect | Miles Bader | |
2002-07-24 | (__ASMNAME): Use C_SYMBOL_PREFIX. | Miles Bader | |
(__ASMNAME2): Macro removed. |