diff options
author | phk <phk@FreeBSD.org> | 1997-05-30 20:39:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-05-30 20:39:32 +0000 |
commit | 51cf1d5bbcad7d42aa7e5c3e2585826a5c49b4d1 (patch) | |
tree | 6cf74e3b65f21ee8c0f4a5efaa560f268bdeef27 /lib/libc/stdlib/malloc.3 | |
parent | 7c4a57ce7a3935162f69f135c4396650dc18add7 (diff) | |
download | FreeBSD-src-51cf1d5bbcad7d42aa7e5c3e2585826a5c49b4d1.zip FreeBSD-src-51cf1d5bbcad7d42aa7e5c3e2585826a5c49b4d1.tar.gz |
Malloc flag X makes malloc behave like the canonical xmalloc() wrapper.
Untested support for Solaris from John-Mark Gurney
Reviewed by: phk
Submitted by: (partially) John-Mark Gurney <gurney_j@resnet.uoregon.edu>
Diffstat (limited to 'lib/libc/stdlib/malloc.3')
-rw-r--r-- | lib/libc/stdlib/malloc.3 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3 index 98dabbc..9782588 100644 --- a/lib/libc/stdlib/malloc.3 +++ b/lib/libc/stdlib/malloc.3 @@ -34,7 +34,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)malloc.3 8.1 (Berkeley) 6/4/93 -.\" $Id: malloc.3,v 1.8 1997/02/22 15:03:10 peter Exp $ +.\" $Id: malloc.3,v 1.9 1997/03/22 23:48:12 mpp Exp $ .\" .Dd August 27, 1996 .Dt MALLOC 3 @@ -149,6 +149,18 @@ This can substantially aid in compacting memory. ``utrace'' generate entries for ktrace(1) for all operations. Consult the source for this one. +.It X +``xmalloc'' +rather than return failure, +.Xr abort 3 +the program with a diagnostic message on stderr. +It is the intention that this option be set at compile time by +including in the source: +.Bd -literal -offset indent +extern char *malloc_options; +malloc_options = "X"; +.Ed + .It Z ``zero'' fill some junk into the area allocated (see ``J''), except for the exact length the user asked for, which is zeroed. |