source: trunk/third/mdoc/doc-common @ 12247

Revision 12247, 11.2 KB checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12246, which included commits to RCS files with non-trunk default branches.
Line 
1.\" Copyright (c) 1991, 1993
2.\"     The Regents of the University of California.  All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\"    must display the following acknowledgement:
14.\"     This product includes software developed by the University of
15.\"     California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\"    may be used to endorse or promote products derived from this software
18.\"    without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\"     @(#)doc-common  8.1 (Berkeley) 6/8/93
33.\"     $NetBSD: doc-common,v 1.13.2.1 1997/11/30 08:43:42 mellon Exp $
34.\"
35.\" This version has had comments stripped; an unstripped version is available.
36.nr %A 1
37.nr %J 1
38.nr %N 1
39.nr %O 1
40.nr %R 1
41.nr %T 1
42.nr %V 1
43.nr Ad 12n
44.nr Ac 3
45.nr Ao 12n
46.nr An 12n
47.nr Aq 12n
48.nr Ar 12n
49.nr Bc 3
50.nr Bl 1
51.nr Bo 12n
52.nr Bq 12n
53.nr Cd 12n
54.nr Cm 10n
55.nr Dc 3
56.nr Do 10n
57.nr Dq 12n
58.nr Ds 6n
59.nr Dq 12n
60.nr Dv 12n
61.nr Ec 3
62.nr El 1
63.nr Eo 12n
64.nr Eq 12n
65.nr Em 10n
66.nr Er 12n
67.nr Ev 15n
68.nr Fa 12n
69.nr Fl 10n
70.nr Fc 3
71.nr Fo 16n
72.nr Fn 16n
73.nr I1 6n
74.nr I2 12n
75.nr I3 18n
76.nr Ic 10n
77.nr Li 16n
78.nr Ms 6n
79.nr Nm 10n
80.nr No 12n
81.nr Ns 2
82.nr Oo 10n
83.nr Oc 3
84.nr Op 14n
85.nr Pa 32n
86.nr Pf 12n
87.nr Pc 3
88.nr Po 12n
89.nr Pq 12n
90.nr Ql 16n
91.nr Sc 3
92.nr So 12n
93.nr Sq 12n
94.nr Sy 6n
95.nr Sx 16n
96.nr Rv 1
97.nr Tn 10n
98.nr Ta 1
99.nr Tv 1
100.nr Tx 22n
101.nr Va 12n
102.nr Xc 3
103.nr Xo 1
104.nr Xr 10n
105.ds sV \& \&
106.ds hV \&\ \&
107.ds iV \& \&
108.ds tV \&\\t\&
109.nr z. 3
110.nr z, 3
111.nr z: 3
112.nr z; 3
113.nr z( 4
114.nr z) 3
115.nr z[ 4
116.nr z] 3
117.ds z( z)
118.ds z[ z]
119.ds z< z>
120.nr z0 0
121.nr z1 0
122.nr z2 0
123.nr z3 0
124.nr z4 0
125.nr z5 0
126.nr z6 0
127.nr z7 0
128.nr z8 0
129.nr z9 0
130.nr z# 0
131.de Dt
132.ds dT UNTITLED
133.ds vT LOCAL
134.ds cH Null
135.if !"\\$1"" .ds dT \\$1
136.if !"\\$2"" \{\
137.       ds cH \\$2
138.               if \\$2>=1 .if \\$2<=9 \{\
139.                       ds vT NetBSD Reference Manual
140.                       if \\$2>1 .if \\$2<6 .ds vT NetBSD Programmer's Manual
141.                       if "\\$2"8" .ds vT NetBSD System Manager's Manual
142.                       if "\\$2"9" .ds vT NetBSD Kernel Manual
143.                       nr sN \\$2
144.               \}
145.               if "\\$2"unass"  .ds vT DRAFT
146.               if "\\$2"draft"  .ds vT DRAFT
147.               if "\\$2"paper"  .ds vT UNTITLED
148.\}
149.if !"\\$3"" \{\
150.       if "\\$3"USD"   .ds vT NetBSD User's Supplementary Documents
151.       if "\\$3"PS1"   .ds vT NetBSD Programmers's Supplementary Documents
152.       if "\\$3"AMD"   .ds vT NetBSD Ancestral Manual Documents
153.       if "\\$3"SMM"   .ds vT NetBSD System Manager's Manual
154.       if "\\$3"URM"   .ds vT NetBSD Reference Manual
155.       if "\\$3"PRM"   .ds vT NetBSD Programmers's Manual
156.       if "\\$3"KM"    .ds vT NetBSD Kernel Manual
157.       if "\\$3"IND"   .ds vT NetBSD Manual Master Index
158.       if "\\$3"LOCAL" .ds vT NetBSD Local Manual
159.       if "\\$3"alpha"   .as vT \ (ALPHA Architecture)
160.       if "\\$3"amiga"   .as vT \ (AMIGA Architecture)
161.       if "\\$3"arm32"   .as vT \ (ARM32 Architecture)
162.       if "\\$3"atari"   .as vT \ (ATARI Architecture)
163.       if "\\$3"da30"    .as vT \ (DA30 Architecture)
164.       if "\\$3"hp300"   .as vT \ (HP300 Architecture)
165.       if "\\$3"i386"    .as vT \ (I386 Architecture)
166.       if "\\$3"mac68k"  .as vT \ (MAC68K Architecture)
167.       if "\\$3"mvme68k" .as vT \ (MVME68K Architecture)
168.       if "\\$3"pc532"   .as vT \ (PC532 Architecture)
169.       if "\\$3"pica"    .as vT \ (PICA Architecture)
170.       if "\\$3"pmax"    .as vT \ (PMAX  Architecture)
171.       if "\\$3"sparc"   .as vT \ (SPARC Architecture)
172.       if "\\$3"sun3"    .as vT \ (SUN3 Architecture)
173.       if "\\$3"tahoe"   .as vT \ (TAHOE Architecture)
174.       if "\\$3"vax"     .as vT \ (VAX Architecture)
175.       if "\\$3"x68k"    .as vT \ (X68K Architecture)
176.       if "\\*(vT"LOCAL" .ds vT \\$3
177.\}
178..
179.de Os
180.ds oS Null
181.if "\\$1"" \{\
182.       ds oS 4.4BSD
183.\}
184.if "\\$2"" \{\
185.       ds aa Non-Null
186.\}
187.if "\\$1"ATT"   \{\
188.       ds oS AT&T
189.       if "\\$2""    .as oS \0UNIX
190.       if "\\$2"7th" .as oS \07th Edition
191.       if "\\$2"7"   .as oS \07th Edition
192.       if "\\$2"III" .as oS \0System III
193.       if "\\$2"3"   .as oS \0System III
194.       if "\\$2"V"   .as oS \0System V
195.       if "\\$2"V.2" .as oS \0System V Release 2
196.       if "\\$2"V.3" .as oS \0System V Release 3
197.       if "\\$2"V.4" .as oS \0System V Release 4
198.\}
199.if "\\$1"BSD" \{\
200.       if "\\$2"3"    .ds oS 3rd Berkeley Distribution
201.       if "\\$2"4"    .ds oS 4th Berkeley Distribution
202.       if "\\$2"4.1"  .ds oS 4.1 Berkeley Distribution
203.       if "\\$2"4.2"  .ds oS 4.2 Berkeley Distribution
204.       if "\\$2"4.3"  .ds oS 4.3 Berkeley Distribution
205.       if "\\$2"4.3T" .ds oS 4.3-Tahoe Berkeley Distribution
206.       if "\\$2"4.3R" .ds oS 4.3-Reno Berkeley Distribution
207.       if "\\$2"4.3t" .ds oS 4.3-Tahoe Berkeley Distribution
208.       if "\\$2"4.3r" .ds oS 4.3-Reno Berkeley Distribution
209.       if "\\$2"4.4"  .ds oS 4.4BSD
210.\}
211.if "\\$1"NetBSD" \{\
212.       ds oS NetBSD
213.       if "\\$2"0.8"  .as oS \00.8
214.       if "\\$2"0.8a" .as oS \00.8A
215.       if "\\$2"0.9"  .as oS \00.9
216.       if "\\$2"0.9a" .as oS \00.9A
217.       if "\\$2"1.0"  .as oS \01.0
218.       if "\\$2"1.0a" .as oS \01.0A
219.       if "\\$2"1.1"  .as oS \01.1
220.       if "\\$2"1.2"  .as oS \01.2
221.       if "\\$2"1.2a" .as oS \01.2A
222.       if "\\$2"1.2b" .as oS \01.2B
223.       if "\\$2"1.2c" .as oS \01.2C
224.       if "\\$2"1.2d" .as oS \01.2D
225.       if "\\$2"1.2e" .as oS \01.2E
226.       if "\\$2"1.3"  .as oS \01.3
227.\}
228.if "\\*(oS"Null" .ds oS \0\\$1
229.if "\\*(aa"Non-Null" .as oS \0\\$2
230.rm aa
231..
232.de Dd
233.if !"\\*(dD"" .nr gX 1
234.ie \\n(.$>0 \{\
235.       ie \\n(.$==3 \{\
236.               ds dD \\$1 \\$2 \\$3
237.       \}
238.       el \{\
239.               if "\\n(mo"1"  .ds dD January
240.               if "\\n(mo"2"  .ds dD February
241.               if "\\n(mo"3"  .ds dD March
242.               if "\\n(mo"4"  .ds dD April
243.               if "\\n(mo"5"  .ds dD May
244.               if "\\n(mo"6"  .ds dD June
245.               if "\\n(mo"7"  .ds dD July
246.               if "\\n(mo"8"  .ds dD August
247.               if "\\n(mo"9"  .ds dD September
248.               if "\\n(mo"10" .ds dD October
249.               if "\\n(mo"11" .ds dD November
250.               if "\\n(mo"12" .ds dD December
251.               nr *year \\n(yr+1900
252.               as dD \&\ \\n(dy, \\n[*year]
253.       \}
254.\}
255.el \{\
256.       ds dD Epoch
257.\}
258..
259.de hM
260.ev 1
261.pL
262.if !\\n(cR 'sp \\n(Hmu
263.tl @\\*(Hs\\*(hT\fP@\\*(Vs\\*(vT\fP@\\*(Hs\\*(hT\fP@
264'sp \\n(Hmu
265.ev
266..
267.de fM
268.ie \\n(cR 'br
269.el \{\
270.       ev 1
271.       pL
272.       if !\\n(cR \{\
273'               sp \\n(Fmu
274.               tl @\\*(Hs\\*(oS\fP@\\*(Vs\\*(dD\fP@%@
275'               bp
276.       \}
277.       ev
278.\}
279..
280.de lM
281.fl
282.if \\n(cR \{\
283'       sp
284.       tl @\\*(Hs\\*(oS\fP@\\*(Vs\\*(dD\fP@%@
285.       pl \\n(nlu
286.\}
287..
288.de Pp
289.sp \\n(Ppu
290.ne 2
291.ns
292..
293.de Lp
294.Pp
295..
296.de LP
297.tm Not a \-mdoc command: .LP
298..
299.de PP
300.tm Not a \-mdoc command: .PP
301..
302.de pp
303.tm Not a \-mdoc command: .pp
304..
305.de Nd
306\&\-\& \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
307..
308.de Ss
309.sp
310.ne 2
311.ti -.25i
312\&\\*(sH\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6 \|\\$7 \|\\$8 \|\\$9
313\&\fP\s0
314.ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i
315.if !\\n(cR .ne 2
316.br
317..
318.de Rd
319.tm MDOC REGISTER DUMP
320.tm Db==\\n(Db register DEBUG MODE
321.tm L[0-9] registers - stack of list types
322.tm L0==\\n(L0
323.tm L1==\\n(L1
324.tm L2==\\n(L2
325.tm L3==\\n(L3
326.tm L4==\\n(L4
327.tm L5==\\n(L5
328.tm L6==\\n(L6
329.tm L7==\\n(L7
330.tm L8==\\n(L8
331.tm L9==\\n(L9
332.tm O[0-9] registers - stack of indent
333.tm O0==\\n(O0
334.tm O1==\\n(O1
335.tm O2==\\n(O2
336.tm O3==\\n(O3
337.tm O4==\\n(O4
338.tm O5==\\n(O5
339.tm O6==\\n(O6
340.tm O7==\\n(O7
341.tm O8==\\n(O8
342.tm O9==\\n(O9
343.tm aC==\\n(aC register argument counter (aV/fV)
344.tm aJ==\\n(aJ register (for vR)
345.tm aN==\\n(aN register
346.tm aP==\\n(aP register argument pointer (aV)
347.tm aT==\\n(aT register argument type
348.tm aa==\\n(aa local register
349.tm bK==\\n(bK register - Book Name flag
350.tm cF==\\n(cF register save current font
351.tm cI==\\n(cI register - column indent width
352.tm cZ==\\n(cZ register save current font size
353.tm dK==\\n(dK register - Date flag
354.tm d[0-9] registers - display-type stack
355.tm d0==\\n(d0
356.tm d1==\\n(d1
357.tm d2==\\n(d2
358.tm d3==\\n(d3
359.tm d4==\\n(d4
360.tm d5==\\n(d5
361.tm d6==\\n(d6
362.tm d7==\\n(d7
363.tm d8==\\n(d8
364.tm d9==\\n(d9
365.tm dZ==\\n(dZ register diversion count
366.tm fD==\\n(fD register subroutine test (in synopsis only)
367.tm fV==\\n(fV register argument counter (must set to \\n(.$ prior to
368.tm fY==\\n(fY register - dick with old style function declarations (fortran)
369.tm fZ==\\n(fZ register also subroutine count (in synopsis only)
370.tm h[0-9] register horizontal tag stack (continuous if 1, break if
371.tm h0==\\n(h0
372.tm h1==\\n(h1
373.tm h2==\\n(h2
374.tm h3==\\n(h3
375.tm h4==\\n(h4
376.tm h5==\\n(h5
377.tm h6==\\n(h6
378.tm h7==\\n(h7
379.tm h8==\\n(h8
380.tm h9==\\n(h9
381.tm iD==\\n(iD local register
382.tm iI==\\n(iI local register (indent for inline debug mode)
383.tm iN==\\n(iN register DEBUG MODE (inline if 1, to stderr if
384.tm iS==\\n(iS register - indent second command line in a synopsis
385.tm jK==\\n(jK register - [reference] Journal Name flag
386.tm jM==\\n(jM local register
387.tm jN==\\n(jN local register
388.tm lC==\\n(lC register - list type stack counter
389.tm lK==\\n(lK register count of lines read from input file
390.tm nK==\\n(nK register - [reference] issue number flag
391.tm nU==\\n(nU register count
392.tm oK==\\n(oK register - [reference] optional information flag
393.tm oM==\\n(oM register (extension possible)
394.tm o[0-9] register offset stack (nested tags)
395.tm o0==\\n(o0
396.tm o1==\\n(o1
397.tm o2==\\n(o2
398.tm o3==\\n(o3
399.tm o4==\\n(o4
400.tm o5==\\n(o5
401.tm o6==\\n(o6
402.tm o7==\\n(o7
403.tm o8==\\n(o8
404.tm o9==\\n(o9
405.tm oM==\\n(oM register open ended line flag
406.tm pK==\\n(pK register - [reference] page number flag
407.tm qK==\\n(qK register - Corporate or Foreign Author flag
408.tm rK==\\n(rK register - [reference] report flag
409.tm rS==\\n(rS register - Reference Start flag
410.tm sM==\\n(sM register - default is one (space mode on)
411.tm tK==\\n(tK register - reference title flag
412.tm tP==\\n(tP register tag flag (for diversions)
413.tm tX==\\n(tX register (initial class)
414.tm tY==\\n(tY register (next possible lC value)
415.tm t[0-9] register tag string stack (nested tags)
416.tm t0==\\n(t0
417.tm t1==\\n(t1
418.tm t2==\\n(t2
419.tm t3==\\n(t3
420.tm t4==\\n(t4
421.tm t5==\\n(t5
422.tm t6==\\n(t6
423.tm t7==\\n(t7
424.tm t8==\\n(t8
425.tm t9==\\n(t9
426.tm uK==\\n(uK register - reference author(s) counter
427.tm vK==\\n(vK register - reference volume flag
428.tm v[0-9] register vertical tag break stack
429.tm v0==\\n(v0
430.tm v1==\\n(v1
431.tm v2==\\n(v2
432.tm v3==\\n(v3
433.tm v4==\\n(v4
434.tm v5==\\n(v5
435.tm v6==\\n(v6
436.tm v7==\\n(v7
437.tm v8==\\n(v8
438.tm v9==\\n(v9
439.tm w[0-9] register tag stack (nested tags)
440.tm w0==\\n(w0
441.tm w1==\\n(w1
442.tm w2==\\n(w2
443.tm w3==\\n(w3
444.tm w4==\\n(w4
445.tm w5==\\n(w5
446.tm w6==\\n(w6
447.tm w7==\\n(w7
448.tm w8==\\n(w8
449.tm w9==\\n(w9
450.tm xX==\\n(xX local register
451.tm END OF REGISTER DUMP
452..
Note: See TracBrowser for help on using the repository browser.