summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.3
Commit message (Collapse)AuthorAgeFilesLines
* Clarify the bit about realloc() and its `ptr' argument a bit.keramida2002-06-061-2/+3
| | | | | | | | Hopefully, now it is more clear that the memory referenced by the ptr argument of realloc(ptr,size) is freed and only the return value of realloc() points to a valid memory area upon successful completion. Submitted by: Martin Faxer <gmh003532@brfmasthugget.se>
* mdoc(7) police: nit.ru2002-05-291-1/+1
|
* Constify _malloc_options.phk2002-04-241-2/+2
|
* mdoc(7) police: kill HSBs, add missing comma.ru2001-12-121-8/+13
|
* Be more explicit about the fact that realloc() might return akeramida2001-11-241-0/+4
| | | | | | | different pointer than the one passed to it. PR: docs/31925 Submitted by: Andrew <andrew@ugh.net.au>
* malloc and calloc do not free memory.dd2001-11-051-2/+3
| | | | | PR: 31365 Submitted by: SUZUKI Koichi <koich@cac.co.jp>
* Move to using .In instead of .Fd #include <> for include mark-up.asmodai2001-09-071-1/+1
| | | | Inspired by comment from: dd
* Markup nits: use diagnostic type lists for error and warning messages.ru2001-08-101-21/+17
| | | | | | | | Backout previous revision. We should not expand plain text xrefs if they appear in the literal text, e.g. in the error or warning message of the library function. (Submitted by: bde) Moved "out of memory" from warning to errors section.
* mdoc(7) police: expand plain text xrefs.ru2001-08-081-1/+4
|
* Remove whitespace at EOL.dd2001-07-151-8/+8
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-091-1/+0
|
* mdoc(7) police: mark NULL with .Dv.ru2001-07-041-8/+24
|
* mdoc(7) police: the BUGS section should go after HISTORY and AUTHORS.dd2001-06-241-6/+6
|
* The fact that phk wrote this is not a bug!dd2001-06-241-5/+2
|
* Reword a sentence to make it proper English.dd2001-06-241-1/+1
|
* .St -ansiC -> .St -isoCru2001-02-261-1/+1
|
* mmap(3) -> mmap(2).ru2001-02-121-2/+2
|
* .Xr to mmap.nik2001-02-111-1/+2
|
* mdoc(7) police: Change -filled displays (which just happenru2001-02-071-1/+1
| | | | | | to be the same as -ragged in the current implementation) to -ragged. With mdocNG, -filled displays produce the correct output, formatted and justified to both margins.
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-2/+2
|
* Prepare for mdoc(7)NG.ru2001-01-161-2/+2
|
* Prepare for mdoc(7)NG.ru2000-12-291-0/+2
|
* mdoc(7) police: removed history info from the .Os FreeBSD call.ru2000-12-141-1/+1
|
* Make it possible to override the function which writes messages tophk2000-11-261-6/+14
| | | | | | | stderr in case of warnings and errors. Rename malloc_options to have a leading underscore, I belive I have been told that is more correct namespace wise.
* Use Fx macro wherever possible.ru2000-11-141-1/+2
|
* Minor mdoc cleanup.mpp2000-05-051-2/+3
| | | | PR: docs/13218
* Introduce ".Lb" macro to libc manpages.phantom2000-04-211-0/+2
| | | | More libraries manpages updates following.
* Add a missing THREAD_UNLOCK() found missing by Valentin Nechayevphk2000-04-101-5/+1
| | | | | | | <netch@segfault.kiev.ua> Remove allocation failure check from 'A' option, the 'X' option does this as a standalone check now.
* Add history: The reallocf() function first appeared in FreeBSD-3.0.hoek1999-12-281-0/+5
| | | | | See imp's 199808201619.KAA20970@harmony.village.org in freebsd-hackers (the reallocf.c cvs history mistakenly refers to freebsd-current).
* Document the current behaviour with respect to the handling of errno.sheldonh1999-12-221-1/+8
| | | | Approved by: phk
* Go to a bit more trouble to make it absolutely clear that malloc(3)peter1999-11-121-2/+9
| | | | does not zero the allocated memory.
* Change .Fn to .Xr on a couple of lines where abort(3) is referenced.chris1999-09-251-2/+2
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Various man page cleanup:mpp1999-08-151-3/+3
| | | | | | | | | | - Sort xrefs - FreeBSD.ORG -> FreeBSD.org - Be consistent with section names as outlines in mdoc(7) - Other misc mdoc cleanup. PR: doc/13144 Submitted by: Alexy M. Zelkin <phantom@cris.net>
* Fix .Xr line for `getpagesize'chris1999-08-141-2/+2
|
* Disable the "Hint" option in phkmalloc as default. Recent VM systemphk1999-03-281-2/+2
| | | | | | | | | | | | changes have made this too expensive. This gains about 1.25% on worldstone on my SMP machine. Swap-less machines, for instance PicoBSDs, and machines which experience page-out trafic, check with top(1), will probably want to reenable this with: ln -s H /etc/malloc.conf Suggested by: alc (&dyson ?)
* o Don't reference non-existant function freealloc.imp1998-09-161-4/+4
| | | | | | o Properly order things Pointed out by: bde
* Add reallocf to the library. This function is simliar to realloc, butimp1998-09-141-10/+27
| | | | | | | | | | | | | when it returns NULL to indicate failure, it will also free the memory that was passed to it, if that was non-null. This does not change the semantics of realloc. A second commit will be done to commit the conversion of those places in the code that can safely use this to avoid memory leaks when confronted with low memory situations. Beaten-to-death-but-finally-approved-in: -current
* environmental -> environment.charnier1997-09-181-2/+2
|
* Malloc option H is now default.phk1997-08-271-2/+3
|
* malloc_sysv used before initialized, reported in PR4002 byphk1997-07-011-5/+15
| | | | | | | | | | | | | | | Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Various cleanup from Keith Bostic Reinstate calloc() as a separate funtion, in its own source/object file. leave the manpage integrated with malloc.3 and friends. Too many things were broken in this respect. PR: 4002 Reviewed by: phk Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Submitted by: Keith Bostic <bostic@bostic.com>
* Integrate calloc with the rest of the gang.phk1997-06-221-201/+293
| | | | | | | | | | | Various portability and stylistic cleanups. Kill MALLOC_STATS & the 'D' option. Fix the 'V' option. Major overhaul of the man-page. You milage should not vary. Reviewed by: Keith Bostic <bostic@bostic.com> Submitted by: Keith Bostic <bostic@bostic.com>
* Add yet an option, this time on how to deal with malloc(0) and realloc(ptr.0)phk1997-06-121-3/+18
| | | | Prompted by: X11 & XFree86
* Malloc flag X makes malloc behave like the canonical xmalloc() wrapper.phk1997-05-301-1/+13
| | | | | | | Untested support for Solaris from John-Mark Gurney Reviewed by: phk Submitted by: (partially) John-Mark Gurney <gurney_j@resnet.uoregon.edu>
* Remove an extra comma.mpp1997-03-221-2/+2
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* phkmalloc/3phk1996-09-231-7/+110
| | | | | | | | Various neat features added. More documentation in the manpage. If your machine has very little RAM, I guess that would be < 16M these days :-(, you may want to try this: ln -fs 'H<' /etc/malloc.conf check the manpage.
* Correct a bunch of man page cross references and generallympp1996-02-111-2/+2
| | | | | | try and silence "manck". ncurses, rpc, and some of the gnu stuff are still a big mess, however.
OpenPOWER on IntegriCloud