1 .\" Copyright (c) 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
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.
13 .\" ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change]
14 .\" 4. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)doc-common 8.1 (Berkeley) 06/08/93
35 .\" Macro Identifiers. For each user macro a corresponding register with
36 .\" the same name must exist. Its value must not be zero.
78 .nr Ds 6n\" many manpages still use this as a -width value
153 .\" macros which must be processed after the closing delimiter of `Op'
169 .nr doc-display-indent 6n
174 .ds doc-soft-space " \"
175 .ds doc-hard-space \~
182 .\" punctuation values (suffix=3, prefix=4)
196 .\" header assembly macros
198 .\" NS doc-document-title global string
199 .\" NS the title of the manual page
201 .ds doc-document-title UNTITLED
204 .\" NS doc-volume global string
205 .\" NS the volume where the manual page belongs to
210 .\" NS doc-section global string
211 .\" NS the manual section
216 .\" NS Dt user macro (not parsed, not callable)
217 .\" NS document title
220 .\" NS doc-document-title
223 .\" NS doc-command-name
225 .\" NS local variables:
226 .\" NS doc-volume-as-XXX
227 .\" NS doc-volume-ds-XXX
229 .\" NS width register `Dt' set above
231 .\" an alternative, more detailed scheme for naming the manual sections
233 .ds doc-volume-operating-system BSD
234 .nr doc-volume-operating-system-ateol 0
235 .ds doc-volume-ds-1 General Commands Manual
236 .ds doc-volume-ds-2 System Calls Manual
237 .ds doc-volume-ds-3 Library Functions Manual
238 .ds doc-volume-ds-4 Kernel Interfaces Manual
239 .ds doc-volume-ds-5 File Formats Manual
240 .ds doc-volume-ds-6 Games Manual
241 .ds doc-volume-ds-7 Miscellaneous Information Manual
242 .ds doc-volume-ds-8 System Manager's Manual
243 .ds doc-volume-ds-9 Kernel Developer's Manual
245 .ds doc-volume-ds-USD User's Supplementary Documents
246 .ds doc-volume-ds-PS1 Programmer's Supplementary Documents
247 .ds doc-volume-ds-AMD Ancestral Manual Documents
248 .ds doc-volume-ds-SMM System Manager's Manual
249 .ds doc-volume-ds-URM User's Reference Manual
250 .ds doc-volume-ds-PRM Programmer's Manual
251 .ds doc-volume-ds-KM Kernel Manual
252 .ds doc-volume-ds-IND Manual Master Index
253 .ds doc-volume-ds-LOCAL Local Manual
254 .ds doc-volume-ds-CON Contributed Software Manual
256 .als doc-volume-ds-MMI doc-volume-ds-IND
257 .als doc-volume-ds-LOC doc-volume-ds-LOCAL
259 .ds doc-volume-as-alpha alpha
260 .als doc-volume-as-Alpha doc-volume-as-alpha
261 .ds doc-volume-as-acorn26 acorn26
262 .ds doc-volume-as-acorn32 acorn32
263 .ds doc-volume-as-algor algor
264 .ds doc-volume-as-amd64 amd64
265 .ds doc-volume-as-amiga amiga
266 .ds doc-volume-as-arc arc
267 .ds doc-volume-as-arm26 arm26
268 .ds doc-volume-as-arm32 arm32
269 .ds doc-volume-as-atari atari
270 .ds doc-volume-as-bebox bebox
271 .ds doc-volume-as-cats cats
272 .ds doc-volume-as-cesfic cesfic
273 .ds doc-volume-as-cobalt cobalt
274 .ds doc-volume-as-dreamcast dreamcast
275 .ds doc-volume-as-evbarm evbarm
276 .ds doc-volume-as-evbmips evbmips
277 .ds doc-volume-as-evbppc evbppc
278 .ds doc-volume-as-evbsh3 evbsh3
279 .ds doc-volume-as-hp300 hp300
280 .ds doc-volume-as-hp700 hp700
281 .ds doc-volume-as-hpcarm hpcarm
282 .ds doc-volume-as-hpcmips hpcmips
283 .ds doc-volume-as-hpcsh hpcsh
284 .ds doc-volume-as-i386 i386
285 .ds doc-volume-as-luna68k luna68k
286 .ds doc-volume-as-m68k m68k
287 .ds doc-volume-as-mac68k mac68k
288 .ds doc-volume-as-macppc macppc
289 .ds doc-volume-as-mips mips
290 .ds doc-volume-as-mipsco mipsco
291 .ds doc-volume-as-mmeye mmeye
292 .ds doc-volume-as-mvme68k mvme68k
293 .ds doc-volume-as-mvmeppc mvmeppc
294 .ds doc-volume-as-netwinder netwinder
295 .ds doc-volume-as-news68k news68k
296 .ds doc-volume-as-newsmips newsmips
297 .ds doc-volume-as-next68k next68k
298 .ds doc-volume-as-ofppc ofppc
299 .ds doc-volume-as-pc532 pc532
300 .ds doc-volume-as-playstation2 playstation2
301 .ds doc-volume-as-pmax pmax
302 .ds doc-volume-as-pmppc pmppc
303 .ds doc-volume-as-powerpc powerpc
304 .ds doc-volume-as-prep prep
305 .ds doc-volume-as-sandpoint sandpoint
306 .ds doc-volume-as-sbmips sbmips
307 .ds doc-volume-as-sgimips sgimips
308 .ds doc-volume-as-sh3 sh3
309 .ds doc-volume-as-shark shark
310 .ds doc-volume-as-sparc sparc
311 .ds doc-volume-as-sparc64 sparc64
312 .ds doc-volume-as-sun2 sun2
313 .ds doc-volume-as-sun3 sun3
314 .ds doc-volume-as-tahoe tahoe
315 .ds doc-volume-as-vax vax
316 .ds doc-volume-as-x68k x68k
317 .ds doc-volume-as-x86_64 x86_64
320 . \" reset default arguments
321 . ds doc-document-title UNTITLED
322 . ds doc-volume LOCAL
323 . ds doc-section Null
324 . ds doc-command-name
327 . ds doc-document-title "\$1
332 . if ((\$2 >= 1) & (\$2 <= 9)) \{\
333 . ie \n[doc-volume-operating-system-ateol] \{\
334 . ds doc-volume "\*[doc-volume-ds-\$2] \*[doc-volume-operating-system]
336 . if d doc-volume-as-\$3 \
337 . as doc-volume "/\*[doc-volume-as-\$3]
340 . ds doc-volume "\*[doc-volume-operating-system]
342 . if d doc-volume-as-\$3 \
343 . as doc-volume "/\*[doc-volume-as-\$3]
345 . as doc-volume " \*[doc-volume-ds-\$2]
349 . ds doc-volume DRAFT
350 . el \{ .ie "\$2"draft" \
351 . ds doc-volume DRAFT
352 . el .if "\$2"paper" \
353 . ds doc-volume UNTITLED
356 . if d doc-volume-ds-\$3 \
357 . ds doc-volume "\*[doc-volume-ds-\$3]
361 . if "\*[doc-volume]"LOCAL" \
372 .\" NS doc-default-operating-system global string
373 .\" NS the exact (default) version of the operating system
375 .\" NS override this in `mdoc.local', if necessary
377 .ds doc-default-operating-system BSD
380 .\" NS doc-operating-system global string
381 .\" NS the exact version of the operating system
383 .ds doc-operating-system
386 .\" NS Os user macro (not parsed, not callable)
387 .\" NS operating system
390 .\" NS doc-operating-system
391 .\" NS doc-command-name
393 .\" NS local variables:
394 .\" NS doc-operating-system-XXX-XXX
396 .\" NS width register `Os' set above
398 .ds doc-operating-system-ATT-7 7th\~Edition
399 .als doc-operating-system-ATT-7th doc-operating-system-ATT-7
400 .ds doc-operating-system-ATT-3 System\~III
401 .als doc-operating-system-ATT-III doc-operating-system-ATT-3
402 .ds doc-operating-system-ATT-V System\~V
403 .ds doc-operating-system-ATT-V.2 System\~V Release\~2
404 .ds doc-operating-system-ATT-V.3 System\~V Release\~3
405 .ds doc-operating-system-ATT-V.4 System\~V Release\~4
407 .ds doc-operating-system-BSD-3 3rd\~Berkeley Distribution
408 .ds doc-operating-system-BSD-4 4th\~Berkeley Distribution
409 .ds doc-operating-system-BSD-4.1 4.1\~Berkeley Distribution
410 .ds doc-operating-system-BSD-4.2 4.2\~Berkeley Distribution
411 .ds doc-operating-system-BSD-4.3 4.3\~Berkeley Distribution
412 .ds doc-operating-system-BSD-4.3T 4.3-Tahoe Berkeley Distribution
413 .ds doc-operating-system-BSD-4.3R 4.3-Reno Berkeley Distribution
414 .als doc-operating-system-BSD-4.3t doc-operating-system-BSD-4.3T
415 .als doc-operating-system-BSD-4.3r doc-operating-system-BSD-4.3R
416 .ds doc-operating-system-BSD-4.4 4.4BSD
418 .ds doc-operating-system-NetBSD-0.8 0.8
419 .ds doc-operating-system-NetBSD-0.8a 0.8A
420 .ds doc-operating-system-NetBSD-0.9 0.9
421 .ds doc-operating-system-NetBSD-0.9a 0.9A
422 .ds doc-operating-system-NetBSD-1.0 1.0
423 .ds doc-operating-system-NetBSD-1.0a 1.0A
424 .ds doc-operating-system-NetBSD-1.1 1.1
425 .ds doc-operating-system-NetBSD-1.2 1.2
426 .ds doc-operating-system-NetBSD-1.2a 1.2A
427 .ds doc-operating-system-NetBSD-1.2b 1.2B
428 .ds doc-operating-system-NetBSD-1.2c 1.2C
429 .ds doc-operating-system-NetBSD-1.2d 1.2D
430 .ds doc-operating-system-NetBSD-1.2e 1.2E
431 .ds doc-operating-system-NetBSD-1.3 1.3
432 .ds doc-operating-system-NetBSD-1.3a 1.3A
433 .ds doc-operating-system-NetBSD-1.4 1.4
434 .ds doc-operating-system-NetBSD-1.4.1 1.4.1
435 .ds doc-operating-system-NetBSD-1.4.2 1.4.2
436 .ds doc-operating-system-NetBSD-1.4.3 1.4.3
437 .ds doc-operating-system-NetBSD-1.5 1.5
438 .ds doc-operating-system-NetBSD-1.5.1 1.5.1
439 .ds doc-operating-system-NetBSD-1.5.2 1.5.2
440 .ds doc-operating-system-NetBSD-1.5.3 1.5.3
441 .ds doc-operating-system-NetBSD-1.6 1.6
442 .ds doc-operating-system-NetBSD-1.6.1 1.6.1
443 .ds doc-operating-system-NetBSD-1.6.2 1.6.2
444 .ds doc-operating-system-NetBSD-1.6.3 1.6.3
445 .ds doc-operating-system-NetBSD-2.0 2.0
446 .ds doc-operating-system-NetBSD-2.0.1 2.0.1
447 .ds doc-operating-system-NetBSD-2.0.2 2.0.2
448 .ds doc-operating-system-NetBSD-2.0.3 2.0.3
449 .ds doc-operating-system-NetBSD-2.1 2.1
450 .ds doc-operating-system-NetBSD-3.0 3.0
451 .ds doc-operating-system-NetBSD-3.0.1 3.0.1
452 .ds doc-operating-system-NetBSD-3.0.2 3.0.2
453 .ds doc-operating-system-NetBSD-3.1 3.1
454 .ds doc-operating-system-NetBSD-4.0 4.0
455 .ds doc-operating-system-NetBSD-4.0.1 4.0.1
457 .ds doc-operating-system-FreeBSD-1.0 1.0
458 .ds doc-operating-system-FreeBSD-1.1 1.1
459 .ds doc-operating-system-FreeBSD-1.1.5 1.1.5
460 .ds doc-operating-system-FreeBSD-1.1.5.1 1.1.5.1
461 .ds doc-operating-system-FreeBSD-2.0 2.0
462 .ds doc-operating-system-FreeBSD-2.0.5 2.0.5
463 .ds doc-operating-system-FreeBSD-2.1 2.1
464 .ds doc-operating-system-FreeBSD-2.1.5 2.1.5
465 .ds doc-operating-system-FreeBSD-2.1.6 2.1.6
466 .ds doc-operating-system-FreeBSD-2.1.7 2.1.7
467 .ds doc-operating-system-FreeBSD-2.2 2.2
468 .ds doc-operating-system-FreeBSD-2.2.1 2.2.1
469 .ds doc-operating-system-FreeBSD-2.2.2 2.2.2
470 .ds doc-operating-system-FreeBSD-2.2.5 2.2.5
471 .ds doc-operating-system-FreeBSD-2.2.6 2.2.6
472 .ds doc-operating-system-FreeBSD-2.2.7 2.2.7
473 .ds doc-operating-system-FreeBSD-2.2.8 2.2.8
474 .ds doc-operating-system-FreeBSD-3.0 3.0
475 .ds doc-operating-system-FreeBSD-3.1 3.1
476 .ds doc-operating-system-FreeBSD-3.2 3.2
477 .ds doc-operating-system-FreeBSD-3.3 3.3
478 .ds doc-operating-system-FreeBSD-3.4 3.4
479 .ds doc-operating-system-FreeBSD-3.5 3.5
480 .ds doc-operating-system-FreeBSD-4.0 4.0
481 .ds doc-operating-system-FreeBSD-4.1 4.1
482 .ds doc-operating-system-FreeBSD-4.1.1 4.1.1
483 .ds doc-operating-system-FreeBSD-4.2 4.2
484 .ds doc-operating-system-FreeBSD-4.3 4.3
485 .ds doc-operating-system-FreeBSD-4.4 4.4
486 .ds doc-operating-system-FreeBSD-4.5 4.5
487 .ds doc-operating-system-FreeBSD-4.6 4.6
488 .ds doc-operating-system-FreeBSD-4.6.2 4.6.2
489 .ds doc-operating-system-FreeBSD-4.7 4.7
490 .ds doc-operating-system-FreeBSD-4.8 4.8
491 .ds doc-operating-system-FreeBSD-4.9 4.9
492 .ds doc-operating-system-FreeBSD-4.10 4.10
493 .ds doc-operating-system-FreeBSD-4.11 4.11
494 .ds doc-operating-system-FreeBSD-5.0 5.0
495 .ds doc-operating-system-FreeBSD-5.1 5.1
496 .ds doc-operating-system-FreeBSD-5.2 5.2
497 .ds doc-operating-system-FreeBSD-5.2.1 5.2.1
498 .ds doc-operating-system-FreeBSD-5.3 5.3
499 .ds doc-operating-system-FreeBSD-5.4 5.4
500 .ds doc-operating-system-FreeBSD-5.5 5.5
501 .ds doc-operating-system-FreeBSD-6.0 6.0
502 .ds doc-operating-system-FreeBSD-6.1 6.1
503 .ds doc-operating-system-FreeBSD-6.2 6.2
504 .ds doc-operating-system-FreeBSD-6.3 6.3
505 .ds doc-operating-system-FreeBSD-6.4 6.4
506 .ds doc-operating-system-FreeBSD-7.0 7.0
507 .ds doc-operating-system-FreeBSD-7.1 7.1
509 .ds doc-operating-system-Darwin-8.0.0 8.0.0
510 .ds doc-operating-system-Darwin-8.1.0 8.1.0
511 .ds doc-operating-system-Darwin-8.2.0 8.2.0
512 .ds doc-operating-system-Darwin-8.3.0 8.3.0
513 .ds doc-operating-system-Darwin-8.4.0 8.4.0
514 .ds doc-operating-system-Darwin-8.5.0 8.5.0
515 .ds doc-operating-system-Darwin-8.6.0 8.6.0
516 .ds doc-operating-system-Darwin-8.7.0 8.7.0
517 .ds doc-operating-system-Darwin-8.8.0 8.8.0
518 .ds doc-operating-system-Darwin-8.9.0 8.9.0
519 .ds doc-operating-system-Darwin-8.10.0 8.10.0
520 .ds doc-operating-system-Darwin-8.11.0 8.11.0
521 .ds doc-operating-system-Darwin-9.0.0 9.0.0
522 .ds doc-operating-system-Darwin-9.1.0 9.1.0
523 .ds doc-operating-system-Darwin-9.2.0 9.2.0
524 .ds doc-operating-system-Darwin-9.3.0 9.3.0
525 .ds doc-operating-system-Darwin-9.4.0 9.4.0
526 .ds doc-operating-system-Darwin-9.5.0 9.5.0
527 .ds doc-operating-system-Darwin-9.6.0 9.6.0
529 .ds doc-operating-system-DragonFly-1.0 1.0
530 .ds doc-operating-system-DragonFly-1.1 1.1
531 .ds doc-operating-system-DragonFly-1.2 1.2
532 .ds doc-operating-system-DragonFly-1.3 1.3
533 .ds doc-operating-system-DragonFly-1.4 1.4
534 .ds doc-operating-system-DragonFly-1.5 1.5
535 .ds doc-operating-system-DragonFly-1.6 1.6
536 .ds doc-operating-system-DragonFly-1.8 1.8
537 .ds doc-operating-system-DragonFly-1.8.1 1.8.1
538 .ds doc-operating-system-DragonFly-1.10 1.10
539 .ds doc-operating-system-DragonFly-1.12 1.12
540 .ds doc-operating-system-DragonFly-1.12.2 1.12.2
541 .ds doc-operating-system-DragonFly-2.0 2.0
544 . ds doc-command-name
547 . ds doc-operating-system "\*[doc-default-operating-system]
548 . el \{ .ie "\$1"ATT" \{\
549 . ds doc-operating-system AT&T
551 . ie d doc-operating-system-ATT-\$2 \
552 . as doc-operating-system " \*[doc-operating-system-ATT-\$2]
554 . as doc-operating-system " UNIX
556 . el \{ .ie "\$1"BSD" \{\
558 . ie d doc-operating-system-BSD-\$2 \
559 . ds doc-operating-system "\*[doc-operating-system-BSD-\$2]
561 . tm mdoc warning: .Os: Unknown BSD version `\$2' (#\n[.c])
563 . el \{ .ie "\$1"FreeBSD" \{\
564 . ds doc-operating-system FreeBSD
566 . ie d doc-operating-system-FreeBSD-\$2 \
567 . as doc-operating-system \~\*[doc-operating-system-FreeBSD-\$2]
569 . tm mdoc warning: .Os: Unknown FreeBSD version `\$2' (#\n[.c])
571 . el \{ .ie "\$1"NetBSD" \{\
572 . ds doc-operating-system NetBSD
574 . ie d doc-operating-system-NetBSD-\$2 \
575 . as doc-operating-system \~\*[doc-operating-system-NetBSD-\$2]
577 . tm mdoc warning: .Os: Unknown NetBSD version `\$2' (#\n[.c])
579 . el \{ .ie "\$1"Darwin" \{\
580 . ds doc-operating-system Darwin
582 . ie d doc-operating-system-Darwin-\$2 \
583 . as doc-operating-system \~\*[doc-operating-system-Darwin-\$2]
585 . tm mdoc warning: .Os: Unknown Darwin version `\$2' (#\n[.c])
588 . ds doc-operating-system \$1
590 . as doc-operating-system " \$2
595 .\" NS doc-date-string global string
596 .\" NS the manual page date as set by `Dd'
601 .\" NS Dd user macro (not parsed, not callable)
602 .\" NS set document date
605 .\" NS doc-date-string
606 .\" NS doc-command-name
608 .\" NS local variables:
611 .\" NS width register `Dd' set above
613 .ds doc-date-1 January
614 .ds doc-date-2 February
620 .ds doc-date-8 August
621 .ds doc-date-9 September
622 .ds doc-date-10 October
623 .ds doc-date-11 November
624 .ds doc-date-12 December
627 . ds doc-command-name
630 . ie "\$1"$Mdocdate:" \
631 . ds doc-date-string \$2\~\$3, \$4
632 . el .ie (\n[.$] == 3) \
633 . ds doc-date-string \$1\~\$2 \$3
635 . ds doc-date-string "\*[doc-date-\n[mo]]
636 . as doc-date-string \~\n[dy], \n[year]
640 . ds doc-date-string Epoch
644 .\" NS doc-hyphen-flags global register
645 .\" NS the parameter for the `.hy' request
647 .\" NS override this in `mdoc.local', if necessary.
649 .nr doc-hyphen-flags 12
652 .\" NS doc-header macro
653 .\" NS print page header
655 .\" NS local variables:
661 . doc-setup-page-layout
663 . sp \n[doc-header-space]u
664 . nr doc-reg-dh \w'\*[doc-caption-font]\*[doc-header-string]\f[]'
665 . nr doc-reg-dh1 \w'\*[doc-caption-font2]\*[doc-volume]\f[]'
666 . if (\n[doc-reg-dh] + \n[doc-reg-dh1] + \n[doc-reg-dh] >= \n[.lt]) \{\
667 . while (\n[doc-reg-dh] + \n[doc-reg-dh1] + \n[doc-reg-dh] >= \n[.lt]) \{\
668 . substring doc-header-string 0 -2
669 . nr doc-reg-dh \w'\*[doc-caption-font]\*[doc-header-string]\|.\|.\|.\f[]'
671 . as doc-header-string "\|.\|.\|.
673 . tl
\a\*[doc-caption-font]\*[doc-header-string]\f[]
\a\*[doc-caption-font2]\*[doc-volume]\f[]
\a\*[doc-caption-font]\*[doc-header-string]\f[]
\a
675 . sp \n[doc-header-space]u
683 .\" NS doc-footer macro
684 .\" NS print page footer
690 . ev doc-caption-enviroment
691 . doc-setup-page-layout
692 . sp \n[doc-footer-space]u
695 . tl
\a%
\a\*[doc-caption-font2]\*[doc-date-string]\f[]
\a\*[doc-caption-font]\*[doc-operating-system]\f[]
\a
697 . tl
\a\*[doc-caption-font]\*[doc-operating-system]\f[]
\a\*[doc-caption-font2]\*[doc-date-string]\f[]
\a%
\a
700 . tl
\a\*[doc-caption-font]\*[doc-operating-system]\f[]
\a\*[doc-caption-font2]\*[doc-date-string]\f[]
\a%
\a
707 .\" NS doc-check-depth macro
708 .\" NS check paired macros
711 . if \n[doc-list-depth] \{\
712 . tm mdoc warning: A .Bl directive has no matching .El (#\n[.c])
713 . nr doc-list-depth 0
715 . if \n[doc-display-depth] \{\
716 . tm mdoc warning: A .Bd directive has no matching .Ed (#\n[.c])
717 . nr doc-display-depth 0
719 . if \n[doc-fontmode-depth] \{\
720 . tm mdoc warning: A .Bf directive has no matching .Ef (#\n[.c])
721 . nr doc-fontmode-depth 0
726 .\" NS doc-end-macro macro
730 . \" We may still have a partial line in the environment. If this is the
731 . \" case, and we happen to be on the last line of the page, the `.fl'
732 . \" request will cause the page to be ejected and troff will immediately
733 . \" exit. If we are in nroff mode, this would be unfortunate, since we
734 . \" would never get a chance to output the footer. So we fudge the page
735 . \" length to make sure that the last page is never ejected until we want
746 . tl
\a\*[doc-caption-font]\*[doc-operating-system]\f[]
\a\*[doc-caption-font2]\*[doc-date-string]\f[]
\a\*[doc-caption-font]\*[doc-operating-system]\f[]
\a
747 . \" suppress empty lines after the footer
753 .\" NS doc-paragraph macro
754 .\" NS insert a paragraph
757 . sp \n[doc-paragraph-space]u
764 .\" NS Pp user macro (not parsed, not callable)
767 .\" NS width register `Pp' set above
769 .als Pp doc-paragraph
772 .\" NS Lp user macro (not parsed, not callable)
775 .\" NS width register `Lp' set above
777 .als Lp doc-paragraph
781 . tm Not a \-mdoc command: .LP (#\n[.c])
786 . tm Not a \-mdoc command: .PP (#\n[.c])
791 . tm Not a \-mdoc command: .pp (#\n[.c])
796 . tm Not a \-mdoc command: .SH (#\n[.c])
800 .\" NS Nd user macro (not parsed, not callable)
801 .\" NS print name description
803 .\" NS width register `Nd' set above
810 .\" NS doc-in-synopsis-section global register (bool)
811 .\" NS whether we are in the `synopsis' section
813 .nr doc-in-synopsis-section 0
816 .\" NS doc-in-library-section global register (bool)
817 .\" NS whether we are in the `library' section
819 .nr doc-in-library-section 0
822 .\" NS doc-in-see-also-section global register (bool)
823 .\" NS whether we are in the `see also' section
825 .nr doc-in-see-also-section 0
828 .\" NS doc-in-files-section global register (bool)
829 .\" NS whether we are in the `files' section
831 .nr doc-in-files-section 0
834 .\" NS doc-in-authors-section global register (bool)
835 .\" NS whether we are in the `authors' section
837 .nr doc-in-authors-section 0
840 .\" NS doc-first-parameter macro
841 .\" NS return first parameter
843 .\" NS local variables:
846 .de doc-first-parameter
847 . ds doc-str-dfp "\$1
851 .\" NS Sh user macro (not callable)
852 .\" NS section headers
855 .\" NS doc-func-args-processed
856 .\" NS doc-func-count
857 .\" NS doc-in-authors-section
858 .\" NS doc-in-files-section
859 .\" NS doc-in-library-section
860 .\" NS doc-in-see-also-section
861 .\" NS doc-in-synopsis-section
862 .\" NS doc-indent-synopsis
863 .\" NS doc-indent-synopsis-active
865 .\" NS doc-num-func-args
867 .\" NS local variables:
870 .\" NS doc-section-XXX
872 .\" NS width register `Sh' set in doc-common
874 .ds doc-section-name NAME
875 .ds doc-section-synopsis SYNOPSIS
876 .ds doc-section-library LIBRARY
877 .ds doc-section-description DESCRIPTION
878 .ds doc-section-see-also SEE
879 .ds doc-section-files FILES
880 .ds doc-section-authors AUTHORS
883 . ie \n[doc-arg-limit] \{\
884 . \" we only allow `Sh' within `Sh'; it will change the font back to
886 . ie "\*[doc-macro-name]"Sh" \{\
888 . ie (\n[doc-arg-limit] >= \n[doc-arg-ptr]) \{\
889 . nr doc-curr-font \n[.f]
890 . nr doc-curr-size \n[.ps]
891 . nop \*[doc-Sh-font]\c
892 . doc-print-recursive
895 . tm Usage: .Sh section_name ... (#\n[.c])
899 . tm Usage: .Sh not callable by other macros (#\n[.c])
904 . tm Usage: .Sh section_name ... (#\n[.c])
908 . ds doc-macro-name Sh
914 . \" this resolves e.g. `.Sh "SEE ALSO"'
915 . doc-first-parameter \$*
917 . ie "\*[doc-str-dfp]"\*[doc-section-name]" \{\
922 . nr doc-in-synopsis-section 0
923 . nr doc-in-library-section 0
924 . nr doc-in-see-also-section 0
925 . nr doc-in-files-section 0
926 . nr doc-in-authors-section 0
928 . ie "\*[doc-str-dfp]"\*[doc-section-synopsis]" \{\
931 . nr doc-in-synopsis-section 1
932 . nr doc-indent-synopsis 0
933 . nr doc-indent-synopsis-active 0
935 . el \{ .ie "\*[doc-str-dfp]"\*[doc-section-library]" \{\
936 . nr doc-in-library-section 1
938 . el \{ .ie "\*[doc-str-dfp]"\*[doc-section-description]" \{\
940 . nr doc-func-count 0
941 . nr doc-func-args-processed 0
942 . nr doc-num-func-args 0
944 . el \{ .ie "\*[doc-str-dfp]"\*[doc-section-see-also]" \{\
947 . nr doc-in-see-also-section 1
949 . el \{ .ie "\*[doc-str-dfp]"\*[doc-section-files]" \
950 . nr doc-in-files-section 1
951 . el .if "\*[doc-str-dfp]"\*[doc-section-authors]" \
952 . nr doc-in-authors-section 1
956 . nr doc-have-author 0
959 . doc-setup-page-layout
968 . nr doc-reg-Sh \n[.ss]
969 . nr doc-reg-Sh1 \n[.sss]
970 . ss (\n[.ss] * 5 / 3) (\n[.sss] * 5 / 3)
974 . nr doc-curr-font \n[.f]
975 . nr doc-curr-size \n[.ps]
976 . nop \*[doc-Sh-font]\c
977 . doc-print-recursive
980 . ss \n[doc-reg-Sh] \n[doc-reg-Sh1]
982 . in +\n[doc-subheader-indent]u
990 .\" NS Ss user macro (not callable)
993 .\" NS local variable:
997 .\" NS width register `Ss' set above
1000 . ie \n[doc-arg-limit] \{\
1001 . \" we only allow `Ss' within `Ss'; it will change the font back to
1003 . ie "\*[doc-macro-name]"Ss" \{\
1005 . ie (\n[doc-arg-limit] >= \n[doc-arg-ptr]) \{\
1006 . nr doc-curr-font \n[.f]
1007 . nr doc-curr-size \n[.ps]
1008 . nop \*[doc-Sh-font]\c
1009 . doc-print-recursive
1012 . tm Usage: .Ss subsection_name ... (#\n[.c])
1016 . tm Usage: .Ss not callable by other macros (#\n[.c])
1021 . tm Usage: .Ss subsection_name ... (#\n[.c])
1025 . ds doc-macro-name Ss
1026 . doc-parse-args \$@
1033 . nr doc-reg-Ss \n[.ss]
1034 . nr doc-reg-Ss1 \n[.sss]
1035 . ss (\n[.ss] * 5 / 4) (\n[.sss] * 5 / 4)
1038 . nr doc-curr-font \n[.f]
1039 . nr doc-curr-size \n[.ps]
1040 . nop \*[doc-Sh-font]\c
1041 . doc-print-recursive
1043 . ss \n[doc-reg-Ss] \n[doc-reg-Ss1]
1056 .\" NS Rd macro (not parsed, not callable)
1057 .\" NS print global register dump to stderr
1059 .\" NS local variables:
1063 . tm MDOC GLOBAL REGISTER DUMP
1064 . tm doc-macro-name == `\*[doc-macro-name]'
1065 . tm doc-arg-limit == \n[doc-arg-limit]
1066 . tm doc-num-args == \n[doc-num-args]
1067 . tm doc-arg-ptr == \n[doc-arg-ptr]
1070 . while (\n[doc-reg-Rd] <= \n[doc-arg-limit]) \{\
1071 . tm doc-arg\n[doc-reg-Rd] == `\*[doc-arg\n[doc-reg-Rd]]'
1072 . tm doc-type\n[doc-reg-Rd] == \n[doc-type\n[doc-reg-Rd]]
1073 . tm doc-space\n[doc-reg-Rd] == `\*[doc-space\n[doc-reg-Rd]]'
1077 . tm doc-curr-font == \n[doc-curr-font]
1078 . tm doc-curr-size == \n[doc-curr-size]
1079 . tm doc-indent-synopsis == \n[doc-indent-synopsis]
1080 . tm doc-indent-synopsis-active == \n[doc-indent-synopsis-active]
1081 . tm doc-have-decl == \n[doc-have-decl]
1082 . tm doc-have-var == \n[doc-have-var]
1083 . tm doc-command-name == `\*[doc-command-name]'
1084 . tm doc-quote-left == `\*[doc-quote-left]'
1085 . tm doc-quote-right == `\*[doc-quote-right]'
1086 . tm doc-nesting-level == \n[doc-nesting-level]
1087 . tm doc-in-list == \n[doc-in-list]
1088 . tm doc-space == `\*[doc-space]'
1089 . tm doc-saved-space == `\*[doc-saved-space]'
1090 . tm doc-space-mode == \n[doc-space-mode]
1091 . tm doc-have-space == \n[doc-have-space]
1092 . tm doc-have-slot == \n[doc-have-slot]
1093 . tm doc-keep-type == \n[doc-keep-type]
1094 . tm doc-display-depth == \n[doc-display-depth]
1095 . tm doc-is-compact == \n[doc-is-compact]
1098 . while (\n[doc-reg-Rd] <= \n[doc-display-depth]) \{\
1099 . tm doc-display-type-stack\n[doc-reg-Rd] == `\*[doc-display-type-stack\n[doc-reg-Rd]]'
1100 . tm doc-display-indent-stack\n[doc-reg-Rd] == \n[doc-display-indent-stack\n[doc-reg-Rd]]
1101 . tm doc-display-ad-stack\n[doc-reg-Rd] == \n[doc-display-ad-stack\n[doc-reg-Rd]]
1102 . tm doc-display-fi-stack\n[doc-reg-Rd] == \n[doc-display-fi-stack\n[doc-reg-Rd]]
1103 . tm doc-display-ft-stack\n[doc-reg-Rd] == \n[doc-display-ft-stack\n[doc-reg-Rd]]
1104 . tm doc-display-ps-stack\n[doc-reg-Rd] == \n[doc-display-ps-stack\n[doc-reg-Rd]]
1108 . tm doc-fontmode-depth == \n[doc-fontmode-depth]
1111 . while (\n[doc-reg-Rd] <= \n[doc-fontmode-depth]) \{\
1112 . tm doc-fontmode-font-stack\n[doc-reg-Rd] == `\n[doc-fontmode-font-stack\n[doc-reg-Rd]]'
1113 . tm doc-fontmode-size-stack\n[doc-reg-Rd] == `\n[doc-fontmode-size-stack\n[doc-reg-Rd]]'
1117 . tm doc-list-depth == \n[doc-list-depth]
1120 . while (\n[doc-reg-Rd] <= \n[doc-list-depth]) \{\
1121 . tm doc-list-type-stack\n[doc-reg-Rd] == `\*[doc-list-type-stack\n[doc-reg-Rd]]'
1122 . tm doc-list-have-indent-stack\n[doc-reg-Rd] == \n[doc-list-have-indent-stack\n[doc-reg-Rd]]
1123 . tm doc-list-indent-stack\n[doc-reg-Rd] == \n[doc-list-indent-stack\n[doc-reg-Rd]]
1124 . tm doc-compact-list-stack\n[doc-reg-Rd] == \n[doc-compact-list-stack\n[doc-reg-Rd]]
1125 . tm doc-tag-prefix-stack\n[doc-reg-Rd] == `\*[doc-tag-prefix-stack\n[doc-reg-Rd]]'
1126 . tm doc-tag-width-stack\n[doc-reg-Rd] == `\*[doc-tag-width-stack\n[doc-reg-Rd]]'
1127 . tm doc-list-offset-stack\n[doc-reg-Rd] == \n[doc-list-offset-stack\n[doc-reg-Rd]]
1128 . tm doc-enum-list-count-stack\n[doc-reg-Rd] == \n[doc-enum-list-count-stack\n[doc-reg-Rd]]
1132 . tm doc-saved-Pa-font == `\*[doc-saved-Pa-font]'
1133 . tm doc-curr-type == \n[doc-curr-type]
1134 . tm doc-curr-arg == `\*[doc-curr-arg]'
1135 . tm doc-diag-list-input-line-count == \n[doc-diag-list-input-line-count]
1136 . tm doc-num-columns == \n[doc-num-columns]
1137 . tm doc-column-indent-width == \n[doc-column-indent-width]
1138 . tm doc-is-func == \n[doc-is-func]
1139 . tm doc-have-old-func == \n[doc-have-old-func]
1140 . tm doc-func-arg-count == \n[doc-func-arg-count]
1141 . tm doc-func-arg == `\*[doc-func-arg]'
1142 . tm doc-num-func-args == \n[doc-num-func-args]
1143 . tm doc-func-args-processed == \n[doc-func-args-processed]
1144 . tm doc-have-func == \n[doc-have-func]
1145 . tm doc-is-reference == \n[doc-is-reference]
1146 . tm doc-reference-count == \n[doc-reference-count]
1147 . tm doc-author-count == \n[doc-author-count]
1150 . while (\n[doc-reg-Rd] <= \n[doc-author-count]) \{\
1151 . tm doc-author-name\n[doc-reg-Rd] == `\*[doc-author-name\n[doc-reg-Rd]]'
1155 . tm doc-book-count == \n[doc-book-count]
1156 . tm doc-book-name == `\*[doc-book-name]'
1157 . tm doc-date-count == \n[doc-date-count]
1158 . tm doc-date == `\*[doc-date]'
1159 . tm doc-publisher-count == \n[doc-publisher-count]
1160 . tm doc-publisher-name == `\*[doc-publisher-name]'
1161 . tm doc-journal-count == \n[doc-journal-count]
1162 . tm doc-journal-name == `\*[doc-journal-name]'
1163 . tm doc-issue-count == \n[doc-issue-count]
1164 . tm doc-issue-name == `\*[doc-issue-name]'
1165 . tm doc-optional-count == \n[doc-optional-count]
1166 . tm doc-optional-string == `\*[doc-optional-string]'
1167 . tm doc-page-number-count == \n[doc-page-number-count]
1168 . tm doc-page-number-string == `\*[doc-page-number-string]'
1169 . tm doc-corporate-count == \n[doc-corporate-count]
1170 . tm doc-corporate-name == `\*[doc-corporate-name]'
1171 . tm doc-report-count == \n[doc-report-count]
1172 . tm doc-report-name == `\*[doc-report-name]'
1173 . tm doc-reference-title-count == \n[doc-reference-title-count]
1174 . tm doc-reference-title-name == `\*[doc-reference-title-name]'
1175 . tm doc-reference-title-name-for-book == `\*[doc-reference-title-name-for-book]'
1176 . tm doc-volume-count == \n[doc-volume-count]
1177 . tm doc-volume-name == `\*[doc-volume-name]'
1178 . tm doc-have-author == \n[doc-have-author]
1180 . tm doc-document-title == `\*[doc-document-title]'
1181 . tm doc-volume == `\*[doc-volume]'
1182 . tm doc-section == `\*[doc-section]'
1183 . tm doc-operating-system == `\*[doc-operating-system]'
1184 . tm doc-date-string == `\*[doc-date-string]'
1185 . tm doc-header-space == \n[doc-header-space]
1186 . tm doc-footer-space == \n[doc-footer-space]
1187 . tm doc-display-vertical == \n[doc-display-vertical]
1188 . tm doc-header-string == `\*[doc-header-string]'
1189 . tm doc-in-synopsis-section == \n[doc-in-synopsis-section]
1190 . tm doc-in-library-section == \n[doc-in-library-section]
1191 . tm doc-in-see-also-section == \n[doc-in-see-also-section]
1192 . tm doc-in-files-section == \n[doc-in-files-section]
1193 . tm doc-in-authors-section == \n[doc-in-authors-section]
1195 . tm END OF GLOBAL REGISTER DUMP