diff options
Diffstat (limited to 'src/lib/libc/stdlib/malloc.3')
-rw-r--r-- | src/lib/libc/stdlib/malloc.3 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3 index e206245cc2..f5ab9d70d9 100644 --- a/src/lib/libc/stdlib/malloc.3 +++ b/src/lib/libc/stdlib/malloc.3 | |||
@@ -33,7 +33,7 @@ | |||
33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
34 | .\" SUCH DAMAGE. | 34 | .\" SUCH DAMAGE. |
35 | .\" | 35 | .\" |
36 | .\" $OpenBSD: malloc.3,v 1.4 1996/09/26 04:19:41 tholo Exp $ | 36 | .\" $OpenBSD: malloc.3,v 1.5 1997/05/31 08:47:55 tholo Exp $ |
37 | .\" | 37 | .\" |
38 | .Dd August 27, 1996 | 38 | .Dd August 27, 1996 |
39 | .Dt MALLOC 3 | 39 | .Dt MALLOC 3 |
@@ -160,6 +160,18 @@ This can substantially aid in compacting memory. | |||
160 | ``utrace'' generate entries for ktrace(1) for all operations. | 160 | ``utrace'' generate entries for ktrace(1) for all operations. |
161 | Consult the source for this one. | 161 | Consult the source for this one. |
162 | 162 | ||
163 | .It X | ||
164 | ``xmalloc'' | ||
165 | rather than return failure, | ||
166 | .Xr abort 3 | ||
167 | the program with a diagnostic message on stderr. | ||
168 | It is the intention that this option be set at compile time by | ||
169 | including in the source: | ||
170 | .Bd -literal -offset indent | ||
171 | extern char *malloc_options; | ||
172 | malloc_options = "X"; | ||
173 | .Ed | ||
174 | |||
163 | .It Z | 175 | .It Z |
164 | ``zero'' fill some junk into the area allocated (see ``J''), | 176 | ``zero'' fill some junk into the area allocated (see ``J''), |
165 | except for the exact length the user asked for, which is zeroed. | 177 | except for the exact length the user asked for, which is zeroed. |