diff options
author | rsc <devnull@localhost> | 2004-04-11 03:42:27 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-11 03:42:27 +0000 |
commit | bf8a59fa013f5c705369fbe14e23ca78c4d09cb8 (patch) | |
tree | 2f8a9e329e05288a17fa7e4024199b0af2327b3d /man/man3/malloc.3 | |
parent | cfa37a7b1131abbab2e7d339b451f5f0e3198cc8 (diff) | |
download | plan9port-bf8a59fa013f5c705369fbe14e23ca78c4d09cb8.tar.gz plan9port-bf8a59fa013f5c705369fbe14e23ca78c4d09cb8.tar.bz2 plan9port-bf8a59fa013f5c705369fbe14e23ca78c4d09cb8.zip |
Rewrite page(2) references to page(3).
Add description of new libmach.
Diffstat (limited to 'man/man3/malloc.3')
-rw-r--r-- | man/man3/malloc.3 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/man/man3/malloc.3 b/man/man3/malloc.3 index c75ef29d..281df7c5 100644 --- a/man/man3/malloc.3 +++ b/man/man3/malloc.3 @@ -132,7 +132,7 @@ these tags will be set properly. If a custom allocator wrapper is used, the allocator wrapper can set the tags itself (usually by passing the result of -.IR getcallerpc (2) +.IR getcallerpc (3) to .IR setmalloctag ) to provide more useful information about @@ -143,7 +143,7 @@ takes the address of a block returned by .I malloc and returns the address of the corresponding block allocated by the -.IR pool (2) +.IR pool (3) routines. .SH SOURCE .B /sys/src/libc/port/malloc.c @@ -152,9 +152,9 @@ routines. .I trump (in .IR acid (1)), -.IR brk (2), -.IR getcallerpc (2), -.IR pool (2) +.IR brk (3), +.IR getcallerpc (3), +.IR pool (3) .SH DIAGNOSTICS .I Malloc, realloc and @@ -198,7 +198,7 @@ is bizarre. .PP User errors can corrupt the storage arena. The most common gaffes are (1) freeing an already freed block, -(2) storing beyond the bounds of an allocated block, and (3) +(3) storing beyond the bounds of an allocated block, and (3) freeing data that was not obtained from the allocator. When .I malloc |