X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/b6b9d458c78364bdbbd7fbd7ec543bc364014b45..484eed5d07c30d877e93e18bbab95f1ffbddaa24:/man/sub.3 diff --git a/man/sub.3 b/man/sub.3 index b460506..ad27a14 100644 --- a/man/sub.3 +++ b/man/sub.3 @@ -1,7 +1,7 @@ .\" -*-nroff-*- .de VS .sp 1 -.RS 5 +.RS .nf .ft B .. @@ -11,9 +11,16 @@ .RE .sp 1 .. -.TH sub 3mLib "8 May 1999" mLib +.TH sub 3 "8 May 1999" mLib .SH NAME sub \- efficient allocation and freeing of small blocks +.\" @sub_alloc +.\" @sub_free +.\" @sub_init +.\" +.\" @CREATE +.\" @DESTROY +.\" .SH SYNOPSIS .nf .B "#include " @@ -34,7 +41,7 @@ together in list, making freeing and allocation fast. The `free' operation requires the block size as an argument, so there's no data overhead for an allocated block. The system takes advantage of this by allocating big chunks from the underlying system (actually via -.BR xmalloc (3mLib), +.BR xmalloc (3), q.v.) and splitting the chunks into smaller blocks of the right size, so the space and time overhead from the underlying allocator is divided over many blocks. @@ -63,7 +70,7 @@ Don't try to pass blocks allocated by to .BR free (3); similarly, don't try to pass blocks allocated by -.BR xmalloc (3mLib) +.BR xmalloc (3) or .BR malloc (3) to @@ -96,5 +103,9 @@ The function must be called before any of the other .B sub functions or macros. +.SH "SEE ALSO" +.BR exc (3), +.BR alloc (3), +.BR mLib (3). .SH AUTHOR Mark Wooding,