diff options
| author | tholo <> | 1997-05-31 08:47:56 +0000 |
|---|---|---|
| committer | tholo <> | 1997-05-31 08:47:56 +0000 |
| commit | 72172bdd5d18886dc9c756ea3a9d915bdd0bda17 (patch) | |
| tree | 2eb678c934f9cd326d5b94c5ce9c84ed78cb4834 /src/lib/libc/stdlib/malloc.3 | |
| parent | 725cbe3c2ca952fe6788d175333217fbecd66c86 (diff) | |
| download | openbsd-72172bdd5d18886dc9c756ea3a9d915bdd0bda17.tar.gz openbsd-72172bdd5d18886dc9c756ea3a9d915bdd0bda17.tar.bz2 openbsd-72172bdd5d18886dc9c756ea3a9d915bdd0bda17.zip | |
Add x/X option to behave like X11 xmalloc; from FreeBSD
Reduce diffs wrt. FreeBSD some
Diffstat (limited to '')
| -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. |
