aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/malloc.c
Commit message (Collapse)AuthorAgeFilesLines
* In preparation for a new malloc implementation:Jason Evans2006-01-121-0/+16
| | | | | | | | | | | | | | | | * Add posix_memalign(). * Move calloc() from calloc.c to malloc.c. Add a calloc() implementation in rtld-elf in order to make the loader happy (even though calloc() isn't used in rtld-elf). * Add _malloc_prefork() and _malloc_postfork(), and use them instead of directly manipulating __malloc_lock. Approved by: phk, markm (mentor) Notes: svn path=/head/; revision=154248
* Very minor style nit: sort include files alphabetically.Warner Losh2003-08-221-1/+1
| | | | Notes: svn path=/head/; revision=119255
* Fix signed/unsigned comparison warnings.David E. O'Brien2003-05-041-4/+4
| | | | Notes: svn path=/head/; revision=114625
* Add missing include files I forgot about in previous commit.Alexander Kabaev2003-02-131-0/+2
| | | | Notes: svn path=/head/; revision=110803
* Remove /usr/lib/elf from a default search path.Alexander Kabaev2003-02-131-1/+16
| | | | | | | | | Move xprintf to malloc.c, it is only used there. Make static. Submitted by: phantom Notes: svn path=/head/; revision=110801
* Include stddef.h for NULL definition, rather than rolling our own here.Warner Losh2002-08-211-2/+1
| | | | | | | Reviewed by: jdp Notes: svn path=/head/; revision=102235
* Change brk's prototype from char *brk(const char *) to int brk(const void *)David Malone2002-01-241-1/+0
| | | | | | | | | | | | | | | | | | and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t). This makes us more consistant with NetBSD and standards which include these functions. Bruce pointed out that ptrdiff_t would probably have been better than intptr_t, but this doesn't match other implimentations. Also remove local declarations of sbrk and unnecessary casting. PR: 32296 Tested by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 1 month Notes: svn path=/head/; revision=89732
* Add `_PATH_DEVZERO'.David E. O'Brien2000-12-091-2/+3
| | | | | | | Use _PATH_* where where possible. Notes: svn path=/head/; revision=69793
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add alpha support.Doug Rabson1998-09-041-5/+6
| | | | | | | | Submitted by: John Birrell <jb@cimlogic.com.au> (with extra hacks by me) Obtained from: Probably NetBSD Notes: svn path=/head/; revision=38816
* Import the ELF dynamic linker. This is the ElfKit version withJohn Polstra1998-03-071-0/+485
quite a few enhancements and bug fixes. There are still some known deficiencies, but it should be adequate to get us started with ELF. Submitted by: John Polstra <jdp@polstra.com> Notes: svn path=/cvs2svn/branches/JDP/; revision=34192