summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.3
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: Deal with self-xrefs.Ruslan Ermilov2002-12-241-1/+1
| | | | Notes: svn path=/head/; revision=108257
* Document what really occurs when we obtain an error.Tom Rhodes2002-12-201-6/+9
| | | | | | | | PR: 43357 Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> Notes: svn path=/head/; revision=108113
* mdoc(7) police: Fixed abuses of the .Ar and .Em macros.Ruslan Ermilov2002-12-181-1/+1
| | | | Notes: svn path=/head/; revision=108040
* mdoc(7) police: "The .Fn function".Ruslan Ermilov2002-12-181-1/+3
| | | | Notes: svn path=/head/; revision=108037
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* Consistently mark std(in|out|err) with .Dv, because that's how theyRuslan Ermilov2002-12-041-2/+6
| | | | | | | | | | are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re Notes: svn path=/head/; revision=107619
* Clarify the bit about realloc() and its `ptr' argument a bit.Giorgos Keramidas2002-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> Notes: svn path=/head/; revision=97967
* mdoc(7) police: nit.Ruslan Ermilov2002-05-291-1/+1
| | | | Notes: svn path=/head/; revision=97467
* Constify _malloc_options.Poul-Henning Kamp2002-04-241-2/+2
| | | | Notes: svn path=/head/; revision=95377
* mdoc(7) police: kill HSBs, add missing comma.Ruslan Ermilov2001-12-121-8/+13
| | | | Notes: svn path=/head/; revision=87737
* Be more explicit about the fact that realloc() might return aGiorgos Keramidas2001-11-241-0/+4
| | | | | | | | | | different pointer than the one passed to it. PR: docs/31925 Submitted by: Andrew <andrew@ugh.net.au> Notes: svn path=/head/; revision=86845
* malloc and calloc do not free memory.Dima Dorfman2001-11-051-2/+3
| | | | | | | | PR: 31365 Submitted by: SUZUKI Koichi <koich@cac.co.jp> Notes: svn path=/head/; revision=86063
* Move to using .In instead of .Fd #include <> for include mark-up.Jeroen Ruigrok van der Werven2001-09-071-1/+1
| | | | | | | Inspired by comment from: dd Notes: svn path=/head/; revision=83206
* Markup nits: use diagnostic type lists for error and warning messages.Ruslan Ermilov2001-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. Notes: svn path=/head/; revision=81446
* mdoc(7) police: expand plain text xrefs.Ruslan Ermilov2001-08-081-1/+4
| | | | Notes: svn path=/head/; revision=81285
* Remove whitespace at EOL.Dima Dorfman2001-07-151-8/+8
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79531
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-091-1/+0
| | | | Notes: svn path=/head/; revision=79454
* mdoc(7) police: mark NULL with .Dv.Ruslan Ermilov2001-07-041-8/+24
| | | | Notes: svn path=/head/; revision=79200
* mdoc(7) police: the BUGS section should go after HISTORY and AUTHORS.Dima Dorfman2001-06-241-6/+6
| | | | Notes: svn path=/head/; revision=78727
* The fact that phk wrote this is not a bug!Dima Dorfman2001-06-241-5/+2
| | | | Notes: svn path=/head/; revision=78726
* Reword a sentence to make it proper English.Dima Dorfman2001-06-241-1/+1
| | | | Notes: svn path=/head/; revision=78706
* .St -ansiC -> .St -isoCRuslan Ermilov2001-02-261-1/+1
| | | | Notes: svn path=/head/; revision=73088
* mmap(3) -> mmap(2).Ruslan Ermilov2001-02-121-2/+2
| | | | Notes: svn path=/head/; revision=72400
* .Xr to mmap.Nik Clayton2001-02-111-1/+2
| | | | Notes: svn path=/head/; revision=72368
* mdoc(7) police: Change -filled displays (which just happenRuslan Ermilov2001-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. Notes: svn path=/head/; revision=72126
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-2/+2
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-161-2/+2
| | | | Notes: svn path=/head/; revision=71097
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-291-0/+2
| | | | Notes: svn path=/head/; revision=70481
* mdoc(7) police: removed history info from the .Os FreeBSD call.Ruslan Ermilov2000-12-141-1/+1
| | | | Notes: svn path=/head/; revision=70015
* Make it possible to override the function which writes messages toPoul-Henning Kamp2000-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. Notes: svn path=/head/; revision=69201
* Use Fx macro wherever possible.Ruslan Ermilov2000-11-141-1/+2
| | | | Notes: svn path=/head/; revision=68716
* Minor mdoc cleanup.Mike Pritchard2000-05-051-2/+3
| | | | | | | PR: docs/13218 Notes: svn path=/head/; revision=60015
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* Add a missing THREAD_UNLOCK() found missing by Valentin NechayevPoul-Henning Kamp2000-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. Notes: svn path=/head/; revision=59117
* Add history: The reallocf() function first appeared in FreeBSD-3.0.Tim Vanderhoek1999-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). Notes: svn path=/head/; revision=55186
* Document the current behaviour with respect to the handling of errno.Sheldon Hearn1999-12-221-1/+8
| | | | | | | Approved by: phk Notes: svn path=/head/; revision=55006
* Go to a bit more trouble to make it absolutely clear that malloc(3)Peter Wemm1999-11-121-2/+9
| | | | | | | does not zero the allocated memory. Notes: svn path=/head/; revision=53111
* Change .Fn to .Xr on a couple of lines where abort(3) is referenced.Chris Costello1999-09-251-2/+2
| | | | Notes: svn path=/head/; revision=51667
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Various man page cleanup:Mike Pritchard1999-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> Notes: svn path=/head/; revision=49828
* Fix .Xr line for `getpagesize'Chris Costello1999-08-141-2/+2
| | | | Notes: svn path=/head/; revision=49744
* Disable the "Hint" option in phkmalloc as default. Recent VM systemPoul-Henning Kamp1999-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 ?) Notes: svn path=/head/; revision=45091
* o Don't reference non-existant function freealloc.Warner Losh1998-09-161-4/+4
| | | | | | | | | o Properly order things Pointed out by: bde Notes: svn path=/head/; revision=39325
* Add reallocf to the library. This function is simliar to realloc, butWarner Losh1998-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 Notes: svn path=/head/; revision=39191
* environmental -> environment.Philippe Charnier1997-09-181-2/+2
| | | | Notes: svn path=/head/; revision=29563
* Malloc option H is now default.Poul-Henning Kamp1997-08-271-2/+3
| | | | Notes: svn path=/head/; revision=28830
* malloc_sysv used before initialized, reported in PR4002 byPoul-Henning Kamp1997-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> Notes: svn path=/head/; revision=27152
* Integrate calloc with the rest of the gang.Poul-Henning Kamp1997-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> Notes: svn path=/head/; revision=26816
* Add yet an option, this time on how to deal with malloc(0) and realloc(ptr.0)Poul-Henning Kamp1997-06-121-3/+18
| | | | | | | Prompted by: X11 & XFree86 Notes: svn path=/head/; revision=26579