Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | abort on errors by default. workaround so running out of memory isn't | tedu | 2003-10-15 | 1 | -3/+3 | |
| | | | | | actually an error, A still applies full effect. suggested by phk. ok deraadt@ tdeval@ | |||||
* | two minor fixes. set errno on recursive calls. ENOMEM suggested by marc@. | tedu | 2003-10-02 | 1 | -4/+7 | |
| | | | | | lock before setting malloc_func, not after. ok cloder@ deraadt@ | |||||
* | full stop. reverse course. remove all periods, so as to be aligned | tedu | 2003-09-30 | 1 | -40/+40 | |
| | | | | with error messages elsewhere. requested ok deraadt@ henning@ | |||||
* | remove register. end all sentences with periods. | tedu | 2003-09-27 | 1 | -16/+16 | |
| | | | | ok deraadt@ henning@ millert@ | |||||
* | ansify function arguments | jfb | 2003-08-04 | 1 | -34/+16 | |
| | | | | ok tdeval@ | |||||
* | - just warn in case of mmap/brk failure | tdeval | 2003-07-19 | 1 | -5/+5 | |
| | | | | | | - extend_pgdir and malloc_make_chunks return int, not void* ok tedu@ | |||||
* | Fix two cases where malloc() returns NULL but does not set errno to ENOMEM. | otto | 2003-07-13 | 1 | -2/+5 | |
| | | | | ok tdeval@ henning@ millert@ | |||||
* | Unbreak 64-bit archs... | tdeval | 2003-05-14 | 1 | -2/+2 | |
| | ||||||
* | Pointer cleaning. ok ian@, tedu@, krw@ | tdeval | 2003-05-14 | 1 | -66/+67 | |
| | ||||||
* | Add sanity check to prevent int oflow for very large allocations. | millert | 2003-01-14 | 1 | -3/+11 | |
| | | | | | Also fix a signed vs. unsigned issue while I am at it. Found by Jim Geovedi. OK deraadt@ | |||||
* | Honour malloc_junk ('J') with realloc(3), and fix page_dir shrink update. | tdeval | 2002-11-27 | 1 | -6/+11 | |
| | ||||||
* | Warn if atexit(3) fails. Change some tabs to spaces. Use | cloder | 2002-11-25 | 1 | -5/+5 | |
| | | | | | | STDERR_FILENO instead of 2. OK millert@ | |||||
* | thread safe libc -- 2nd try. OK miod@, millert@ | marc | 2002-11-05 | 1 | -44/+13 | |
| | | | | Thanks to miod@ for m68k and vax fixes | |||||
* | back out previous patch.. there are still some vax/m68k issues | marc | 2002-11-03 | 1 | -13/+44 | |
| | ||||||
* | libc changes for thread safety. Tested on: | marc | 2002-11-03 | 1 | -44/+13 | |
| | | | | | | | alpha (millert@), i386 (marc@), m68k (millert@ and miod@), powerpc (drahn@ and dhartmei@), sparc (millert@ and marc@), sparc64 (marc@), and vax (millert@ and miod@). Thanks to millert@, miod@, and mickey@ for fixes along the way. | |||||
* | unsigned vs unsigned int | deraadt | 2002-05-27 | 1 | -3/+3 | |
| | ||||||
* | Part one of userland __P removal. Done with a simple regexp with some minor ↵ | millert | 2002-02-16 | 1 | -3/+3 | |
| | | | | hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | |||||
* | THREAD_UNLOCK() on error before returning; millert@ ok. | fgsch | 2002-01-23 | 1 | -1/+3 | |
| | ||||||
* | correct an alignment mis-conception for malloc(0) returned regions. | tdeval | 2001-12-05 | 1 | -14/+25 | |
| | | | | OK deraadt@ | |||||
* | remove dangling spaces and tabs | mickey | 2001-11-01 | 1 | -16/+16 | |
| | ||||||
* | mprotect allocations sized at 0 bytes. This will cause a fault for access | tdeval | 2001-10-30 | 1 | -36/+47 | |
| | | | | | to such, permitting them to be discovered, instead of exploited as the ssh crc insertion detector was. Idea by theo, written by tdeval. | |||||
* | -1 -> MAP_FAILED | art | 2001-05-11 | 1 | -3/+3 | |
| | ||||||
* | Use madvise(MADV_FREE) to allow the 'h' option. | art | 2001-05-10 | 1 | -4/+4 | |
| | | | | (the code was already there, just not enabled). | |||||
* | missing THREAD_UNLOCK; netch@segfault.kiev.ua | deraadt | 2000-04-10 | 1 | -1/+2 | |
| | ||||||
* | typo fix; halogen@nol.net | deraadt | 2000-03-01 | 1 | -2/+2 | |
| | ||||||
* | calloc() needs to be separate from malloc in case a user wants to have | millert | 1999-11-10 | 1 | -25/+1 | |
| | | | | their own malloc() implementation. | |||||
* | Move calloc() into malloc.c and only zero out the area if malloc() | millert | 1999-11-09 | 1 | -1/+25 | |
| | | | | | | didn't do so for us. By default, malloc() zeros out the space it allocates but the programmer cannot rely on this as it is implementation- specific (and configurable via /etc/malloc.conf) | |||||
* | use writev() where possible | deraadt | 1999-09-16 | 1 | -12/+29 | |
| | ||||||
* | wrong ret type for write define (millert@) | d | 1999-02-03 | 1 | -2/+2 | |
| | ||||||
* | malloc can't use write() if it fails very early, so use the unwrapped ↵ | d | 1999-02-01 | 1 | -1/+10 | |
| | | | | syscall _thread_sys_write() if we are threaded | |||||
* | Add thread-safety to libc, so that libc_r will build (on i386 at least). | d | 1998-11-20 | 1 | -9/+21 | |
| | | | | | | | | | | | | | All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO | |||||
* | Don't enumerate every arch in the #if since all OpenBSD platforms use the ↵ | millert | 1998-08-06 | 1 | -8/+4 | |
| | | | | same values for malloc_pageshift and malloc_minsize except for sparc | |||||
* | Oh fun, mucking about with files used on all archs. | rahnds | 1998-06-28 | 1 | -2/+2 | |
| | | | | | | | | | This is one of many places in the source that have #if defined("list all architectures") Is there some possible way to eliminate, reduce these or at least have a file that describes all occurrances so that when a new port is done this could be addressed. like the recent hppa port, does it need to take a look at this???? | |||||
* | make mmap() return void *, add MAP_FAILED | deraadt | 1998-01-02 | 1 | -4/+4 | |
| | ||||||
* | Change realloc(foo,0) to behave like malloc(0). Both now return a pointer | pefo | 1997-08-23 | 1 | -4/+1 | |
| | | | | | to an object of size zero. This will allow testing on reallocs return value to determine if the operation was successful or not. | |||||
* | malloc_init() should try to not modify errno | deraadt | 1997-08-22 | 1 | -2/+3 | |
| | ||||||
* | Use MALLOC_EXTRA_SANITY consistently (EXTRA_SANITY was used in many places) | millert | 1997-07-02 | 1 | -15/+16 | |
| | | | | sizeof *pt -> sizeof *px (point to same type of struct but looked wrong). | |||||
* | Make it possible to not output warnings (errors causing aborts are always | tholo | 1997-05-31 | 1 | -1/+8 | |
| | | | | output). | |||||
* | Add x/X option to behave like X11 xmalloc; from FreeBSD | tholo | 1997-05-31 | 1 | -31/+71 | |
| | | | | Reduce diffs wrt. FreeBSD some | |||||
* | Be more careful with mixing types | tholo | 1997-04-30 | 1 | -6/+5 | |
| | ||||||
* | Check for overflow; from FreeBSD | tholo | 1997-04-05 | 1 | -2/+4 | |
| | ||||||
* | is we were set[ug]id an unitialized ptr bit us | niklas | 1997-02-11 | 1 | -3/+6 | |
| | ||||||
* | Make this 64-bit safe again | tholo | 1997-02-09 | 1 | -16/+16 | |
| | ||||||
* | Integrate latest malloc(3) from FreeBSD | tholo | 1997-01-05 | 1 | -264/+124 | |
| | ||||||
* | more 64bit fixes | niklas | 1996-11-24 | 1 | -10/+12 | |
| | ||||||
* | 64 bit clean | niklas | 1996-11-23 | 1 | -3/+25 | |
| | ||||||
* | removed plus sign from start of line | kstailey | 1996-11-22 | 1 | -2/+2 | |
| | ||||||
* | Make sure we don't dereference stray pointer when running suid or sgid | tholo | 1996-09-26 | 1 | -1/+3 | |
| | ||||||
* | Restore check for suid / sgid | tholo | 1996-09-26 | 1 | -2/+2 | |
| | ||||||
* | Latest changes from FreeBSD | tholo | 1996-09-26 | 1 | -220/+271 | |
| |