Commit | Line | Data |
---|---|---|
1a449707 CL |
1 | .\" Copyright (c) 1991 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" %sccs.include.redist.man% | |
5 | .\" | |
0e645b66 | 6 | .\" @(#)doc-common 5.6 (Berkeley) %G% |
1a449707 CL |
7 | .\" |
8 | .\" %beginstrip% | |
9 | .nr %A 1 | |
10 | .nr %J 1 | |
11 | .nr %N 1 | |
12 | .nr %O 1 | |
13 | .nr %R 1 | |
14 | .nr %T 1 | |
15 | .nr %V 1 | |
16 | .nr Ad 12n | |
17 | .nr Ac 3 | |
18 | .nr Ao 12n | |
19 | .nr Ap 2 | |
3151e7d6 | 20 | .nr An 12n |
1a449707 CL |
21 | .nr Aq 12n |
22 | .nr Ar 12n | |
23 | .nr Bc 3 | |
24 | .nr Bl 1 | |
25 | .nr Bo 12n | |
26 | .nr Bq 12n | |
0e645b66 | 27 | .nr Bx 12n |
1a449707 CL |
28 | .nr Cd 12n |
29 | .nr Cm 10n | |
30 | .nr Co 15n | |
31 | .nr Cx 20n | |
32 | .nr Dc 3 | |
33 | .nr Do 10n | |
34 | .nr Dq 12n | |
35 | .nr Ds 6n | |
36 | .nr Dq 12n | |
37 | .nr Dv 12n | |
38 | .nr tI \n(Dsu | |
39 | .nr Ec 3 | |
40 | .nr El 1 | |
41 | .nr Eo 12n | |
42 | .nr Eq 12n | |
43 | .nr Em 10n | |
44 | .nr Er 12n | |
45 | .nr Ev 15n | |
46 | .nr Ex 10n | |
47 | .nr Fa 12n | |
48 | .nr Fl 10n | |
49 | .nr Fc 3 | |
50 | .nr Fo 16n | |
51 | .nr Fn 16n | |
52 | .nr Hl 1 | |
53 | .nr I1 6n | |
54 | .nr I2 12n | |
55 | .nr I3 18n | |
56 | .nr Ic 10n | |
57 | .nr Li 16n | |
58 | .nr Ms 6n | |
59 | .nr Nm 10n | |
60 | .nr No 12n | |
61 | .nr Ns 2 | |
62 | .nr Oo 10n | |
63 | .nr Oc 3 | |
64 | .nr Op 14n | |
65 | .nr Pa 32n | |
66 | .nr Pf 12n | |
67 | .nr Pc 3 | |
68 | .nr Po 12n | |
69 | .nr Pq 12n | |
70 | .nr Ql 16n | |
71 | .nr Sc 3 | |
72 | .nr So 12n | |
73 | .nr Sq 12n | |
74 | .nr Sy 6n | |
75 | .nr Sx 16n | |
76 | .nr Ra 1 | |
77 | .nr Rj 1 | |
78 | .nr Rn 1 | |
79 | .nr Ro 1 | |
80 | .nr Rr 1 | |
81 | .nr Rt 1 | |
82 | .nr Rv 1 | |
83 | .nr Tn 10n | |
84 | .nr Ta 1 | |
85 | .nr Tv 1 | |
86 | .nr Tx 22n | |
87 | .nr Va 12n | |
88 | .nr Xc 3 | |
89 | .nr Xo 1 | |
90 | .nr Xr 10n | |
91 | .ds sV \& \& | |
92 | .ds hV \&\ \& | |
93 | .ds iV \& \& | |
94 | .ds tV \&\\t\& | |
95 | .\" Punctuation values (3 = closing punctuation, 4 = opening) | |
96 | .nr z. 3 | |
97 | .nr z, 3 | |
98 | .nr z: 3 | |
99 | .nr z; 3 | |
100 | .nr z( 4 | |
101 | .nr z) 3 | |
102 | .nr z[ 4 | |
103 | .nr z] 3 | |
104 | .\" Matching pairs | |
105 | .ds z( z) | |
106 | .ds z[ z] | |
107 | .ds z< z> | |
108 | .\" This is disgusting, troff not parse ``if'' stmt properly | |
109 | .nr z0 0 | |
110 | .nr z1 0 | |
111 | .nr z2 0 | |
112 | .nr z3 0 | |
113 | .nr z4 0 | |
114 | .nr z5 0 | |
115 | .nr z6 0 | |
116 | .nr z7 0 | |
117 | .nr z8 0 | |
118 | .nr z9 0 | |
119 | .nr z# 0 | |
120 | .\" Header assembly macros | |
121 | .de Dt | |
122 | .ds dT UNTITLED | |
3151e7d6 | 123 | .ds vT LOCAL |
1a449707 CL |
124 | .ds cH Null |
125 | .if !"\\$1"" .ds dT \\$1 | |
126 | .if !"\\$2"" \{\ | |
127 | . ds cH \\$2 | |
3151e7d6 | 128 | .\" . if "\\$3"" \{\ |
1a449707 CL |
129 | . if \\$2>=1 .if \\$2<=8 \{\ |
130 | . ds vT UNIX Reference Manual | |
131 | . if \\$2>1 .if \\$2<6 .ds vT UNIX Programmer's Manual | |
132 | . if "\\$2"8" .ds vT UNIX System Manager's Manual | |
3151e7d6 | 133 | . nr sN \\$2 |
1a449707 CL |
134 | . \} |
135 | . if "\\$2"unass" .ds vT DRAFT | |
136 | . if "\\$2"draft" .ds vT DRAFT | |
3151e7d6 CL |
137 | . if "\\$2"paper" .ds vT UNTITLED |
138 | .\" . \} | |
1a449707 CL |
139 | .\} |
140 | .if !"\\$3"" \{\ | |
141 | . if "\\$3"USD" .ds vT UNIX User's Supplementary Documents | |
142 | . if "\\$3"PS1" .ds vT UNIX Programmers's Supplementary Documents | |
143 | . if "\\$3"AMD" .ds vT UNIX Ancestral Manual Documents | |
144 | . if "\\$3"SMM" .ds vT UNIX System Manager's Manual | |
145 | . if "\\$3"URM" .ds vT UNIX Reference Manual | |
146 | . if "\\$3"PRM" .ds vT UNIX Programmers's Manual | |
147 | . if "\\$3"IND" .ds vT UNIX Manual Master Index | |
148 | .\" . if "\\$3"CON" .ds vT UNIX Contributed Software Manual | |
149 | .\" . if "\\$3"IMP" .ds vT UNIX Implementation Notes | |
150 | .\" . if "\\$3"HOW" .ds vT UNIX How Pocket Manual | |
151 | . if "\\$3"LOCAL" .ds vT UNIX Local Manual | |
3151e7d6 CL |
152 | . if "\\$3"tahoe" .as vT \ (Tahoe Architecture) |
153 | . if "\\$3"vax" .as vT \ (VAX Architecture) | |
154 | . if "\\$3"hp300" .as vT \ (HP300 Architecture) | |
155 | . if "\\$3"sparc" .as vT \ (SPARC Architecture) | |
156 | . if "\\*(vT"LOCAL" .ds vT \\$3 | |
1a449707 CL |
157 | .\} |
158 | .. | |
3151e7d6 CL |
159 | .\" NS Os macro - Operating System (behaviour changes after first call) |
160 | .\" . ds vT \f(CODRAFT\fP\ \ \-\-\ \ \\*(vT\ \ \-\-\ \ \f(CODRAFT | |
161 | .\" . ds dD \f(CODRAFT\fP\ \ \-\-\ \ \\*(dD\ \ \-\-\ \ \f(CODRAFT | |
162 | .\" .ds vT \s+4\f(CODRAFT\fP\s-4\ \ \-\-\ \ \\*(vT\ \ \-\-\ \ \s+4\f(CODRAFT\s-4 | |
163 | .\" .ds dD \s+4\f(CODRAFT\fP\s-4\ \ \-\-\ \ \\*(dD\ \ \-\-\ \ \s+4\f(CODRAFT\s-4 | |
1a449707 CL |
164 | .de Os |
165 | .ds oS Null | |
166 | .if "\\$1"" \{\ | |
3151e7d6 | 167 | . ds oS BSD Experimental |
1a449707 CL |
168 | .\} |
169 | .if "\\$2"" \{\ | |
170 | . ds aa Non-Null | |
171 | .\} | |
172 | .if "\\$1"ATT" \{\ | |
173 | . ds oS AT&T | |
174 | . if "\\$2"" .as oS \0UNIX | |
175 | . if "\\$2"7th" .as oS \07th Edition | |
176 | . if "\\$2"7" .as oS \07th Edition | |
177 | . if "\\$2"III" .as oS \0System III | |
178 | . if "\\$2"3" .as oS \0System III | |
179 | . if "\\$2"V" .as oS \0System V | |
180 | . if "\\$2"V.2" .as oS \0System V Release 2 | |
181 | . if "\\$2"V.3" .as oS \0System V Release 3 | |
182 | . if "\\$2"V.4" .as oS \0System V Release 4 | |
183 | .\} | |
184 | .if "\\$1"BSD" \{\ | |
185 | . if "\\$2"3" .ds oS 3rd Berkeley Distribution | |
186 | . if "\\$2"4" .ds oS 4th Berkeley Distribution | |
187 | . if "\\$2"4.1" .ds oS 4.1 Berkeley Distribution | |
188 | . if "\\$2"4.2" .ds oS 4.2 Berkeley Distribution | |
189 | . if "\\$2"4.3" .ds oS 4.3 Berkeley Distribution | |
190 | . if "\\$2"4.3T" .ds oS 4.3-Tahoe Berkeley Distribution | |
191 | . if "\\$2"4.3R" .ds oS 4.3-Reno Berkeley Distribution | |
192 | . if "\\$2"4.3t" .ds oS 4.3-Tahoe Berkeley Distribution | |
193 | . if "\\$2"4.3r" .ds oS 4.3-Reno Berkeley Distribution | |
3151e7d6 | 194 | . if "\\$2"4.4" .ds oS BSD Experimental |
1a449707 | 195 | .\} |
3151e7d6 | 196 | .if "\\*(oS"Null" .ds oS \0\\$1 |
1a449707 CL |
197 | .if "\\*(aa"Non-Null" .as oS \0\\$2 |
198 | .rm aa | |
199 | .. | |
200 | .de Dd | |
3151e7d6 | 201 | .if !"\\*(dD"" .nr gX 1 |
1a449707 | 202 | .ie \\n(.$>0 \{\ |
3151e7d6 | 203 | . ie \\n(.$==3 \{\ |
1a449707 CL |
204 | . ds dD \\$1 \\$2 \\$3 |
205 | . \} | |
3151e7d6 CL |
206 | . el \{\ |
207 | . if "\\n(mo"1" .ds dD January | |
208 | . if "\\n(mo"2" .ds dD February | |
209 | . if "\\n(mo"3" .ds dD March | |
210 | . if "\\n(mo"4" .ds dD April | |
211 | . if "\\n(mo"5" .ds dD May | |
212 | . if "\\n(mo"6" .ds dD June | |
213 | . if "\\n(mo"7" .ds dD July | |
214 | . if "\\n(mo"8" .ds dD August | |
215 | . if "\\n(mo"9" .ds dD September | |
216 | . if "\\n(mo"10" .ds dD October | |
217 | . if "\\n(mo"11" .ds dD November | |
218 | . if "\\n(mo"12" .ds dD December | |
219 | . as dD \&\ \\n(dy, 19\\n(yr | |
220 | . \} | |
1a449707 CL |
221 | .\} |
222 | .el \{\ | |
223 | . ds dD Epoch | |
224 | .\} | |
225 | .. | |
226 | .de hM | |
227 | .ev 1 | |
228 | .pL | |
229 | .if !\\n(cR 'sp \\n(Hmu | |
230 | .tl @\\*(Hs\\*(hT\fP@\\*(Vs\\*(vT\fP@\\*(Hs\\*(hT\fP@ | |
231 | 'sp \\n(Hmu | |
232 | .ev | |
233 | .. | |
234 | .de fM | |
235 | .ie \\n(cR 'br | |
236 | .el \{\ | |
237 | . ev 1 | |
238 | . pL | |
239 | . if !\\n(cR \{\ | |
240 | ' sp \\n(Fmu | |
241 | . tl @\\*(Hs\\*(oS\fP@\\*(Vs\\*(dD\fP@%@ | |
242 | ' bp | |
243 | . \} | |
244 | . ev | |
245 | .\} | |
0e645b66 | 246 | .\" .tm IN 444 fM .k == \\n(.k and nl == \\n(nl |
1a449707 CL |
247 | .. |
248 | .de lM | |
249 | .fl | |
250 | .if \\n(cR \{\ | |
251 | ' sp | |
252 | . tl @\\*(Hs\\*(oS\fP@\\*(Vs\\*(dD\fP@%@ | |
253 | . pl \\n(nlu | |
254 | .\} | |
255 | .. | |
256 | .de Pp | |
257 | .sp \\n(Ppu | |
258 | .ne 2 | |
259 | .ns | |
260 | .. | |
261 | .de Lp | |
262 | .Pp | |
263 | .. | |
264 | .de LP | |
265 | .tm Not a \-mdoc command: .LP | |
266 | .. | |
267 | .de PP | |
268 | .tm Not a \-mdoc command: .PP | |
269 | .. | |
270 | .de pp | |
271 | .tm Not a \-mdoc command: .pp | |
272 | .. | |
1a449707 CL |
273 | .de Nd |
274 | \&\-\& \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 | |
275 | .. | |
358c19c0 CL |
276 | .de Ss |
277 | .sp | |
278 | .ne 2 | |
279 | .ti -.25i | |
280 | \&\\*(sH\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6 \|\\$7 \|\\$8 \|\\$9 | |
281 | \&\fP\s0 | |
282 | .ta .5i 1i 1.5i 2i 2.5i 3i 3.5i 4i 4.5i 5i 5.5i 6i 6.5i | |
283 | .if !\\n(cR .ne 2 | |
284 | .br | |
285 | .. | |
3151e7d6 CL |
286 | .de Rd |
287 | .tm MDOC REGISTER DUMP | |
288 | .tm Db==\\n(Db register DEBUG MODE | |
289 | .tm L[0-9] registers - stack of list types | |
290 | .tm L0==\\n(L0 | |
291 | .tm L1==\\n(L1 | |
292 | .tm L2==\\n(L2 | |
293 | .tm L3==\\n(L3 | |
294 | .tm L4==\\n(L4 | |
295 | .tm L5==\\n(L5 | |
296 | .tm L6==\\n(L6 | |
297 | .tm L7==\\n(L7 | |
298 | .tm L8==\\n(L8 | |
299 | .tm L9==\\n(L9 | |
300 | .tm O[0-9] registers - stack of indent | |
301 | .tm O0==\\n(O0 | |
302 | .tm O1==\\n(O1 | |
303 | .tm O2==\\n(O2 | |
304 | .tm O3==\\n(O3 | |
305 | .tm O4==\\n(O4 | |
306 | .tm O5==\\n(O5 | |
307 | .tm O6==\\n(O6 | |
308 | .tm O7==\\n(O7 | |
309 | .tm O8==\\n(O8 | |
310 | .tm O9==\\n(O9 | |
311 | .tm aC==\\n(aC register argument counter (aV/fV) | |
312 | .tm aJ==\\n(aJ register (for vR) | |
313 | .tm aN==\\n(aN register | |
314 | .tm aP==\\n(aP register argument pointer (aV) | |
315 | .tm aT==\\n(aT register argument type | |
316 | .tm aa==\\n(aa local register | |
317 | .tm bK==\\n(bK register - Book Name flag | |
318 | .tm cF==\\n(cF register save current font | |
319 | .tm cI==\\n(cI register - column indent width | |
320 | .tm cZ==\\n(cZ register save current font size | |
321 | .tm dK==\\n(dK register - Date flag | |
322 | .tm d[0-9] registers - display-type stack | |
323 | .tm d0==\\n(d0 | |
324 | .tm d1==\\n(d1 | |
325 | .tm d2==\\n(d2 | |
326 | .tm d3==\\n(d3 | |
327 | .tm d4==\\n(d4 | |
328 | .tm d5==\\n(d5 | |
329 | .tm d6==\\n(d6 | |
330 | .tm d7==\\n(d7 | |
331 | .tm d8==\\n(d8 | |
332 | .tm d9==\\n(d9 | |
333 | .tm dZ==\\n(dZ register diversion count | |
334 | .tm fD==\\n(fD register subroutine test (in synopsis only) | |
335 | .tm fV==\\n(fV register argument counter (must set to \\n(.$ prior to | |
336 | .tm fY==\\n(fY register - dick with old style function declarations (fortran) | |
337 | .tm fZ==\\n(fZ register also subroutine count (in synopsis only) | |
338 | .tm h[0-9] register horizontal tag stack (continuous if 1, break if | |
339 | .tm h0==\\n(h0 | |
340 | .tm h1==\\n(h1 | |
341 | .tm h2==\\n(h2 | |
342 | .tm h3==\\n(h3 | |
343 | .tm h4==\\n(h4 | |
344 | .tm h5==\\n(h5 | |
345 | .tm h6==\\n(h6 | |
346 | .tm h7==\\n(h7 | |
347 | .tm h8==\\n(h8 | |
348 | .tm h9==\\n(h9 | |
349 | .tm iD==\\n(iD local register | |
350 | .tm iI==\\n(iI local register (indent for inline debug mode) | |
351 | .tm iN==\\n(iN register DEBUG MODE (inline if 1, to stderr if | |
352 | .tm iS==\\n(iS register - indent second command line in a synopsis | |
353 | .tm jK==\\n(jK register - [reference] Journal Name flag | |
354 | .tm jM==\\n(jM local register | |
355 | .tm jN==\\n(jN local register | |
356 | .tm lC==\\n(lC register - list type stack counter | |
357 | .tm lK==\\n(lK register count of lines read from input file | |
358 | .tm nK==\\n(nK register - [reference] issue number flag | |
359 | .tm nU==\\n(nU register count | |
360 | .tm oK==\\n(oK register - [reference] optional information flag | |
361 | .tm oM==\\n(oM register (extension possible) | |
362 | .tm o[0-9] register offset stack (nested tags) | |
363 | .tm o0==\\n(o0 | |
364 | .tm o1==\\n(o1 | |
365 | .tm o2==\\n(o2 | |
366 | .tm o3==\\n(o3 | |
367 | .tm o4==\\n(o4 | |
368 | .tm o5==\\n(o5 | |
369 | .tm o6==\\n(o6 | |
370 | .tm o7==\\n(o7 | |
371 | .tm o8==\\n(o8 | |
372 | .tm o9==\\n(o9 | |
373 | .tm oM==\\n(oM register open ended line flag | |
374 | .tm pK==\\n(pK register - [reference] page number flag | |
375 | .tm qK==\\n(qK register - Corporate or Foreign Author flag | |
376 | .tm rK==\\n(rK register - [reference] report flag | |
377 | .tm rS==\\n(rS register - Reference Start flag | |
378 | .tm sM==\\n(sM register - default is one (space mode on) | |
379 | .tm tK==\\n(tK register - reference title flag | |
380 | .tm tP==\\n(tP register tag flag (for diversions) | |
381 | .tm tX==\\n(tX register (initial class) | |
382 | .tm tY==\\n(tY register (next possible lC value) | |
383 | .tm t[0-9] register tag string stack (nested tags) | |
384 | .tm t0==\\n(t0 | |
385 | .tm t1==\\n(t1 | |
386 | .tm t2==\\n(t2 | |
387 | .tm t3==\\n(t3 | |
388 | .tm t4==\\n(t4 | |
389 | .tm t5==\\n(t5 | |
390 | .tm t6==\\n(t6 | |
391 | .tm t7==\\n(t7 | |
392 | .tm t8==\\n(t8 | |
393 | .tm t9==\\n(t9 | |
394 | .tm uK==\\n(uK register - reference author(s) counter | |
395 | .tm vK==\\n(vK register - reference volume flag | |
396 | .tm v[0-9] register vertical tag break stack | |
397 | .tm v0==\\n(v0 | |
398 | .tm v1==\\n(v1 | |
399 | .tm v2==\\n(v2 | |
400 | .tm v3==\\n(v3 | |
401 | .tm v4==\\n(v4 | |
402 | .tm v5==\\n(v5 | |
403 | .tm v6==\\n(v6 | |
404 | .tm v7==\\n(v7 | |
405 | .tm v8==\\n(v8 | |
406 | .tm v9==\\n(v9 | |
407 | .tm w[0-9] register tag stack (nested tags) | |
408 | .tm w0==\\n(w0 | |
409 | .tm w1==\\n(w1 | |
410 | .tm w2==\\n(w2 | |
411 | .tm w3==\\n(w3 | |
412 | .tm w4==\\n(w4 | |
413 | .tm w5==\\n(w5 | |
414 | .tm w6==\\n(w6 | |
415 | .tm w7==\\n(w7 | |
416 | .tm w8==\\n(w8 | |
417 | .tm w9==\\n(w9 | |
418 | .tm xX==\\n(xX local register | |
419 | .tm END OF REGISTER DUMP | |
420 | .. |