chiark / gitweb /
Add lots of references to manual pages, and fix a typo.
[mLib] / man / sub.3
index b460506c76ac7094102e65a7b95c9c5b064c9617..ad27a142c328eef6c679799228063532bd2488e8 100644 (file)
--- a/man/sub.3
+++ b/man/sub.3
@@ -1,7 +1,7 @@
 .\" -*-nroff-*-
 .de VS
 .sp 1
-.RS 5
+.RS
 .nf
 .ft B
 ..
 .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 <mLib/sub.h>"
@@ -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, <mdw@nsict.org>