.\"
.\" tmac.an - macros for manual pages
.\"
.\" Sccsid @(#)an	2.11 (gritter) 3/18/07
.\"
.\" from Unix 7th Edition /usr/lib/tmac/tmac.an
.\"
.\" Changes by Gunnar Ritter, Freiburg i. Br., Germany, August 2002
.\"
.\" Changes by Carsten Kunze, 2015-2016
.\"
.\" Copyright(C) Caldera International Inc. 2001-2002. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\"   Redistributions of source code and documentation must retain the
.\"    above copyright notice, this list of conditions and the following
.\"    disclaimer.
.\"   Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"   All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"      This product includes software developed or owned by Caldera
.\"      International, Inc.
.\"   Neither the name of Caldera International, Inc. nor the names of
.\"    other contributors may be used to endorse or promote products
.\"    derived from this software without specific prior written permission.
.\"
.\" USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA
.\" INTERNATIONAL, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE
.\" LIABLE FOR ANY DIRECT, INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
.\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.do xflag 3
.als am1 am
.als de1 de
.als as1 as
.als ds1 ds
.escoff ; @
.ie n \{\
.	nr cR 1
.	utf8conv -
.	char ' \N39
.	char ` \N96
.	sentchar .?!
.	ns
.	nh
.	rm hy
.	ad l
.	rm ad
.	nr )I.def 7n
.\}
.el \{\
.	ie \*(.Thtml \{\
.		nr cR 1
.		nh
.		rm hy
.	\}
.	el \{\
.		hy 14
.	\}
.	so /usr/pkg/share/heirloom-doctools/tmac/tmac.gchar
.	nr )I.def .5i
.\}
.nr .g 1
.ds la \(la
.ds ra \(ra
.ds lq \(lq
.ds rq \(rq
.ds Tm \(tm
.	\" reset the basic page layout
.de }E
.	}f
.	ad b
.	in \\n()Ru+\\n(INu
.	ll \\n(LLu
..
.	\" default tabs
.de DT
.	ta T .5i
..
.	\" set type font and size
.de }f
.	ps \\nS
.	ft 1
..
.	\" handle the head of the page
.de }H
.	ev 1
.	sp .5i
.	ft 1
.	ps \\nS
.	lt \\n(LLu
.	lnr longName 0
.	ie \w\\*(]H+2n*2+\w\\*(]D>\\n[.lt] \
.	    tl \\*(]H\\*(]D
.	el .tl \\*(]H\\*(]D\\*(]H
.	sp .5i
.	ev
.	ns
..
.	\" handle the foot of the page
.de }F
.	ie \n(cR \{\
.		pl +5
.		fl
.		sp 3
.		lt \\n(LLu
.		tl \\*(]W\\*(]L\\*(]H
.		pl \\n(nlu
.	\}
.	el \{\
.		ev 1
.		ft 1
.		ps \\nS
'		sp .5i
.		lt \\n(LLu
.		tl \\*(]W\\*(]L%
'		bp
.		ev
.	\}
..
.de }M
.	}N
.	ll \\n(LLu
..
.	\" no runout unless there was a .TH
.de }K
.	}N
.	pl 1
.	ll \\n(LLu
..
.em }K
.	\" set title and heading
.ds TH.DefCatName.1 General Commands Manual
.ds TH.DefCatName.2 System Calls Manual
.ds TH.DefCatName.3 Library Functions Manual
.ds TH.DefCatName.3p Perl Programmers Reference Guide
.ds TH.DefCatName.4 Kernel Interfaces Manual
.ds TH.DefCatName.5 File Formats Manual
.ds TH.DefCatName.6 Games Manual
.ds TH.DefCatName.7 Miscellaneous Information Manual
.ds TH.DefCatName.8 System Manager's Manual
.ds TH.DefCatName.9 Kernel Developer's Manual
.de TH
.	PD
.	if !(\\nS>0) .nr S 10
.	ie (\\nS>10) .vs \\nSp+3p
.	el .vs \\nSp+2p
.	ie n .nr IN 7n
.	el   .nr IN .5i
.	ie n .nr LL 78n
.	el   .nr LL \\n(.l
.	ds ]H \\$1\|(\|\\$2\|)
.	ds ]L \\$3
.	ds ]W \\$4
.	ie !\\$5 .ds ]D \\$5
.	el .if d TH.DefCatName.\\$2 .ds ]D \\*[TH.DefCatName.\\$2]
.	ie \n(cR .}H
.	el .wh 0 }H
.	ie t .wh -1i }F
.	el .if !\n(cR .wh -1.167i }F
.	ie !\n(cR .em }M
.	el \{\
.		als bp br
.		pl 2000000000u \" pl is signed int
.		em }F
.	\}
.	\" Work around for \{ bug in Pod::Man
.	if \n(cR=0&\\n(nl .}H
.	}E
.	DT
.	nr )I \\n[)I.def]
.	nr )R 0
.	if n .na
..
.	\" section heading
.de SH
.	if !\\n(.z .di
.	}X 0
.	nr )E 2
.	lds T \&\\$1
.	shift
.	while \\n(.$ \{\
.		as T " \|\\$1
.		shift
.	\}
.	nop \\*T
.	\" HP-UX compatibility macros
.	if \\$1NAME \{\
.		if !\\*()H \{\
.			ie \\n(.g==1 \{\
.				ds }c C
.			\}
.			el \{\
.				ds }c 1
.			\}
.			\" constant width
.			de C
.				ft C
.				it 1 }N
.				if !\\\\$* \&\\\\$1 \\\\$2 \\\\$3 \\\\$4 \\\\$5 \\\\$6 \\\\$7 \\\\$8 \\\\$9
\\..
.			\" combinations with constant width
.			de CR
.				}S \\*(}c 1 \& "\\\\$1" "\\\\$2" "\\\\$3" "\\\\$4" "\\\\$5" "\\\\$6" "\\\\$7" "\\\\$8" "\\\\$9"
\\..
.			de RC
.				}S 1 \\*(}c \& "\\\\$1" "\\\\$2" "\\\\$3" "\\\\$4" "\\\\$5" "\\\\$6" "\\\\$7" "\\\\$8" "\\\\$9"
\\..
.			de CI
.				}S \\*(}c 2 \& "\\\\$1" "\\\\$2" "\\\\$3" "\\\\$4" "\\\\$5" "\\\\$6" "\\\\$7" "\\\\$8" "\\\\$9"
\\..
.			de IC
.				}S 2 \\*(}c \& "\\\\$1" "\\\\$2" "\\\\$3" "\\\\$4" "\\\\$5" "\\\\$6" "\\\\$7" "\\\\$8" "\\\\$9"
\\..
.			de CB
.				}S \\*(}c 3 \& "\\\\$1" "\\\\$2" "\\\\$3" "\\\\$4" "\\\\$5" "\\\\$6" "\\\\$7" "\\\\$8" "\\\\$9"
\\..
.			de BC
.				}S 3 \\*(}c \& "\\\\$1" "\\\\$2" "\\\\$3" "\\\\$4" "\\\\$5" "\\\\$6" "\\\\$7" "\\\\$8" "\\\\$9"
\\..
.			\" various stuff
.			de CD
.				CR "\\\\$1" "\\\\$2"
\\..
.			de CT
.				IR "\\\\$1" "\\\\$2"
\\..
.			de EM
.				IR "\\\\$1" "\\\\$2"
\\..
.			de ER
.				nop [\\\\$1]\\\\$2
\\..
.			de EV
.				CR "\\\\$1" "\\\\$2"
\\..
.			de GT
.				BR "\\\\$1" "\\\\$2"
\\..
.			de KC
.				BR "\\\\$1" "\\\\$2"
\\..
.			de RV
.				CR "\\\\$1" "\\\\$2"
\\..
.			de SC
.				CR "\\\\$1" "\\\\$2"
\\..
.			de S3
.				sp \\n()Pu
.				ne 2
.				nop \&\\\\$1 \|\\\\$2 \|\\\\$3 \|\\\\$4 \|\\\\$5 \|\\\\$6 \|\\\\$7 \|\\\\$8 \|\\\\$9
.				br
\\..
.			de P
.				PP
\\..
.		\}
.	\}
..
.	\" sub section heading
.de SS
.	if !\\n(.z \{\
.		br
.		di
.		\\n(.z
.	\}
.	ie n .}X 3n
.	el   .}X .25i
.	nr )E 2
.	if \\n(.$ \{\
.		lds T \&\\$1
.		shift
.		while \\n(.$ \{\
.			as T " \|\\$1
.			shift
.		\}
.		nop \\*T
.		br
.	\}
..
.	\" subroutine for section heading
.de }X
.	}E
.	ti \\$1
.	sp \\n()Pu
.	ne 2
.	nr )R 0
.	fi
.	it 1 }N
.	SM
.	B
..
.	\" end of SH (cf }X above and }N below)
.de }2
.	nr )E 0
.	}E
.	nr )I \\n[)I.def]
.	ns
..
.	\" italic
.de I
.	ft 2
.	ie !\\n(.$ .it 1 }N
.	el \&\\$*\fR
..
.	\" bold
.de B
.	ft 3
.	ie !\\n(.$ .it 1 }N
.	el \&\\$*\fR
..
.	\" small
.de SM
.	ps \\nS-1
.	ie !\\n(.$ .it 1 }N
.	el \&\\$*\s\\nS
..
.	\" small and bold
.de SB
.	ps \\nS-1
.	ft B
.	ie !\\n(.$ .it 1 }N
.	el \&\\$*\fR\s\\nS
..
.	\" combinations of Roman, italic, bold
.de RI
.	lds Text \&
.	lnr State 0
.	while \\n(.$ \{\
.		ie \\n[State] \{\
.			as Text \fI\\$1
.			nr State 0
.		\}
.		el \{\
.			as Text \fR\\$1
.			nr State 1
.		\}
.		shift
.	\}
.	nop \\*[Text]
.	}f
..
.de RB
.	lds Text \&
.	lnr State 0
.	while \\n(.$ \{\
.		ie \\n[State] \{\
.			as Text \fB\\$1
.			nr State 0
.		\}
.		el \{\
.			as Text \fR\\$1
.			nr State 1
.		\}
.		shift
.	\}
.	nop \\*[Text]
.	}f
..
.de IR
.	lds Text \&
.	lnr State 0
.	while \\n(.$ \{\
.		ie \\n[State] \{\
.			as Text \fR\\$1
.			nr State 0
.		\}
.		el \{\
.			as Text \fI\\$1
.			nr State 1
.		\}
.		shift
.	\}
.	nop \\*[Text]
.	}f
..
.de IB
.	lds Text \&
.	lnr State 0
.	while \\n(.$ \{\
.		ie \\n[State] \{\
.			as Text \fB\\$1
.			nr State 0
.		\}
.		el \{\
.			as Text \fI\\$1
.			nr State 1
.		\}
.		shift
.	\}
.	nop \\*[Text]
.	}f
..
.de BR
.	lds Text \&
.	lnr State 0
.	while \\n(.$ \{\
.		ie \\n[State] \{\
.			as Text \fR\\$1
.			nr State 0
.		\}
.		el \{\
.			as Text \fB\\$1
.			nr State 1
.		\}
.		shift
.	\}
.	nop \\*[Text]
.	}f
..
.de BI
.	lds Text \&
.	lnr State 0
.	while \\n(.$ \{\
.		ie \\n[State] \{\
.			as Text \fI\\$1
.			nr State 0
.		\}
.		el \{\
.			as Text \fB\\$1
.			nr State 1
.		\}
.		shift
.	\}
.	nop \\*[Text]
.	}f
..
.	\" make special case of shift out of italic
.de }S
.	ds ]F
.	if \\$12 .if !\\$5 .ds ]F \^
.	ie !\\$4 \{\
.		do ds }$1 "\\$1
.		do ds }$2 "\\$2
.		do ds }$3 "\\$3
.		do ds }$4 "\\$4
.		do shift 4
.		if \\n(.X<2 \{\
.			nr )X \\n(.X
.			do xflag 3
.		\}
.		}S \\*[}$2] \\*[}$1] "\\*[}$3]\f\\*[}$1]\\*[}$4]\\*(]F" \\$@
.		if \\n()X .do xflag \\n()X
.	\}
.	el \\$3
.	}f
..
.	\" paragraph
.de LP
.	PP
..
.de PP
.	sp \\n()Pu
.	ne 2
.	}E
.	nr )I \\n[)I.def]
.	ns
..
.de P
.	PP
..
.	\" paragraph distance
.de PD
.	if t .nr )P .4v
.	if n .nr )P 1v
.	if !\\$1 .nr )P \\$1v
..
.	\" hanging indent
.de HP
.	sp \\n()Pu
.	ne 2
.	if !\\$1 .nr )I \\$1n
.	ll \\n(LLu
.	in \\n()Ru+\\n(INu+\\n()Iu
.	ti \\n()Ru+\\n(INu
.	}f
..
.	\" indented paragraph
.de IP
.	TP \\$2
\&\\$1
..
.	\" hanging label
.de TP
.	if \\n()E .return
.	if !\\$1 .nr )I \\$1n
.	sp \\n()Pu
.	in \\n()Ru
.	nr )E 1
.	ns
.	it 1 }N
.	nf
.	di ]B
..
.	\" end of TP (cf }N below)
.de }0
.	fi
.	}1
..
.de }1
.	ds ]X \&\\*(]B\\
.	nr )E 0
.	if !\\$1 .nr )I \\$1n
.	}f
.	ll \\n(LLu
.	in \\n()Ru+\\n(INu+\\n()Iu
.	ti \\n(INu
.	ie !\\n()Iu+\\n()Ru-\w\\*(]Xu-3p \{\
.		nop \\*(]X
.		br
.	\}
.	el \{\
.		nop \\*(]X\h|\\n()Iu+\\n()Ru\c
.		if \\n(.X \{\
.			do nop \k[}pos]
.			do vpt 0
.			sp -1
.			do vpt 1
.			do nop \h\\n[}pos]u\c
.		\}
.	\}
.	}f
..
.	\" handle end of 1-line features
.de }N
.	if \\n()E .br
.	di
.	ie !\\n()E .}f
.	el .ie \\n()E=1 .}0
.	el .if \\n()E=2 .}2
.	nr )E 0
..
.als an-trap }N
.	\" increase relative indent
.de RS
.	nr ]\\n+()p \\n()I
.	nr )\\n()p \\n()R
.	ie !\\$1 .nr )R +\\$1n
.	el .nr )R +\\n()I
.	nr )I \\n[)I.def]
.	}E
..
.	\" decrease relative indent
.de RE
.	ie !\\$1 \{\
.		ie \\$10 .nr )p 1 1
.		el .nr )p \\$1 1
.	\}
.	el .if !\\n()p \{\
.		tm \\n(.F \\n(.c: .RE without .RS ignored
.		return
.	\}
.	ds ]i \\*(]I\\n()p
.	ds ]r \\*(]R\\n()p
.	nr )I \\*(]i
.	nr )R \\*(]r
.	if \\n()p .nr )p -1
.	}E
..
.nr )p 0 1
.ds ]I \\\\n(]
.ds ]R \\\\n()
.ds R \(rg
.ds S \s10
.	\" For Tru64 UNIX manpages. Use of this is discouraged.
.de LI
.	ie !\\$1 \{\
.		TP
\\$1
.	\}
.	el \{
.		PP
.	\}
..
.so /usr/pkg/share/heirloom-doctools/tmac/an-ext
.\" For groff_www.7
.de URL
.	nop \\$2 \(la\\$1\(ra\\$3
..
.als MTO URL
.als FTP URL
.de AT
.	ie \\$14 .ds ]W System III
.	el .ie \\$15 \{\
.		ds ]W System V
.		if !\\$2 .as ]W " Release \\$2
.	\}
.	el .ds ]W 7th Edition
..
.de UC
.	ie     \\$14 .ds ]W 4th
.	el .ie \\$15 .ds ]W 4.2
.	el .ie \\$16 .ds ]W 4.3
.	el .ie \\$17 .ds ]W 4.4
.	el                 .ds ]W 3rd
.	as ]W " Berkeley Distribution
..
.\" vim:set filetype=groff:
