Browse Source

no need to insert spacing between list members;

OPENBSD_3_8
jmc 19 years ago
parent
commit
7b3d0afba2
1 changed files with 1 additions and 13 deletions
  1. +1
    -13
      src/lib/libc/stdlib/malloc.3

+ 1
- 13
src/lib/libc/stdlib/malloc.3 View File

@ -30,7 +30,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: malloc.3,v 1.39 2005/06/07 04:42:42 tedu Exp $
.\" $OpenBSD: malloc.3,v 1.40 2005/06/07 09:04:42 jmc Exp $
.\" .\"
.Dd August 27, 1996 .Dd August 27, 1996
.Dt MALLOC 3 .Dt MALLOC 3
@ -182,7 +182,6 @@ Flags are single letters, uppercase means on, lowercase means off.
will coredump the process, rather than tolerate failure. will coredump the process, rather than tolerate failure.
This is a very handy debugging aid, since the core file will represent the This is a very handy debugging aid, since the core file will represent the
time of failure, rather than when the null pointer was accessed. time of failure, rather than when the null pointer was accessed.
.Pp
.It Cm D .It Cm D
.Dq Dump . .Dq Dump .
.Fn malloc .Fn malloc
@ -191,41 +190,34 @@ will dump statistics in a file called
at exit. at exit.
This option requires the library to have been compiled with -DMALLOC_STATS in This option requires the library to have been compiled with -DMALLOC_STATS in
order to have any effect. order to have any effect.
.Pp
.It Cm F .It Cm F
.Dq Freeguard . .Dq Freeguard .
Enable use after free protection. Enable use after free protection.
Unused pages on the freelist are read and write protected to Unused pages on the freelist are read and write protected to
cause a segmentation fault upon access. cause a segmentation fault upon access.
.Pp
.It Cm G .It Cm G
.Dq Guard . .Dq Guard .
Enable guard pages and chunk randomization. Enable guard pages and chunk randomization.
Each page size or larger allocation is followed by a guard page that will Each page size or larger allocation is followed by a guard page that will
cause a segmentation fault upon any access. cause a segmentation fault upon any access.
Smaller than page size chunks are returned in a random order. Smaller than page size chunks are returned in a random order.
.Pp
.It Cm H .It Cm H
.Dq Hint . .Dq Hint .
Pass a hint to the kernel about pages we don't use. Pass a hint to the kernel about pages we don't use.
If the machine is paging a lot this may help a bit. If the machine is paging a lot this may help a bit.
.Pp
.It Cm J .It Cm J
.Dq Junk . .Dq Junk .
Fill some junk into the area allocated. Fill some junk into the area allocated.
Currently junk is bytes of 0xd0; this is pronounced Currently junk is bytes of 0xd0; this is pronounced
.Dq Duh . .Dq Duh .
\&:-) \&:-)
.Pp
.It Cm N .It Cm N
Do not output warning messages when encountering possible corruption Do not output warning messages when encountering possible corruption
or bad pointers. or bad pointers.
.Pp
.It Cm P .It Cm P
.Dq Pointer Protection . .Dq Pointer Protection .
Pointer sized allocations are aligned to the end of a page to catch Pointer sized allocations are aligned to the end of a page to catch
sizeof(ptr) errors where sizeof(*ptr) is meant. sizeof(ptr) errors where sizeof(*ptr) is meant.
.Pp
.It Cm R .It Cm R
.Dq realloc . .Dq realloc .
Always reallocate when Always reallocate when
@ -239,7 +231,6 @@ This can substantially aid in compacting memory.
.\".Xr ktrace 1 .\".Xr ktrace 1
.\"for all operations. .\"for all operations.
.\"Consult the source for this one. .\"Consult the source for this one.
.Pp
.It Cm X .It Cm X
.Dq xmalloc . .Dq xmalloc .
Rather than return failure, Rather than return failure,
@ -251,17 +242,14 @@ including in the source:
extern char *malloc_options; extern char *malloc_options;
malloc_options = "X"; malloc_options = "X";
.Ed .Ed
.Pp
.It Cm Z .It Cm Z
.Dq Zero . .Dq Zero .
Fill some junk into the area allocated (see Fill some junk into the area allocated (see
.Cm J ) , .Cm J ) ,
except for the exact length the user asked for, which is zeroed. except for the exact length the user asked for, which is zeroed.
.Pp
.It Cm < .It Cm <
.Dq Half the cache size . .Dq Half the cache size .
Reduce the size of the cache by a factor of two. Reduce the size of the cache by a factor of two.
.Pp
.It Cm > .It Cm >
.Dq Double the cache size . .Dq Double the cache size .
Double the size of the cache by a factor of two. Double the size of the cache by a factor of two.


Loading…
Cancel
Save