summaryrefslogtreecommitdiffstats
path: root/contrib/groff/tmac
diff options
context:
space:
mode:
authorphantom <phantom@FreeBSD.org>2000-04-21 09:35:43 +0000
committerphantom <phantom@FreeBSD.org>2000-04-21 09:35:43 +0000
commitb36bce1735674dbe0034e5d01807c6c1212f96e7 (patch)
treecd34e953d4bab26b2e051b060711fedb81878f02 /contrib/groff/tmac
parentfc637387ee3f231beccedbe4b137b0cbd02b4c51 (diff)
downloadFreeBSD-src-b36bce1735674dbe0034e5d01807c6c1212f96e7.zip
FreeBSD-src-b36bce1735674dbe0034e5d01807c6c1212f96e7.tar.gz
Introduce new mdoc macro -- Lb. It will be used to define library ownership
for function. For example: for stat(2) syscall (owned by libc) we will add following code: .Sh LIBRARY .Lb libc and it will be rendered to: LIBRARY Standard C Library (libc, -lc) Suggested by: mpp Idea obtained from: NetBSD
Diffstat (limited to 'contrib/groff/tmac')
-rw-r--r--contrib/groff/tmac/doc-common16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/groff/tmac/doc-common b/contrib/groff/tmac/doc-common
index cba4d3c..cae2b32 100644
--- a/contrib/groff/tmac/doc-common
+++ b/contrib/groff/tmac/doc-common
@@ -490,3 +490,19 @@
.tm xX==\\n(xX local register
.tm END OF REGISTER DUMP
..
+.\" Ns Lb macro - Formal library names for LIBRARY sections
+.\" note: this macro does not handle punctuation
+.\" it is really only intended for standalone use.
+.de Lb
+.nr cF \\n(.f
+.nr cZ \\n(.s
+.ds aa \&\f\\n(cF\s\\n(cZ
+.if !\\n(.$==1 .tm Usage: .Lb [library name]
+.if "\\$1"libc" \&Standard C Library (libc, -lc)
+.if "\\$1"libcompat" \&Compatibility Library (libcompat, -lcompat)
+.if "\\$1"libcrypt" \&Crypt Library (libcrypt, -lcrypt)
+.if "\\$1"libkvm" \&Kernel Data Access Library (libkvm, -lkvm)
+.if "\\$1"libm" \&Math Library (libm, -lm)
+.if "\\$1"libutil" \&System Utilities Library (libutil, -lutil)
+.if "\\$1"libz" \&Compression Library (libz, -lz)
+..
OpenPOWER on IntegriCloud