Culminate all our local changes into one file:
[dragonfly.git] / gnu / usr.bin / groff / tmac / doc-syms
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-syms    8.1 (Berkeley) 06/08/93
33 .\" $DragonFly: src/gnu/usr.bin/groff/tmac/Attic/doc-syms,v 1.5 2005/04/29 02:54:51 swildner Exp $ 
34 .\"
35 .\"     %beginstrip%
36 .
37 .
38 .eo
39 .
40 .\" NS Ux user macro
41 .\" NS   print UNIX
42 .\" NS
43 .\" NS modifies:
44 .\" NS   doc-arg-ptr
45 .\" NS   doc-curr-font
46 .\" NS   doc-curr-size
47 .\" NS   doc-macro-name
48 .\" NS
49 .\" NS local variable:
50 .\" NS   doc-str-Ux
51 .\" NS
52 .\" NS width register `Ux' defined in doc-common
53 .
54 .de Ux
55 .  nr doc-curr-font \n[.f]
56 .  nr doc-curr-size \n[.ps]
57 .  ds doc-str-Ux \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
58 .
59 .  if !\n[doc-arg-limit] \
60 .    if \n[.$] \{\
61 .      ds doc-macro-name Ux
62 .      doc-parse-args \$@
63 .    \}
64 .
65 .  \" replace current argument with result
66 .  ds doc-arg\n[doc-arg-ptr] \*[doc-Tn-font-size]UNIX\*[doc-str-Ux]
67 .  nr doc-type\n[doc-arg-ptr] 2
68 .  ds doc-space\n[doc-arg-ptr] "\*[doc-space]
69 .
70 .  \" recompute space vector for remaining arguments
71 .  nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
72 .  nr doc-arg-limit \n[doc-arg-ptr]
73 .  if \n[doc-num-args] \
74 .    doc-parse-space-vector
75 .
76 .  doc-print-recursive
77 ..
78 .
79 .
80 .\" NS Bx user macro
81 .\" NS   print BSD (fix smaller nroff version)
82 .\" NS
83 .\" NS modifies:
84 .\" NS   doc-arg-ptr
85 .\" NS   doc-curr-font
86 .\" NS   doc-curr-size
87 .\" NS   doc-macro-name
88 .\" NS
89 .\" NS local variable:
90 .\" NS   doc-str-Bx
91 .\" NS   doc-str-Bx1
92 .\" NS   doc-str-Bx-XXX
93 .\" NS
94 .\" NS width register `Bx' defined in doc-common
95 .
96 .ds doc-str-Bx-Reno  \-Reno
97 .ds doc-str-Bx-reno  \-Reno
98 .ds doc-str-Bx-Tahoe \-Tahoe
99 .ds doc-str-Bx-tahoe \-Tahoe
100 .ds doc-str-Bx-Lite  \-Lite
101 .ds doc-str-Bx-lite  \-Lite
102 .ds doc-str-Bx-Lite2 \-Lite2
103 .ds doc-str-Bx-lite2 \-Lite2
104 .
105 .de Bx
106 .  nr doc-curr-font \n[.f]
107 .  nr doc-curr-size \n[.ps]
108 .  ds doc-str-Bx \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
109 .
110 .  \" default value if no argument
111 .  ds doc-str-Bx1 \*[doc-Tn-font-size]BSD\*[doc-str-Bx]
112 .
113 .  if !\n[doc-arg-limit] \
114 .    if \n[.$] \{\
115 .      ds doc-macro-name Bx
116 .      doc-parse-args \$@
117 .    \}
118 .
119 .  if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
120 .    nr doc-arg-ptr +1
121 .    ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
122 .      ie        "\*[doc-arg\n[doc-arg-ptr]]"-alpha" \
123 .        as doc-str-Bx1 " (currently in alpha test)
124 .      el \{ .ie "\*[doc-arg\n[doc-arg-ptr]]"-beta" \
125 .        as doc-str-Bx1 " (currently in beta test)
126 .      el \{ .ie "\*[doc-arg\n[doc-arg-ptr]]"-devel" \
127 .        as doc-str-Bx1 " (currently under development)
128 .      el \{\
129 .        ds doc-str-Bx1 \&\*[doc-arg\n[doc-arg-ptr]]\^\*[doc-Tn-font-size]
130 .        as doc-str-Bx1 BSD\*[doc-str-Bx]
131 .
132 .        if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
133 .          nr doc-arg-ptr +1
134 .          ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
135 .            ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
136 .              ie d doc-str-Bx-\*[doc-arg\n[doc-arg-ptr]] \
137 .                as doc-str-Bx1 "\*[doc-str-Bx-\*[doc-arg\n[doc-arg-ptr]]]
138 .              el \
139 .                nr doc-arg-ptr -1
140 .            \}
141 .            el \
142 .              nr doc-arg-ptr -1
143 .          \}
144 .          el \
145 .            nr doc-arg-ptr -1
146 .    \}\}\}\}\}
147 .    el \
148 .      nr doc-arg-ptr -1
149 .  \}
150 .
151 .  \" replace current argument with result
152 .  ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Bx1]
153 .  nr doc-type\n[doc-arg-ptr] 2
154 .  ds doc-space\n[doc-arg-ptr] "\*[doc-space]
155 .
156 .  \" recompute space vector for remaining arguments
157 .  nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
158 .  nr doc-arg-limit \n[doc-arg-ptr]
159 .  if \n[doc-num-args] \
160 .    doc-parse-space-vector
161 .
162 .  doc-print-recursive
163 ..
164 .
165 .
166 .\" NS Ud user macro (not parsed, not callable)
167 .\" NS   print "currently under development" (HISTORY section)
168 .\" NS
169 .\" NS width register `Ud' defined in doc-common
170 .
171 .de Ud
172 .  nop \&currently under development.
173 ..
174 .
175 .
176 .\" NS At user macro
177 .\" NS   print AT&T UNIX
178 .\" NS
179 .\" NS modifies:
180 .\" NS   doc-arg-ptr
181 .\" NS   doc-curr-font
182 .\" NS   doc-curr-size
183 .\" NS   doc-macro-name
184 .\" NS
185 .\" NS local variable:
186 .\" NS   doc-str-At
187 .\" NS   doc-str-At1
188 .\" NS   doc-str-At-XXX
189 .\" NS
190 .\" NS width register `At' defined in doc-common
191 .
192 .ds doc-str-At-32v \&Version\~32V
193 .as doc-str-At-32v " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
194 .ds doc-str-At-v1  \&Version\~1
195 .as doc-str-At-v1  " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
196 .ds doc-str-At-v2  \&Version\~2
197 .as doc-str-At-v2  " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
198 .ds doc-str-At-v3  \&Version\~3
199 .as doc-str-At-v3  " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
200 .ds doc-str-At-v4  \&Version\~4
201 .as doc-str-At-v4  " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
202 .ds doc-str-At-v5  \&Version\~5
203 .as doc-str-At-v5  " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
204 .ds doc-str-At-v6  \&Version\~6
205 .as doc-str-At-v6  " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
206 .ds doc-str-At-v7  \&Version\~7
207 .as doc-str-At-v7  " \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
208 .ds doc-str-At-V   \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V
209 .as doc-str-At-V   " \*[doc-Tn-font-size]UNIX\*[doc-str-At]
210 .ds doc-str-At-V.1 \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V.1
211 .as doc-str-At-V.1 " \*[doc-Tn-font-size]UNIX\*[doc-str-At]
212 .ds doc-str-At-V.2 \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V.2
213 .as doc-str-At-V.2 " \*[doc-Tn-font-size]UNIX\*[doc-str-At]
214 .ds doc-str-At-V.4 \*[doc-Tn-font-size]AT&T\*[doc-str-At] System\~V.4
215 .as doc-str-At-V.4 " \*[doc-Tn-font-size]UNIX\*[doc-str-At]
216 .
217 .de At
218 .  nr doc-curr-font \n[.f]
219 .  nr doc-curr-size \n[.ps]
220 .  ds doc-str-At \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
221 .
222 .  \" default value if no argument
223 .  ds doc-str-At1 \*[doc-Tn-font-size]AT&T UNIX\*[doc-str-At]
224 .
225 .  if !\n[doc-arg-limit] \
226 .    if \n[.$] \{\
227 .      ds doc-macro-name At
228 .      doc-parse-args \$@
229 .    \}
230 .
231 .  if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
232 .    nr doc-arg-ptr +1
233 .    ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
234 .      ie \A\a\*[doc-arg\n[doc-arg-ptr]]\a \{\
235 .        ie d doc-str-At-\*[doc-arg\n[doc-arg-ptr]] \
236 .          ds doc-str-At1 "\*[doc-str-At-\*[doc-arg\n[doc-arg-ptr]]]
237 .        el \{\
238 .          tmc mdoc warning: .At: Unknown AT&T UNIX version
239 .          tm1 " `\*[doc-arg\n[doc-arg-ptr]]' (#\n[.c])
240 .          nr doc-arg-ptr -1
241 .      \}\}
242 .      el \
243 .        nr doc-arg-ptr -1
244 .    \}
245 .    el \
246 .      nr doc-arg-ptr -1
247 .  \}
248 .
249 .  \" replace current argument with result
250 .  ds doc-arg\n[doc-arg-ptr] "\*[doc-str-At1]
251 .  nr doc-type\n[doc-arg-ptr] 2
252 .  ds doc-space\n[doc-arg-ptr] "\*[doc-space]
253 .
254 .  \" recompute space vector for remaining arguments
255 .  nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
256 .  nr doc-arg-limit \n[doc-arg-ptr]
257 .  if \n[doc-num-args] \
258 .    doc-parse-space-vector
259 .
260 .  doc-print-recursive
261 ..
262 .
263 .
264 .\" NS Fx user macro
265 .\" NS   print FreeBSD
266 .\" NS
267 .\" NS modifies:
268 .\" NS   doc-arg-ptr
269 .\" NS   doc-curr-font
270 .\" NS   doc-curr-size
271 .\" NS   doc-macro-name
272 .\" NS
273 .\" NS local variable:
274 .\" NS   doc-str-Fx
275 .\" NS   doc-str-Fx1
276 .\" NS
277 .\" NS width register `Fx' defined in doc-common
278 .
279 .\" we use the doc-operating-system-FreeBSD-* strings defined in doc-common
280 .
281 .de Fx
282 .  nr doc-curr-font \n[.f]
283 .  nr doc-curr-size \n[.ps]
284 .  ds doc-str-Fx \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
285 .
286 .  \" default value if no argument
287 .  ds doc-str-Fx1 \*[doc-Tn-font-size]\%FreeBSD\*[doc-str-Fx]
288 .
289 .  if !\n[doc-arg-limit] \
290 .    if \n[.$] \{\
291 .      ds doc-macro-name Fx
292 .      doc-parse-args \$@
293 .    \}
294 .
295 .  if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
296 .    nr doc-arg-ptr +1
297 .    ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
298 .      ie \A\a\*[doc-arg\n[doc-arg-ptr]]\a \{\
299 .        ie d doc-operating-system-FreeBSD-\*[doc-arg\n[doc-arg-ptr]] \
300 .          as doc-str-Fx1 \~\*[doc-operating-system-FreeBSD-\*[doc-arg\n[doc-arg-ptr]]]
301 .        el \{\
302 .          tmc mdoc warning: .Fx: Unknown FreeBSD version
303 .          tm1 " `\*[doc-arg\n[doc-arg-ptr]]' (#\n[.c])
304 .          as doc-str-Fx1 \~\*[doc-arg\n[doc-arg-ptr]]
305 .      \}\}
306 .      el \
307 .        as doc-str-Fx1 \~\*[doc-arg\n[doc-arg-ptr]]
308 .    \}
309 .    el \
310 .      nr doc-arg-ptr -1
311 .  \}
312 .
313 .  \" replace current argument with result
314 .  ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Fx1]
315 .  nr doc-type\n[doc-arg-ptr] 2
316 .  ds doc-space\n[doc-arg-ptr] "\*[doc-space]
317 .
318 .  \" recompute space vector for remaining arguments
319 .  nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
320 .  nr doc-arg-limit \n[doc-arg-ptr]
321 .  if \n[doc-num-args] \
322 .    doc-parse-space-vector
323 .
324 .  doc-print-recursive
325 ..
326 .
327 .
328 .\" NS Dx user macro
329 .\" NS   print DragonFly
330 .\" NS
331 .\" NS modifies:
332 .\" NS   doc-arg-ptr
333 .\" NS   doc-curr-font
334 .\" NS   doc-curr-size
335 .\" NS   doc-macro-name
336 .\" NS
337 .\" NS local variable:
338 .\" NS   doc-str-Dx
339 .\" NS   doc-str-Dx1
340 .\" NS
341 .\" NS width register `Dx' defined in doc-common
342 .
343 .\" we use the doc-operating-system-DragonFly-* strings defined in doc-common
344 .
345 .de Dx
346 .  nr doc-curr-font \n[.f]
347 .  nr doc-curr-size \n[.ps]
348 .  ds doc-str-Dx \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
349 .
350 .  \" default value if no argument
351 .  ds doc-str-Dx1 \*[doc-Tn-font-size]\%DragonFly\*[doc-str-Dx]
352 .
353 .  if !\n[doc-arg-limit] \
354 .    if \n[.$] \{\
355 .      ds doc-macro-name Dx
356 .      doc-parse-args \$@
357 .    \}
358 .
359 .  if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
360 .    nr doc-arg-ptr +1
361 .    ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
362 .      ie \A\a\*[doc-arg\n[doc-arg-ptr]]\a \{\
363 .        ie d doc-operating-system-DragonFly-\*[doc-arg\n[doc-arg-ptr]] \
364 .          as doc-str-Dx1 \~\*[doc-operating-system-DragonFly-\*[doc-arg\n[doc-arg-ptr]]]
365 .        el \{\
366 .          tmc mdoc warning: .Dx: Unknown DragonFly version
367 .          tm1 " `\*[doc-arg\n[doc-arg-ptr]]' (#\n[.c])
368 .          as doc-str-Dx1 \~\*[doc-arg\n[doc-arg-ptr]]
369 .      \}\}
370 .      el \
371 .        as doc-str-Dx1 \~\*[doc-arg\n[doc-arg-ptr]]
372 .    \}
373 .    el \
374 .      nr doc-arg-ptr -1
375 .  \}
376 .
377 .  \" replace current argument with result
378 .  ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Dx1]
379 .  nr doc-type\n[doc-arg-ptr] 2
380 .  ds doc-space\n[doc-arg-ptr] "\*[doc-space]
381 .
382 .  \" recompute space vector for remaining arguments
383 .  nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
384 .  nr doc-arg-limit \n[doc-arg-ptr]
385 .  if \n[doc-num-args] \
386 .    doc-parse-space-vector
387 .
388 .  doc-print-recursive
389 ..
390 .
391 .
392 .\" NS Nx user macro
393 .\" NS   print NetBSD
394 .\" NS
395 .\" NS modifies:
396 .\" NS   doc-arg-ptr
397 .\" NS   doc-curr-font
398 .\" NS   doc-curr-size
399 .\" NS   doc-macro-name
400 .\" NS
401 .\" NS local variable:
402 .\" NS   doc-str-Nx
403 .\" NS   doc-str-Nx1
404 .\" NS
405 .\" NS width register `Nx' defined in doc-common
406 .
407 .\" we use the doc-operating-system-NetBSD-* strings defined in doc-common
408 .
409 .de Nx
410 .  nr doc-curr-font \n[.f]
411 .  nr doc-curr-size \n[.ps]
412 .  ds doc-str-Nx \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
413 .
414 .  \" default value if no argument
415 .  ds doc-str-Nx1 \*[doc-Tn-font-size]\%N\s[\n[doc-curr-size]u]et
416 .  as doc-str-Nx1 \*[doc-Tn-font-size]BSD\*[doc-str-Nx]
417 .
418 .  if !\n[doc-arg-limit] \
419 .    if \n[.$] \{\
420 .      ds doc-macro-name Nx
421 .      doc-parse-args \$@
422 .    \}
423 .
424 .  if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
425 .    nr doc-arg-ptr +1
426 .    ie (\n[doc-type\n[doc-arg-ptr]] == 2) \{\
427 .      ie \A\a\*[doc-arg\n[doc-arg-ptr]]\a \{\
428 .        ie d doc-operating-system-NetBSD-\*[doc-arg\n[doc-arg-ptr]] \
429 .          as doc-str-Nx1 \~\*[doc-operating-system-NetBSD-\*[doc-arg\n[doc-arg-ptr]]]
430 .        el \{\
431 .          tmc mdoc warning: .Nx: Unknown NetBSD version
432 .          tm1 " `\*[doc-arg\n[doc-arg-ptr]]' (#\n[.c])
433 .          as doc-str-Nx1 \~\*[doc-arg\n[doc-arg-ptr]]
434 .      \}\}
435 .      el \
436 .        as doc-str-Nx1 \~\*[doc-arg\n[doc-arg-ptr]]
437 .    \}
438 .    el \
439 .      nr doc-arg-ptr -1
440 .  \}
441 .
442 .  \" replace current argument with result
443 .  ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Nx1]
444 .  nr doc-type\n[doc-arg-ptr] 2
445 .  ds doc-space\n[doc-arg-ptr] "\*[doc-space]
446 .
447 .  \" recompute space vector for remaining arguments
448 .  nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
449 .  nr doc-arg-limit \n[doc-arg-ptr]
450 .  if \n[doc-num-args] \
451 .    doc-parse-space-vector
452 .
453 .  doc-print-recursive
454 ..
455 .
456 .
457 .\" NS Ox user macro
458 .\" NS   print OpenBSD
459 .\" NS
460 .\" NS modifies:
461 .\" NS   doc-arg-ptr
462 .\" NS   doc-curr-font
463 .\" NS   doc-curr-size
464 .\" NS   doc-macro-name
465 .\" NS
466 .\" NS local variable:
467 .\" NS   doc-str-Ox
468 .\" NS   doc-str-Ox1
469 .\" NS
470 .\" NS width register `Ox' defined in doc-common
471 .
472 .de Ox
473 .  nr doc-curr-font \n[.f]
474 .  nr doc-curr-size \n[.ps]
475 .  ds doc-str-Ox \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
476 .
477 .  \" default value if no argument
478 .  ds doc-str-Ox1 \*[doc-Tn-font-size]\%OpenBSD\*[doc-str-Ox]
479 .
480 .  if !\n[doc-arg-limit] \
481 .    if \n[.$] \{\
482 .      ds doc-macro-name Ox
483 .      doc-parse-args \$@
484 .    \}
485 .
486 .  if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
487 .    nr doc-arg-ptr +1
488 .    ie (\n[doc-type\n[doc-arg-ptr]] == 2) \
489 .      as doc-str-Ox1 \~\*[doc-arg\n[doc-arg-ptr]]
490 .    el \
491 .      nr doc-arg-ptr -1
492 .  \}
493 .
494 .  \" replace current argument with result
495 .  ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Ox1]
496 .  nr doc-type\n[doc-arg-ptr] 2
497 .  ds doc-space\n[doc-arg-ptr] "\*[doc-space]
498 .
499 .  \" recompute space vector for remaining arguments
500 .  nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
501 .  nr doc-arg-limit \n[doc-arg-ptr]
502 .  if \n[doc-num-args] \
503 .    doc-parse-space-vector
504 .
505 .  doc-print-recursive
506 ..
507 .
508 .
509 .\" NS Bsx user macro
510 .\" NS   print BSD/OS
511 .\" NS
512 .\" NS modifies:
513 .\" NS   doc-arg-ptr
514 .\" NS   doc-curr-font
515 .\" NS   doc-curr-size
516 .\" NS   doc-macro-name
517 .\" NS
518 .\" NS local variable:
519 .\" NS   doc-str-Bsx
520 .\" NS   doc-str-Bsx1
521 .\" NS
522 .\" NS width register `Bsx' defined in doc-common
523 .
524 .de Bsx
525 .  nr doc-curr-font \n[.f]
526 .  nr doc-curr-size \n[.ps]
527 .  ds doc-str-Bsx \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
528 .
529 .  \" default value if no argument
530 .  ds doc-str-Bsx1 \*[doc-Tn-font-size]BSD/OS\*[doc-str-Bsx]
531 .
532 .  if !\n[doc-arg-limit] \
533 .    if \n[.$] \{\
534 .      ds doc-macro-name Bsx
535 .      doc-parse-args \$@
536 .    \}
537 .
538 .  if (\n[doc-arg-limit] > \n[doc-arg-ptr]) \{\
539 .    nr doc-arg-ptr +1
540 .    ie (\n[doc-type\n[doc-arg-ptr]] == 2) \
541 .      as doc-str-Bsx1 \~\*[doc-arg\n[doc-arg-ptr]]
542 .    el \
543 .      nr doc-arg-ptr -1
544 .  \}
545 .
546 .  \" replace current argument with result
547 .  ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Bsx1]
548 .  nr doc-type\n[doc-arg-ptr] 2
549 .  ds doc-space\n[doc-arg-ptr] "\*[doc-space]
550 .
551 .  \" recompute space vector for remaining arguments
552 .  nr doc-num-args (\n[doc-arg-limit] - \n[doc-arg-ptr])
553 .  nr doc-arg-limit \n[doc-arg-ptr]
554 .  if \n[doc-num-args] \
555 .    doc-parse-space-vector
556 .
557 .  doc-print-recursive
558 ..
559 .
560 .
561 .\" The Bt macro should go away now
562 .
563 .\" NS Bt user macro (not parsed, not callable)
564 .\" NS   print "is currently in beta test." (HISTORY section)
565 .\" NS
566 .\" NS width register `Bt' defined in doc-common
567 .
568 .de Bt
569 .  nop \&is currently in beta test.
570 ..
571 .
572 .
573 .\" NS Px user macro
574 .\" NS   print POSIX
575 .
576 .ds Px \*[doc-Tn-font-size]\%POSIX
577 .
578 .
579 .\" NS Ai user macro
580 .\" NS   print ANSI
581 .
582 .ds Ai \*[doc-Tn-font-size]\%ANSI
583 .
584 .
585 .\" NS St user macro
586 .\" NS   standards (posix, ansi - formal standard names)
587 .\" NS
588 .\" NS modifies:
589 .\" NS   doc-arg-ptr
590 .\" NS   doc-curr-font
591 .\" NS   doc-curr-size
592 .\" NS   doc-macro-name
593 .\" NS
594 .\" NS local variable:
595 .\" NS   doc-reg-St
596 .\" NS   doc-str-St
597 .\" NS   doc-str-St1
598 .\" NS   doc-str-St-XXX
599 .\" NS
600 .\" NS width register `St' defined in doc-common
601 .
602 .\" ANSI/ISO C
603 .ds doc-str-St--ansiC-89       \*[Ai] \*[doc-str-St]X\^3.159-1989
604 .as doc-str-St--ansiC-89       " (\*[Lq]\)\*[Ai]\~C\*[doc-str-St]\*[Rq])
605 .als doc-str-St--ansiC doc-str-St--ansiC-89
606 .ds doc-str-St--isoC           \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9899:1990
607 .as doc-str-St--isoC           " (\*[Lq]\*[doc-Tn-font-size]ISO\~C\^89\*[doc-str-St]\*[Rq])
608 .als doc-str-St--isoC-90 doc-str-St--isoC
609 .ds doc-str-St--isoC-amd1      \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9899/AMD1:1995
610 .as doc-str-St--isoC-amd1      " (\*[Lq]\*[doc-Tn-font-size]ISO\~C\^90\*[doc-str-St], Amendment 1\*[Rq])
611 .ds doc-str-St--isoC-99        \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9899:1999
612 .as doc-str-St--isoC-99        " (\*[Lq]\*[doc-Tn-font-size]ISO\~C\^99\*[doc-str-St]\*[Rq])
613 .
614 .\" POSIX Part 1: System API
615 .ds doc-str-St--p1003.1        \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1
616 .as doc-str-St--p1003.1        " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
617 .ds doc-str-St--p1003.1-88     \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1-1988
618 .as doc-str-St--p1003.1-88     " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
619 .ds doc-str-St--p1003.1-90     \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9945-1:1990
620 .as doc-str-St--p1003.1-90     " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
621 .als doc-str-St--iso9945-1-90 doc-str-St--p1003.1-90
622 .ds doc-str-St--p1003.1b-93    \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1b-1993
623 .as doc-str-St--p1003.1b-93    " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
624 .ds doc-str-St--p1003.1c-95    \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1c-1995
625 .as doc-str-St--p1003.1c-95    " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
626 .ds doc-str-St--p1003.1i-95    \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1i-1995
627 .as doc-str-St--p1003.1i-95    " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
628 .ds doc-str-St--p1003.1-96     \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9945-1:1996
629 .as doc-str-St--p1003.1-96     " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
630 .als doc-str-St--iso9945-1-96 doc-str-St--p1003.1-96
631 .ds doc-str-St--p1003.1g-2000  \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1g-2000
632 .as doc-str-St--p1003.1g-2000  " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
633 .ds doc-str-St--p1003.1-2001   \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1-2001
634 .as doc-str-St--p1003.1-2001   " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
635 .ds doc-str-St--p1003.1-2004   \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1-2004
636 .as doc-str-St--p1003.1-2004   " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq])
637 .
638 .\" POSIX Part 2: Shell and Utilities
639 .ds doc-str-St--p1003.2        \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.2
640 .as doc-str-St--p1003.2        " (\*[Lq]\)\*[Px]\*[doc-str-St].2\*[Rq])
641 .ds doc-str-St--p1003.2-92     \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.2-1992
642 .as doc-str-St--p1003.2-92     " (\*[Lq]\)\*[Px]\*[doc-str-St].2\*[Rq])
643 .ds doc-str-St--p1003.2a-92    \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.2a-1992
644 .as doc-str-St--p1003.2a-92    " (\*[Lq]\)\*[Px]\*[doc-str-St].2\*[Rq])
645 .ds doc-str-St--iso9945-2-93   \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 9945-2:1993
646 .as doc-str-St--iso9945-2-93   " (\*[Lq]\)\*[Px]\*[doc-str-St].2\*[Rq])
647 .
648 .\" X/Open
649 .ds doc-str-St--susv2          Version\~2 of the Single \*[doc-Tn-font-size]UNIX\*[doc-str-St] Specification
650 .as doc-str-St--susv2          " (\*[Lq]\*[doc-Tn-font-size]SUSv2\*[doc-str-St]\*[Rq])
651 .ds doc-str-St--svid4          System\~V Interface Definition, Fourth Edition
652 .as doc-str-St--svid4          " (\*[Lq]\*[doc-Tn-font-size]SVID\*[doc-str-St]\^4\*[Rq])
653 .ds doc-str-St--xbd5           \*[doc-Tn-font-size]X/Open\*[doc-str-St] System Interface Definitions Issue\~5
654 .as doc-str-St--xbd5           " (\*[Lq]\*[doc-Tn-font-size]XBD\*[doc-str-St]\^5\*[Rq])
655 .ds doc-str-St--xcu5           \*[doc-Tn-font-size]X/Open\*[doc-str-St] Commands and Utilities Issue\~5
656 .as doc-str-St--xcu5           " (\*[Lq]\*[doc-Tn-font-size]XCU\*[doc-str-St]\^5\*[Rq])
657 .ds doc-str-St--xcurses4.2     \*[doc-Tn-font-size]X/Open\*[doc-str-St] Curses Issue\~4.2
658 .as doc-str-St--xcurses4.2     " (\*[Lq]\*[doc-Tn-font-size]XCURSES\*[doc-str-St]\^4.2\*[Rq])
659 .ds doc-str-St--xns5           \*[doc-Tn-font-size]X/Open\*[doc-str-St] Networking Services Issue\~5
660 .as doc-str-St--xns5           " (\*[Lq]\*[doc-Tn-font-size]XNS\*[doc-str-St]\^5\*[Rq])
661 .ds doc-str-St--xns5.2         \*[doc-Tn-font-size]X/Open\*[doc-str-St] Networking Services Issue\~5.2
662 .as doc-str-St--xns5.2         " (\*[Lq]\*[doc-Tn-font-size]XNS\*[doc-str-St]\^5.2\*[Rq])
663 .ds doc-str-St--xpg3           \*[doc-Tn-font-size]X/Open\*[doc-str-St] Portability Guide Issue\~3
664 .as doc-str-St--xpg3           " (\*[Lq]\*[doc-Tn-font-size]XPG\*[doc-str-St]\^3\*[Rq])
665 .ds doc-str-St--xpg4           \*[doc-Tn-font-size]X/Open\*[doc-str-St] Portability Guide Issue\~4
666 .as doc-str-St--xpg4           " (\*[Lq]\*[doc-Tn-font-size]XPG\*[doc-str-St]\^4\*[Rq])
667 .ds doc-str-St--xpg4.2         \*[doc-Tn-font-size]X/Open\*[doc-str-St] Portability Guide Issue\~4.2
668 .as doc-str-St--xpg4.2         " (\*[Lq]\*[doc-Tn-font-size]XPG\*[doc-str-St]\^4.2\*[Rq])
669 .ds doc-str-St--xsh5           \*[doc-Tn-font-size]X/Open\*[doc-str-St] System Interfaces and Headers Issue\~5
670 .as doc-str-St--xsh5           " (\*[Lq]\*[doc-Tn-font-size]XSH\*[doc-str-St]\^5\*[Rq])
671 .
672 .\" Miscellaneous
673 .ds doc-str-St--ieee754        \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 754-1985
674 .ds doc-str-St--iso8802-3      \*[doc-Tn-font-size]ISO/IEC\*[doc-str-St] 8802-3:1989
675 .
676 .de St
677 .  if !\n[doc-arg-limit] \{\
678 .    ie \n[.$] \{\
679 .      ds doc-macro-name St
680 .      doc-parse-args \$@
681 .    \}
682 .    el \
683 .      doc-St-usage
684 .  \}
685 .
686 .  if !\n[doc-arg-limit] \
687 .    return
688 .
689 .  nr doc-arg-ptr +1
690 .  ie (\n[doc-arg-limit] >= \n[doc-arg-ptr]) \{\
691 .    nr doc-curr-font \n[.f]
692 .    nr doc-curr-size \n[.ps]
693 .    ds doc-str-St \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]
694 .
695 .    ds doc-str-St1
696 .    ie \A\a\*[doc-arg\n[doc-arg-ptr]]\a \{\
697 .      ie d doc-str-St-\*[doc-arg\n[doc-arg-ptr]] \
698 .        ds doc-str-St1 "\*[doc-str-St-\*[doc-arg\n[doc-arg-ptr]]]
699 .      el \{\
700 .        tmc "mdoc warning: .St: Unknown standard abbreviation
701 .        tm1 " `\*[doc-arg\n[doc-arg-ptr]]' (#\n[.c])
702 .        tm1 "              Please refer to the groff_mdoc(7) manpage for a
703 .        tm1 "              list of available standard abbreviations.
704 .    \}\}
705 .    el \
706 .      doc-St-usage
707 .
708 .    \" replacing argument with result
709 .    ds doc-arg\n[doc-arg-ptr] "\*[doc-str-St1]
710 .
711 .    doc-print-recursive
712 .  \}
713 .  el \{\
714 .    doc-St-usage
715 .    doc-reset-args
716 .  \}
717 ..
718 .
719 .
720 .\" NS doc-St-usage macro
721 .
722 .de doc-St-usage
723 .  tm1 "Usage: .St standard (#\n[.c])
724 .  tm1 "       Please refer to the groff_mdoc(7) manpage for a list of
725 .  tm1 "       available standard abbreviations.
726 ..
727 .
728 .
729 .\" NS Lb user macro
730 .\" NS   formal library names for LIBRARY sections
731 .\" NS
732 .\" NS modifies:
733 .\" NS   doc-arg-ptr
734 .\" NS   doc-curr-font
735 .\" NS   doc-curr-size
736 .\" NS   doc-macro-name
737 .\" NS
738 .\" NS local variable:
739 .\" NS   doc-reg-Lb
740 .\" NS   doc-str-Lb
741 .\" NS   doc-str-Lb-XXX
742 .\" NS
743 .\" NS width register `Lb' defined in doc-common
744 .
745 .ds doc-str-Lb-libarm32    ARM32 Architecture Library (libarm32, \-larm32)
746 .ds doc-str-Lb-libc        Standard C\~Library (libc, \-lc)
747 .ds doc-str-Lb-libcaps     CAPS IPC Library (libcaps, \-lcaps)
748 .ds doc-str-Lb-libcompat   Compatibility Library (libcompat, \-lcompat)
749 .ds doc-str-Lb-libcrypt    Crypt Library (libcrypt, \-lcrypt)
750 .ds doc-str-Lb-libcurses   Curses Library (libcurses, \-lcurses)
751 .ds doc-str-Lb-libedit     Command Line Editor Library (libedit, \-ledit)
752 .ds doc-str-Lb-libi386     i386 Architecture Library (libi386, \-li386)
753 .ds doc-str-Lb-libipsec    IPsec Policy Control Library (libipsec, \-lipsec)
754 .ds doc-str-Lb-libkcore    Kernel Memory Core Access Library (libkcore, \-lkcore)
755 .ds doc-str-Lb-libkinfo    Kernel Information Access Library (libkinfo, \-lkinfo)
756 .ds doc-str-Lb-libkvm      Kernel Data Access Library (libkvm, \-lkvm)
757 .ds doc-str-Lb-libm        Math Library (libm, \-lm)
758 .ds doc-str-Lb-libmenu     Curses Menu Library (libmenu, \-lmenu)
759 .ds doc-str-Lb-libossaudio OSS Audio Emulation Library (libossaudio, \-lossaudio)
760 .ds doc-str-Lb-libposix    \*[Px] Compatibility Library (libposix, \-lposix)
761 .ds doc-str-Lb-libresolv   DNS Resolver Library (libresolv, \-lresolv)
762 .ds doc-str-Lb-libtermcap  Termcap Access Library (libtermcap, \-ltermcap)
763 .ds doc-str-Lb-libutil     System Utilities Library (libutil, \-lutil)
764 .ds doc-str-Lb-libz        Compression Library (libz, \-lz)
765 .
766 .de Lb
767 .  if !\n[doc-arg-limit] \{\
768 .    ie \n[.$] \{\
769 .      ds doc-macro-name Lb
770 .      doc-parse-args \$@
771 .    \}
772 .    el \
773 .      tm Usage: .Lb library_name ... (#\n[.c])
774 .  \}
775 .
776 .  if !\n[doc-arg-limit] \
777 .    return
778 .
779 .  nr doc-arg-ptr +1
780 .  ie (\n[doc-arg-limit] >= \n[doc-arg-ptr]) \{\
781 .    ie d doc-str-Lb-\*[doc-arg\n[doc-arg-ptr]] \
782 .      ds doc-str-Lb "\*[doc-str-Lb-\*[doc-arg\n[doc-arg-ptr]]]
783 .    el \{\
784 .      tmc "mdoc warning: .Lb: no description for library
785 .      tm1 " `\*[doc-arg\n[doc-arg-ptr]]' available (#\n[.c])
786 .      ds doc-str-Lb library \*[Lq]\*[doc-arg\n[doc-arg-ptr]]\*[Rq]
787 .    \}
788 .
789 .    \" replacing argument with result
790 .    ds doc-arg\n[doc-arg-ptr] "\*[doc-str-Lb]
791 .
792 .    doc-print-recursive
793 .  \}
794 .  el \{\
795 .    tm Usage: .Lb library_name ... (#\n[.c])
796 .    doc-reset-args
797 .  \}
798 ..
799 .
800 .
801 .ec
802 .
803 .\" EOF