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
152 .\" macros which must be processed after the closing delimiter of `Op'
168 .nr doc-display-indent 6n
173 .ds doc-soft-space " \"
174 .ds doc-hard-space \~
181 .\" punctuation values (suffix=3, prefix=4)
195 .\" header assembly macros
197 .\" NS doc-document-title global string
198 .\" NS the title of the manual page
200 .ds doc-document-title UNTITLED
203 .\" NS doc-volume global string
204 .\" NS the volume where the manual page belongs to
209 .\" NS doc-section global string
210 .\" NS the manual section
215 .\" NS Dt user macro (not parsed, not callable)
216 .\" NS document title
219 .\" NS doc-document-title
223 .\" NS local variables:
224 .\" NS doc-volume-as-XXX
225 .\" NS doc-volume-ds-XXX
227 .\" NS width register `Dt' set above
229 .\" an alternative, more detailed scheme for naming the manual sections
231 .ds doc-volume-operating-system BSD
232 .nr doc-volume-operating-system-ateol 0
233 .ds doc-volume-ds-1 General Commands Manual
234 .ds doc-volume-ds-2 System Calls Manual
235 .ds doc-volume-ds-3 Library Functions Manual
236 .ds doc-volume-ds-4 Kernel Interfaces Manual
237 .ds doc-volume-ds-5 File Formats Manual
238 .ds doc-volume-ds-6 Games Manual
239 .ds doc-volume-ds-7 Miscellaneous Information Manual
240 .ds doc-volume-ds-8 System Manager's Manual
241 .ds doc-volume-ds-9 Kernel Developer's Manual
243 .ds doc-volume-ds-USD User's Supplementary Documents
244 .ds doc-volume-ds-PS1 Programmer's Supplementary Documents
245 .ds doc-volume-ds-AMD Ancestral Manual Documents
246 .ds doc-volume-ds-SMM System Manager's Manual
247 .ds doc-volume-ds-URM User's Reference Manual
248 .ds doc-volume-ds-PRM Programmer's Manual
249 .ds doc-volume-ds-KM Kernel Manual
250 .ds doc-volume-ds-IND Manual Master Index
251 .ds doc-volume-ds-LOCAL Local Manual
252 .ds doc-volume-ds-CON Contributed Software Manual
254 .als doc-volume-ds-MMI doc-volume-ds-IND
255 .als doc-volume-ds-LOC doc-volume-ds-LOCAL
257 .ds doc-volume-as-alpha alpha
258 .als doc-volume-as-Alpha doc-volume-as-alpha
259 .ds doc-volume-as-acorn26 acorn26
260 .ds doc-volume-as-acorn32 acorn32
261 .ds doc-volume-as-algor algor
262 .ds doc-volume-as-amd64 amd64
263 .ds doc-volume-as-amiga amiga
264 .ds doc-volume-as-arc arc
265 .ds doc-volume-as-arm26 arm26
266 .ds doc-volume-as-arm32 arm32
267 .ds doc-volume-as-atari atari
268 .ds doc-volume-as-bebox bebox
269 .ds doc-volume-as-cats cats
270 .ds doc-volume-as-cesfic cesfic
271 .ds doc-volume-as-cobalt cobalt
272 .ds doc-volume-as-dreamcast dreamcast
273 .ds doc-volume-as-evbarm evbarm
274 .ds doc-volume-as-evbmips evbmips
275 .ds doc-volume-as-evbppc evbppc
276 .ds doc-volume-as-evbsh3 evbsh3
277 .ds doc-volume-as-hp300 hp300
278 .ds doc-volume-as-hp700 hp700
279 .ds doc-volume-as-hpcarm hpcarm
280 .ds doc-volume-as-hpcmips hpcmips
281 .ds doc-volume-as-hpcsh hpcsh
282 .ds doc-volume-as-i386 i386
283 .ds doc-volume-as-luna68k luna68k
284 .ds doc-volume-as-m68k m68k
285 .ds doc-volume-as-mac68k mac68k
286 .ds doc-volume-as-macppc macppc
287 .ds doc-volume-as-mips mips
288 .ds doc-volume-as-mipsco mipsco
289 .ds doc-volume-as-mmeye mmeye
290 .ds doc-volume-as-mvme68k mvme68k
291 .ds doc-volume-as-mvmeppc mvmeppc
292 .ds doc-volume-as-netwinder netwinder
293 .ds doc-volume-as-news68k news68k
294 .ds doc-volume-as-newsmips newsmips
295 .ds doc-volume-as-next68k next68k
296 .ds doc-volume-as-ofppc ofppc
297 .ds doc-volume-as-pc532 pc532
298 .ds doc-volume-as-playstation2 playstation2
299 .ds doc-volume-as-pmax pmax
300 .ds doc-volume-as-pmppc pmppc
301 .ds doc-volume-as-powerpc powerpc
302 .ds doc-volume-as-prep prep
303 .ds doc-volume-as-sandpoint sandpoint
304 .ds doc-volume-as-sbmips sbmips
305 .ds doc-volume-as-sgimips sgimips
306 .ds doc-volume-as-sh3 sh3
307 .ds doc-volume-as-shark shark
308 .ds doc-volume-as-sparc sparc
309 .ds doc-volume-as-sparc64 sparc64
310 .ds doc-volume-as-sun2 sun2
311 .ds doc-volume-as-sun3 sun3
312 .ds doc-volume-as-tahoe tahoe
313 .ds doc-volume-as-vax vax
314 .ds doc-volume-as-x68k x68k
315 .ds doc-volume-as-x86_64 x86_64
318 . \" reset default arguments
319 . ds doc-document-title UNTITLED
320 . ds doc-volume LOCAL
321 . ds doc-section Null
324 . ds doc-document-title "\$1
329 . if ((\$2 >= 1) & (\$2 <= 9)) \{\
330 . ie \n[doc-volume-operating-system-ateol] \{\
331 . ds doc-volume "\*[doc-volume-ds-\$2] \*[doc-volume-operating-system]
333 . if d doc-volume-as-\$3 \
334 . as doc-volume "/\*[doc-volume-as-\$3]
337 . ds doc-volume "\*[doc-volume-operating-system]
339 . if d doc-volume-as-\$3 \
340 . as doc-volume "/\*[doc-volume-as-\$3]
342 . as doc-volume " \*[doc-volume-ds-\$2]
346 . ds doc-volume DRAFT
347 . el \{ .ie "\$2"draft" \
348 . ds doc-volume DRAFT
349 . el .if "\$2"paper" \
350 . ds doc-volume UNTITLED
353 . if d doc-volume-ds-\$3 \
354 . ds doc-volume "\*[doc-volume-ds-\$3]
358 . if "\*[doc-volume]"LOCAL" \
363 .\" NS doc-default-operating-system global string
364 .\" NS the exact (default) version of the operating system
366 .\" NS override this in `mdoc.local', if necessary
368 .ds doc-default-operating-system BSD
371 .\" NS doc-operating-system global string
372 .\" NS the exact version of the operating system
374 .ds doc-operating-system
377 .\" NS Os user macro (not parsed, not callable)
378 .\" NS operating system
381 .\" NS doc-operating-system
383 .\" NS local variables:
384 .\" NS doc-operating-system-XXX-XXX
386 .\" NS width register `Os' set above
388 .ds doc-operating-system-ATT-7 7th\~Edition
389 .als doc-operating-system-ATT-7th doc-operating-system-ATT-7
390 .ds doc-operating-system-ATT-3 System\~III
391 .als doc-operating-system-ATT-III doc-operating-system-ATT-3
392 .ds doc-operating-system-ATT-V System\~V
393 .ds doc-operating-system-ATT-V.2 System\~V Release\~2
394 .ds doc-operating-system-ATT-V.3 System\~V Release\~3
395 .ds doc-operating-system-ATT-V.4 System\~V Release\~4
397 .ds doc-operating-system-BSD-3 3rd\~Berkeley Distribution
398 .ds doc-operating-system-BSD-4 4th\~Berkeley Distribution
399 .ds doc-operating-system-BSD-4.1 4.1\~Berkeley Distribution
400 .ds doc-operating-system-BSD-4.2 4.2\~Berkeley Distribution
401 .ds doc-operating-system-BSD-4.3 4.3\~Berkeley Distribution
402 .ds doc-operating-system-BSD-4.3T 4.3-Tahoe Berkeley Distribution
403 .ds doc-operating-system-BSD-4.3R 4.3-Reno Berkeley Distribution
404 .als doc-operating-system-BSD-4.3t doc-operating-system-BSD-4.3T
405 .als doc-operating-system-BSD-4.3r doc-operating-system-BSD-4.3R
406 .ds doc-operating-system-BSD-4.4 4.4BSD
408 .ds doc-operating-system-NetBSD-0.8 0.8
409 .ds doc-operating-system-NetBSD-0.8a 0.8A
410 .ds doc-operating-system-NetBSD-0.9 0.9
411 .ds doc-operating-system-NetBSD-0.9a 0.9A
412 .ds doc-operating-system-NetBSD-1.0 1.0
413 .ds doc-operating-system-NetBSD-1.0a 1.0A
414 .ds doc-operating-system-NetBSD-1.1 1.1
415 .ds doc-operating-system-NetBSD-1.2 1.2
416 .ds doc-operating-system-NetBSD-1.2a 1.2A
417 .ds doc-operating-system-NetBSD-1.2b 1.2B
418 .ds doc-operating-system-NetBSD-1.2c 1.2C
419 .ds doc-operating-system-NetBSD-1.2d 1.2D
420 .ds doc-operating-system-NetBSD-1.2e 1.2E
421 .ds doc-operating-system-NetBSD-1.3 1.3
422 .ds doc-operating-system-NetBSD-1.3a 1.3A
423 .ds doc-operating-system-NetBSD-1.4 1.4
424 .ds doc-operating-system-NetBSD-1.4.1 1.4.1
425 .ds doc-operating-system-NetBSD-1.4.2 1.4.2
426 .ds doc-operating-system-NetBSD-1.4.3 1.4.3
427 .ds doc-operating-system-NetBSD-1.5 1.5
428 .ds doc-operating-system-NetBSD-1.5.1 1.5.1
429 .ds doc-operating-system-NetBSD-1.5.2 1.5.2
430 .ds doc-operating-system-NetBSD-1.5.3 1.5.3
431 .ds doc-operating-system-NetBSD-1.6 1.6
432 .ds doc-operating-system-NetBSD-1.6.1 1.6.1
433 .ds doc-operating-system-NetBSD-1.6.2 1.6.2
434 .ds doc-operating-system-NetBSD-1.6.3 1.6.3
435 .ds doc-operating-system-NetBSD-2.0 2.0
436 .ds doc-operating-system-NetBSD-2.0.1 2.0.1
437 .ds doc-operating-system-NetBSD-2.0.2 2.0.2
438 .ds doc-operating-system-NetBSD-2.1 2.1
439 .ds doc-operating-system-NetBSD-3.0 3.0
440 .ds doc-operating-system-NetBSD-4.0 4.0
442 .ds doc-operating-system-FreeBSD-1.0 1.0
443 .ds doc-operating-system-FreeBSD-1.1 1.1
444 .ds doc-operating-system-FreeBSD-1.1.5 1.1.5
445 .ds doc-operating-system-FreeBSD-1.1.5.1 1.1.5.1
446 .ds doc-operating-system-FreeBSD-2.0 2.0
447 .ds doc-operating-system-FreeBSD-2.0.5 2.0.5
448 .ds doc-operating-system-FreeBSD-2.1 2.1
449 .ds doc-operating-system-FreeBSD-2.1.5 2.1.5
450 .ds doc-operating-system-FreeBSD-2.1.6 2.1.6
451 .ds doc-operating-system-FreeBSD-2.1.7 2.1.7
452 .ds doc-operating-system-FreeBSD-2.2 2.2
453 .ds doc-operating-system-FreeBSD-2.2.1 2.2.1
454 .ds doc-operating-system-FreeBSD-2.2.2 2.2.2
455 .ds doc-operating-system-FreeBSD-2.2.5 2.2.5
456 .ds doc-operating-system-FreeBSD-2.2.6 2.2.6
457 .ds doc-operating-system-FreeBSD-2.2.7 2.2.7
458 .ds doc-operating-system-FreeBSD-2.2.8 2.2.8
459 .ds doc-operating-system-FreeBSD-3.0 3.0
460 .ds doc-operating-system-FreeBSD-3.1 3.1
461 .ds doc-operating-system-FreeBSD-3.2 3.2
462 .ds doc-operating-system-FreeBSD-3.3 3.3
463 .ds doc-operating-system-FreeBSD-3.4 3.4
464 .ds doc-operating-system-FreeBSD-3.5 3.5
465 .ds doc-operating-system-FreeBSD-4.0 4.0
466 .ds doc-operating-system-FreeBSD-4.1 4.1
467 .ds doc-operating-system-FreeBSD-4.1.1 4.1.1
468 .ds doc-operating-system-FreeBSD-4.2 4.2
469 .ds doc-operating-system-FreeBSD-4.3 4.3
470 .ds doc-operating-system-FreeBSD-4.4 4.4
471 .ds doc-operating-system-FreeBSD-4.5 4.5
472 .ds doc-operating-system-FreeBSD-4.6 4.6
473 .ds doc-operating-system-FreeBSD-4.6.2 4.6.2
474 .ds doc-operating-system-FreeBSD-4.7 4.7
475 .ds doc-operating-system-FreeBSD-4.8 4.8
476 .ds doc-operating-system-FreeBSD-4.9 4.9
477 .ds doc-operating-system-FreeBSD-4.10 4.10
478 .ds doc-operating-system-FreeBSD-4.11 4.11
479 .ds doc-operating-system-FreeBSD-5.0 5.0
480 .ds doc-operating-system-FreeBSD-5.1 5.1
481 .ds doc-operating-system-FreeBSD-5.2 5.2
482 .ds doc-operating-system-FreeBSD-5.2.1 5.2.1
483 .ds doc-operating-system-FreeBSD-5.3 5.3
484 .ds doc-operating-system-FreeBSD-5.4 5.4
485 .ds doc-operating-system-FreeBSD-5.5 5.5
486 .ds doc-operating-system-FreeBSD-6.0 6.0
487 .ds doc-operating-system-FreeBSD-6.1 6.1
488 .ds doc-operating-system-FreeBSD-6.2 6.2
489 .ds doc-operating-system-FreeBSD-7.0 7.0
491 .ds doc-operating-system-Darwin-8.0.0 8.0.0
492 .ds doc-operating-system-Darwin-8.1.0 8.1.0
493 .ds doc-operating-system-Darwin-8.2.0 8.2.0
494 .ds doc-operating-system-Darwin-8.3.0 8.3.0
495 .ds doc-operating-system-Darwin-8.4.0 8.4.0
496 .ds doc-operating-system-Darwin-8.5.0 8.5.0
498 .ds doc-operating-system-DragonFly-1.0 1.0
499 .ds doc-operating-system-DragonFly-1.1 1.1
500 .ds doc-operating-system-DragonFly-1.2 1.2
501 .ds doc-operating-system-DragonFly-1.3 1.3
502 .ds doc-operating-system-DragonFly-1.4 1.4
503 .ds doc-operating-system-DragonFly-1.5 1.5
507 . ds doc-operating-system "\*[doc-default-operating-system]
508 . el \{ .ie "\$1"ATT" \{\
509 . ds doc-operating-system AT&T
511 . ie d doc-operating-system-ATT-\$2 \
512 . as doc-operating-system " \*[doc-operating-system-ATT-\$2]
514 . as doc-operating-system " UNIX
516 . el \{ .ie "\$1"BSD" \{\
518 . ie d doc-operating-system-BSD-\$2 \
519 . ds doc-operating-system "\*[doc-operating-system-BSD-\$2]
521 . tm mdoc warning: .Os: Unknown BSD version `\$2' (#\n[.c])
523 . el \{ .ie "\$1"FreeBSD" \{\
524 . ds doc-operating-system FreeBSD
526 . ie d doc-operating-system-FreeBSD-\$2 \
527 . as doc-operating-system \~\*[doc-operating-system-FreeBSD-\$2]
529 . tm mdoc warning: .Os: Unknown FreeBSD version `\$2' (#\n[.c])
531 . el \{ .ie "\$1"NetBSD" \{\
532 . ds doc-operating-system NetBSD
534 . ie d doc-operating-system-NetBSD-\$2 \
535 . as doc-operating-system \~\*[doc-operating-system-NetBSD-\$2]
537 . tm mdoc warning: .Os: Unknown NetBSD version `\$2' (#\n[.c])
539 . el \{ .ie "\$1"Darwin" \{\
540 . ds doc-operating-system Darwin
542 . ie d doc-operating-system-Darwin-\$2 \
543 . as doc-operating-system \~\*[doc-operating-system-Darwin-\$2]
545 . tm mdoc warning: .Os: Unknown Darwin version `\$2' (#\n[.c])
548 . ds doc-operating-system \$1
550 . as doc-operating-system " \$2
555 .\" NS doc-date-string global string
556 .\" NS the manual page date as set by `Dd'
561 .\" NS Dd user macro (not parsed, not callable)
562 .\" NS set document date
565 .\" NS doc-date-string
567 .\" NS local variables:
570 .\" NS width register `Dd' set above
572 .ds doc-date-1 January
573 .ds doc-date-2 February
579 .ds doc-date-8 August
580 .ds doc-date-9 September
581 .ds doc-date-10 October
582 .ds doc-date-11 November
583 .ds doc-date-12 December
588 . ds doc-date-string \$1\~\$2 \$3
590 . ds doc-date-string "\*[doc-date-\n[mo]]
591 . as doc-date-string \~\n[dy], \n[year]
595 . ds doc-date-string Epoch
599 .\" NS doc-hyphen-flags global register
600 .\" NS the parameter for the `.hy' request
602 .\" NS override this in `mdoc.local', if necessary.
604 .nr doc-hyphen-flags 12
607 .\" NS doc-header macro
608 .\" NS print page header
610 .\" NS local variables:
616 . doc-setup-page-layout
618 . sp \n[doc-header-space]u
619 . nr doc-reg-dh \w'\*[doc-caption-font]\*[doc-header-string]\f[]'
620 . nr doc-reg-dh1 \w'\*[doc-caption-font2]\*[doc-volume]\f[]'
621 . if (\n[doc-reg-dh] + \n[doc-reg-dh1] + \n[doc-reg-dh] >= \n[.lt]) \{\
622 . while (\n[doc-reg-dh] + \n[doc-reg-dh1] + \n[doc-reg-dh] >= \n[.lt]) \{\
623 . substring doc-header-string 0 -2
624 . nr doc-reg-dh \w'\*[doc-caption-font]\*[doc-header-string]\|.\|.\|.\f[]'
626 . as doc-header-string "\|.\|.\|.
628 . 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
630 . sp \n[doc-header-space]u
638 .\" NS doc-footer macro
639 .\" NS print page footer
645 . ev doc-caption-enviroment
646 . doc-setup-page-layout
647 . sp \n[doc-footer-space]u
650 . tl
\a%
\a\*[doc-caption-font2]\*[doc-date-string]\f[]
\a\*[doc-caption-font]\*[doc-operating-system]\f[]
\a
652 . tl
\a\*[doc-caption-font]\*[doc-operating-system]\f[]
\a\*[doc-caption-font2]\*[doc-date-string]\f[]
\a%
\a
655 . tl
\a\*[doc-caption-font]\*[doc-operating-system]\f[]
\a\*[doc-caption-font2]\*[doc-date-string]\f[]
\a%
\a
662 .\" NS doc-check-depth macro
663 .\" NS check paired macros
666 . if \n[doc-list-depth] \{\
667 . tm mdoc warning: A .Bl directive has no matching .El (#\n[.c])
668 . nr doc-list-depth 0
670 . if \n[doc-display-depth] \{\
671 . tm mdoc warning: A .Bd directive has no matching .Ed (#\n[.c])
672 . nr doc-display-depth 0
674 . if \n[doc-fontmode-depth] \{\
675 . tm mdoc warning: A .Bf directive has no matching .Ef (#\n[.c])
676 . nr doc-fontmode-depth 0
681 .\" NS doc-end-macro macro
685 . \" We may still have a partial line in the environment. If this is the
686 . \" case, and we happen to be on the last line of the page, the `.fl'
687 . \" request will cause the page to be ejected and troff will immediately
688 . \" exit. If we are in nroff mode, this would be unfortunate, since we
689 . \" would never get a chance to output the footer. So we fudge the page
690 . \" length to make sure that the last page is never ejected until we want
701 . 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
702 . \" suppress empty lines after the footer
708 .\" NS doc-paragraph macro
709 .\" NS insert a paragraph
712 . sp \n[doc-paragraph-space]u
719 .\" NS Pp user macro (not parsed, not callable)
722 .\" NS width register `Pp' set above
724 .als Pp doc-paragraph
727 .\" NS Lp user macro (not parsed, not callable)
730 .\" NS width register `Lp' set above
732 .als Lp doc-paragraph
736 . tm Not a \-mdoc command: .LP (#\n[.c])
741 . tm Not a \-mdoc command: .PP (#\n[.c])
746 . tm Not a \-mdoc command: .pp (#\n[.c])
751 . tm Not a \-mdoc command: .SH (#\n[.c])
755 .\" NS Nd user macro (not parsed, not callable)
756 .\" NS print name description
758 .\" NS width register `Nd' set above
765 .\" NS doc-in-synopsis-section global register (bool)
766 .\" NS whether we are in the `synopsis' section
768 .nr doc-in-synopsis-section 0
771 .\" NS doc-in-library-section global register (bool)
772 .\" NS whether we are in the `library' section
774 .nr doc-in-library-section 0
777 .\" NS doc-in-see-also-section global register (bool)
778 .\" NS whether we are in the `see also' section
780 .nr doc-in-see-also-section 0
783 .\" NS doc-in-files-section global register (bool)
784 .\" NS whether we are in the `files' section
786 .nr doc-in-files-section 0
789 .\" NS doc-in-authors-section global register (bool)
790 .\" NS whether we are in the `authors' section
792 .nr doc-in-authors-section 0
795 .\" NS doc-first-parameter macro
796 .\" NS return first parameter
798 .\" NS local variables:
801 .de doc-first-parameter
802 . ds doc-str-dfp "\$1
806 .\" NS Sh user macro (not callable)
807 .\" NS section headers
810 .\" NS doc-func-args-processed
811 .\" NS doc-func-count
812 .\" NS doc-in-authors-section
813 .\" NS doc-in-files-section
814 .\" NS doc-in-library-section
815 .\" NS doc-in-see-also-section
816 .\" NS doc-in-synopsis-section
817 .\" NS doc-indent-synopsis
818 .\" NS doc-indent-synopsis-active
820 .\" NS doc-num-func-args
822 .\" NS local variables:
825 .\" NS doc-section-XXX
827 .\" NS width register `Sh' set in doc-common
829 .ds doc-section-name NAME
830 .ds doc-section-synopsis SYNOPSIS
831 .ds doc-section-library LIBRARY
832 .ds doc-section-description DESCRIPTION
833 .ds doc-section-see-also SEE
834 .ds doc-section-files FILES
835 .ds doc-section-authors AUTHORS
838 . ie \n[doc-arg-limit] \{\
839 . \" we only allow `Sh' within `Sh'; it will change the font back to
841 . ie "\*[doc-macro-name]"Sh" \{\
843 . ie (\n[doc-arg-limit] >= \n[doc-arg-ptr]) \{\
844 . nr doc-curr-font \n[.f]
845 . nr doc-curr-size \n[.ps]
846 . nop \*[doc-Sh-font]\c
847 . doc-print-recursive
850 . tm Usage: .Sh section_name ... (#\n[.c])
854 . tm Usage: .Sh not callable by other macros (#\n[.c])
859 . tm Usage: .Sh section_name ... (#\n[.c])
863 . ds doc-macro-name Sh
869 . \" this resolves e.g. `.Sh "SEE ALSO"'
870 . doc-first-parameter \$*
872 . ie "\*[doc-str-dfp]"\*[doc-section-name]" \{\
877 . nr doc-in-synopsis-section 0
878 . nr doc-in-library-section 0
879 . nr doc-in-see-also-section 0
880 . nr doc-in-files-section 0
881 . nr doc-in-authors-section 0
883 . ie "\*[doc-str-dfp]"\*[doc-section-synopsis]" \{\
886 . nr doc-in-synopsis-section 1
887 . nr doc-indent-synopsis 0
888 . nr doc-indent-synopsis-active 0
890 . el \{ .ie "\*[doc-str-dfp]"\*[doc-section-library]" \{\
891 . nr doc-in-library-section 1
893 . el \{ .ie "\*[doc-str-dfp]"\*[doc-section-description]" \{\
895 . nr doc-func-count 0
896 . nr doc-func-args-processed 0
897 . nr doc-num-func-args 0
899 . el \{ .ie "\*[doc-str-dfp]"\*[doc-section-see-also]" \{\
902 . nr doc-in-see-also-section 1
904 . el \{ .ie "\*[doc-str-dfp]"\*[doc-section-files]" \
905 . nr doc-in-files-section 1
906 . el .if "\*[doc-str-dfp]"\*[doc-section-authors]" \
907 . nr doc-in-authors-section 1
911 . nr doc-have-author 0
914 . doc-setup-page-layout
923 . nr doc-reg-Sh \n[.ss]
924 . nr doc-reg-Sh1 \n[.sss]
925 . ss (\n[.ss] * 5 / 3) (\n[.sss] * 5 / 3)
929 . nr doc-curr-font \n[.f]
930 . nr doc-curr-size \n[.ps]
931 . nop \*[doc-Sh-font]\c
932 . doc-print-recursive
935 . ss \n[doc-reg-Sh] \n[doc-reg-Sh1]
937 . in +\n[doc-subheader-indent]u
945 .\" NS Ss user macro (not callable)
948 .\" NS local variable:
952 .\" NS width register `Ss' set above
955 . ie \n[doc-arg-limit] \{\
956 . \" we only allow `Ss' within `Ss'; it will change the font back to
958 . ie "\*[doc-macro-name]"Ss" \{\
960 . ie (\n[doc-arg-limit] >= \n[doc-arg-ptr]) \{\
961 . nr doc-curr-font \n[.f]
962 . nr doc-curr-size \n[.ps]
963 . nop \*[doc-Sh-font]\c
964 . doc-print-recursive
967 . tm Usage: .Ss subsection_name ... (#\n[.c])
971 . tm Usage: .Ss not callable by other macros (#\n[.c])
976 . tm Usage: .Ss subsection_name ... (#\n[.c])
980 . ds doc-macro-name Ss
988 . nr doc-reg-Ss \n[.ss]
989 . nr doc-reg-Ss1 \n[.sss]
990 . ss (\n[.ss] * 5 / 4) (\n[.sss] * 5 / 4)
993 . nr doc-curr-font \n[.f]
994 . nr doc-curr-size \n[.ps]
995 . nop \*[doc-Sh-font]\c
996 . doc-print-recursive
998 . ss \n[doc-reg-Ss] \n[doc-reg-Ss1]
1011 .\" NS Rd macro (not parsed, not callable)
1012 .\" NS print global register dump to stderr
1014 .\" NS local variables:
1018 . tm MDOC GLOBAL REGISTER DUMP
1019 . tm doc-macro-name == `\*[doc-macro-name]'
1020 . tm doc-arg-limit == \n[doc-arg-limit]
1021 . tm doc-num-args == \n[doc-num-args]
1022 . tm doc-arg-ptr == \n[doc-arg-ptr]
1025 . while (\n[doc-reg-Rd] <= \n[doc-arg-limit]) \{\
1026 . tm doc-arg\n[doc-reg-Rd] == `\*[doc-arg\n[doc-reg-Rd]]'
1027 . tm doc-type\n[doc-reg-Rd] == \n[doc-type\n[doc-reg-Rd]]
1028 . tm doc-space\n[doc-reg-Rd] == `\*[doc-space\n[doc-reg-Rd]]'
1032 . tm doc-curr-font == \n[doc-curr-font]
1033 . tm doc-curr-size == \n[doc-curr-size]
1034 . tm doc-indent-synopsis == \n[doc-indent-synopsis]
1035 . tm doc-indent-synopsis-active == \n[doc-indent-synopsis-active]
1036 . tm doc-have-decl == \n[doc-have-decl]
1037 . tm doc-have-var == \n[doc-have-var]
1038 . tm doc-command-name == `\*[doc-command-name]'
1039 . tm doc-quote-left == `\*[doc-quote-left]'
1040 . tm doc-quote-right == `\*[doc-quote-right]'
1041 . tm doc-nesting-level == \n[doc-nesting-level]
1042 . tm doc-in-list == \n[doc-in-list]
1043 . tm doc-space == `\*[doc-space]'
1044 . tm doc-saved-space == `\*[doc-saved-space]'
1045 . tm doc-space-mode == \n[doc-space-mode]
1046 . tm doc-have-space == \n[doc-have-space]
1047 . tm doc-have-slot == \n[doc-have-slot]
1048 . tm doc-keep-type == \n[doc-keep-type]
1049 . tm doc-display-depth == \n[doc-display-depth]
1050 . tm doc-is-compact == \n[doc-is-compact]
1053 . while (\n[doc-reg-Rd] <= \n[doc-display-depth]) \{\
1054 . tm doc-display-type-stack\n[doc-reg-Rd] == `\*[doc-display-type-stack\n[doc-reg-Rd]]'
1055 . tm doc-display-indent-stack\n[doc-reg-Rd] == \n[doc-display-indent-stack\n[doc-reg-Rd]]
1056 . tm doc-display-ad-stack\n[doc-reg-Rd] == \n[doc-display-ad-stack\n[doc-reg-Rd]]
1057 . tm doc-display-fi-stack\n[doc-reg-Rd] == \n[doc-display-fi-stack\n[doc-reg-Rd]]
1058 . tm doc-display-ft-stack\n[doc-reg-Rd] == \n[doc-display-ft-stack\n[doc-reg-Rd]]
1059 . tm doc-display-ps-stack\n[doc-reg-Rd] == \n[doc-display-ps-stack\n[doc-reg-Rd]]
1063 . tm doc-fontmode-depth == \n[doc-fontmode-depth]
1066 . while (\n[doc-reg-Rd] <= \n[doc-fontmode-depth]) \{\
1067 . tm doc-fontmode-font-stack\n[doc-reg-Rd] == `\n[doc-fontmode-font-stack\n[doc-reg-Rd]]'
1068 . tm doc-fontmode-size-stack\n[doc-reg-Rd] == `\n[doc-fontmode-size-stack\n[doc-reg-Rd]]'
1072 . tm doc-list-depth == \n[doc-list-depth]
1075 . while (\n[doc-reg-Rd] <= \n[doc-list-depth]) \{\
1076 . tm doc-list-type-stack\n[doc-reg-Rd] == `\*[doc-list-type-stack\n[doc-reg-Rd]]'
1077 . tm doc-list-have-indent-stack\n[doc-reg-Rd] == \n[doc-list-have-indent-stack\n[doc-reg-Rd]]
1078 . tm doc-list-indent-stack\n[doc-reg-Rd] == \n[doc-list-indent-stack\n[doc-reg-Rd]]
1079 . tm doc-compact-list-stack\n[doc-reg-Rd] == \n[doc-compact-list-stack\n[doc-reg-Rd]]
1080 . tm doc-tag-prefix-stack\n[doc-reg-Rd] == `\*[doc-tag-prefix-stack\n[doc-reg-Rd]]'
1081 . tm doc-tag-width-stack\n[doc-reg-Rd] == `\*[doc-tag-width-stack\n[doc-reg-Rd]]'
1082 . tm doc-list-offset-stack\n[doc-reg-Rd] == \n[doc-list-offset-stack\n[doc-reg-Rd]]
1083 . tm doc-enum-list-count-stack\n[doc-reg-Rd] == \n[doc-enum-list-count-stack\n[doc-reg-Rd]]
1087 . tm doc-saved-Pa-font == `\*[doc-saved-Pa-font]'
1088 . tm doc-curr-type == \n[doc-curr-type]
1089 . tm doc-curr-arg == `\*[doc-curr-arg]'
1090 . tm doc-diag-list-input-line-count == \n[doc-diag-list-input-line-count]
1091 . tm doc-num-columns == \n[doc-num-columns]
1092 . tm doc-column-indent-width == \n[doc-column-indent-width]
1093 . tm doc-is-func == \n[doc-is-func]
1094 . tm doc-have-old-func == \n[doc-have-old-func]
1095 . tm doc-func-arg-count == \n[doc-func-arg-count]
1096 . tm doc-func-arg == `\*[doc-func-arg]'
1097 . tm doc-num-func-args == \n[doc-num-func-args]
1098 . tm doc-func-args-processed == \n[doc-func-args-processed]
1099 . tm doc-have-func == \n[doc-have-func]
1100 . tm doc-is-reference == \n[doc-is-reference]
1101 . tm doc-reference-count == \n[doc-reference-count]
1102 . tm doc-author-count == \n[doc-author-count]
1105 . while (\n[doc-reg-Rd] <= \n[doc-author-count]) \{\
1106 . tm doc-author-name\n[doc-reg-Rd] == `\*[doc-author-name\n[doc-reg-Rd]]'
1110 . tm doc-book-count == \n[doc-book-count]
1111 . tm doc-book-name == `\*[doc-book-name]'
1112 . tm doc-date-count == \n[doc-date-count]
1113 . tm doc-date == `\*[doc-date]'
1114 . tm doc-publisher-count == \n[doc-publisher-count]
1115 . tm doc-publisher-name == `\*[doc-publisher-name]'
1116 . tm doc-journal-count == \n[doc-journal-count]
1117 . tm doc-journal-name == `\*[doc-journal-name]'
1118 . tm doc-issue-count == \n[doc-issue-count]
1119 . tm doc-issue-name == `\*[doc-issue-name]'
1120 . tm doc-optional-count == \n[doc-optional-count]
1121 . tm doc-optional-string == `\*[doc-optional-string]'
1122 . tm doc-page-number-count == \n[doc-page-number-count]
1123 . tm doc-page-number-string == `\*[doc-page-number-string]'
1124 . tm doc-corporate-count == \n[doc-corporate-count]
1125 . tm doc-corporate-name == `\*[doc-corporate-name]'
1126 . tm doc-report-count == \n[doc-report-count]
1127 . tm doc-report-name == `\*[doc-report-name]'
1128 . tm doc-reference-title-count == \n[doc-reference-title-count]
1129 . tm doc-reference-title-name == `\*[doc-reference-title-name]'
1130 . tm doc-reference-title-name-for-book == `\*[doc-reference-title-name-for-book]'
1131 . tm doc-volume-count == \n[doc-volume-count]
1132 . tm doc-volume-name == `\*[doc-volume-name]'
1133 . tm doc-have-author == \n[doc-have-author]
1135 . tm doc-document-title == `\*[doc-document-title]'
1136 . tm doc-volume == `\*[doc-volume]'
1137 . tm doc-section == `\*[doc-section]'
1138 . tm doc-operating-system == `\*[doc-operating-system]'
1139 . tm doc-date-string == `\*[doc-date-string]'
1140 . tm doc-header-space == \n[doc-header-space]
1141 . tm doc-footer-space == \n[doc-footer-space]
1142 . tm doc-display-vertical == \n[doc-display-vertical]
1143 . tm doc-header-string == `\*[doc-header-string]'
1144 . tm doc-in-synopsis-section == \n[doc-in-synopsis-section]
1145 . tm doc-in-library-section == \n[doc-in-library-section]
1146 . tm doc-in-see-also-section == \n[doc-in-see-also-section]
1147 . tm doc-in-files-section == \n[doc-in-files-section]
1148 . tm doc-in-authors-section == \n[doc-in-authors-section]
1150 . tm END OF GLOBAL REGISTER DUMP