1 .\" $Id: mdoc.7,v 1.185 2011/04/06 11:39:25 kristaps Exp $
3 .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
4 .\" Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
6 .\" Permission to use, copy, modify, and distribute this software for any
7 .\" purpose with or without fee is hereby granted, provided that the above
8 .\" copyright notice and this permission notice appear in all copies.
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 .Dd $Mdocdate: April 6 2011 $
23 .Nd mdoc language reference
27 language is used to format
31 This reference document describes its syntax, structure, and
33 The reference implementation is
37 section describes compatibility with other troff \-mdoc implementations.
41 document follows simple rules: lines beginning with the control
44 are parsed for macros.
45 Text lines, those not beginning with the control character, are
46 interpreted within the scope of prior macros:
47 .Bd -literal -offset indent
48 \&.Sh Macro lines change control state.
49 Text lines are interpreted within the current state.
53 documents may contain only graphable 7-bit ASCII characters, the space
54 character, and, in certain circumstances, the tab character.
56 If the first character of a text line is a space, that line is printed
57 with a leading newline.
61 whether in a macro or text line, is ignored to the end of
63 A macro line with only a control character and comment escape,
66 Macro lines with only a control character and optional whitespace are
69 Within a macro line, the following terms are reserved:
71 .Bl -tag -width Ds -offset indent -compact
97 .Pq reserved-word vertical bar
100 Use of reserved terms is described in
102 For general use in macro lines, these can be escaped with a non-breaking
105 In text lines, these may be used as normal punctuation.
106 .Ss Special Characters
107 Special characters may occur in both macro and text lines.
108 Sequences begin with the escape character
110 followed by either an open-parenthesis
112 for two-character sequences; an open-bracket
114 for n-character sequences (terminated at a close-bracket
116 or a single one character sequence.
127 Terms may be text-decorated using the
129 escape followed by an indicator: B (bold), I (italic), R (Roman), or P
130 (revert to previous mode):
132 .Dl \efBbold\efR \efIitalic\efP
134 A numerical representation 3, 2, or 1 (bold, italic, and Roman,
135 respectively) may be used instead.
136 If a macro opens a font scope after calling
142 mode will be restored upon exiting the
150 which encourages semantic annotation.
151 .Ss Predefined Strings
154 also defined a set of package-specific
155 .Dq predefined strings ,
157 .Sx Special Characters ,
158 mark special output characters and strings by way of input codes.
159 Predefined strings are escaped with the slash-asterisk,
177 Whitespace consists of the space character.
178 In text lines, whitespace is preserved within a line; unescaped
179 trailing spaces are stripped from input (unless in a literal context).
180 Blank text lines, which may include whitespace, are only permitted
181 within literal contexts.
183 In macro lines, whitespace delimits arguments and is discarded.
184 If arguments are quoted, whitespace within the quotes is retained.
186 Macro arguments may be quoted with double-quotes to group
187 space-delimited terms or to retain blocks of whitespace.
188 A quoted argument begins with a double-quote preceded by whitespace.
189 The next double-quote not pairwise adjacent to another double-quote
190 terminates the literal, regardless of surrounding whitespace.
192 Note that any quoted text, even if it would cause a macro invocation
193 when unquoted, is considered literal text.
194 Thus, the following produces
196 .Bd -literal -offset indent
200 In text lines, quotes are regarded as opaque text.
202 Many macros support scaled widths for their arguments, such as
203 stipulating a two-inch list indentation with the following:
204 .Bd -literal -offset indent
208 The syntax for scaled widths is
209 .Sq Li [+-]?[0-9]*.[0-9]*[:unit:] ,
210 where a decimal must be preceded or proceeded by at least one digit.
211 Negative numbers, while accepted, are truncated to zero.
212 The following scaling units are accepted:
214 .Bl -tag -width Ds -offset indent -compact
227 default vertical span
239 default horizontal span
244 Using anything other than
250 is necessarily non-portable across output media.
254 When composing a manual, make sure that sentences end at the end of
256 By doing so, front-ends will be able to apply the proper amount of
257 spacing after the end of sentence (unescaped) period, exclamation mark,
258 or question mark followed by zero or more non-sentence closing
267 The proper spacing is also intelligently preserved if a sentence ends at
268 the boundary of a macro line.
271 .Dl \&.Xr mandoc 1 \&.
272 .Dl \&.Fl T \&Ns \&Cm ascii \&.
276 document consists of a document prologue followed by one or more
279 The prologue, which consists of the
284 macros in that order, is required for every document.
286 The first section (sections are denoted by
288 must be the NAME section, consisting of at least one
293 Following that, convention dictates specifying at least the
297 sections, although this varies between manual sections.
299 The following is a well-formed skeleton
302 .Bd -literal -offset indent
308 \&.Nd a description goes here
310 \&.\e\*q For sections 2, 3, & 9 only.
311 \&.\e\*q Not used in OpenBSD.
319 utility processes files ...
320 \&.\e\*q .Sh IMPLEMENTATION NOTES
321 \&.\e\*q Not used in OpenBSD.
322 \&.\e\*q .Sh RETURN VALUES
323 \&.\e\*q For sections 2, 3, & 9 only.
324 \&.\e\*q .Sh ENVIRONMENT
325 \&.\e\*q For sections 1, 6, 7, & 8 only.
327 \&.\e\*q .Sh EXIT STATUS
328 \&.\e\*q For sections 1, 6, & 8 only.
329 \&.\e\*q .Sh EXAMPLES
330 \&.\e\*q .Sh DIAGNOSTICS
331 \&.\e\*q For sections 1, 4, 6, 7, & 8 only.
333 \&.\e\*q For sections 2, 3, & 9 only.
334 \&.\e\*q .Sh SEE ALSO
335 \&.\e\*q .Xr foobar 1
336 \&.\e\*q .Sh STANDARDS
341 \&.\e\*q .Sh SECURITY CONSIDERATIONS
342 \&.\e\*q Not used in OpenBSD.
347 document are conventionally ordered as they appear above.
348 Sections should be composed as follows:
349 .Bl -ohang -offset Ds
351 The name(s) and a one line description of the documented material.
352 The syntax for this as follows:
353 .Bd -literal -offset indent
357 \&.Nd a one line description
362 names should be separated by commas.
366 macro(s) must precede the
375 The name of the library containing the documented material, which is
376 assumed to be a function in a section 2, 3, or 9 manual.
377 The syntax for this is as follows:
378 .Bd -literal -offset indent
385 Documents the utility invocation syntax, function call syntax, or device
388 For the first, utilities (sections 1, 6, and 8), this is
389 generally structured as follows:
390 .Bd -literal -offset indent
401 Commands should be ordered alphabetically.
403 For the second, function calls (sections 2, 3, 9):
404 .Bd -literal -offset indent
406 \&.Vt extern const char *global;
408 \&.Fn foo "const char *src"
410 \&.Fn bar "const char *src"
419 macros should follow C header-file conventions.
421 And for the third, configurations (section 4):
422 .Bd -literal -offset indent
423 \&.Cd \*qit* at isa? port 0x2e\*q
424 \&.Cd \*qit* at isa? port 0x4e\*q
427 Manuals not in these sections generally don't need a
430 Some macros are displayed differently in the
432 section, particularly
442 All of these macros are output on their own line.
443 If two such dissimilar macros are pairwise invoked (except for
449 they are separated by a vertical space, unless in the case of
454 which are always separated by vertical space.
456 When text and macros following an
458 macro starting an input line span multiple output lines,
459 all output lines but the first will be indented to align
460 with the text immediately following the
462 macro, up to the next
467 macro or the end of an enclosing block, whichever comes first.
469 This begins with an expansion of the brief, one line description in
471 .Bd -literal -offset indent
474 utility does this, that, and the other.
477 It usually follows with a breakdown of the options (if documenting a
479 .Bd -literal -offset indent
480 The arguments are as follows:
481 \&.Bl \-tag \-width Ds
483 Print verbose information.
487 Manuals not documenting a command won't include the above fragment.
488 .It Em IMPLEMENTATION NOTES
489 Implementation-specific notes should be kept here.
490 This is useful when implementing standard functions that may have side
491 effects or notable algorithmic implications.
493 This section documents the
494 return values of functions in sections 2, 3, and 9.
499 Lists the environment variables used by the utility,
500 and explains the syntax and semantics of their values.
503 manual provides examples of typical content and formatting.
508 Documents files used.
509 It's helpful to document both the file name and a short description of how
510 the file is used (created, modified, etc.).
515 This section documents the
516 command exit status for section 1, 6, and 8 utilities.
517 Historically, this information was described in
519 a practise that is now discouraged.
525 This often contains snippets of well-formed, well-tested invocations.
526 Make sure that examples work properly!
528 Documents error conditions.
529 This is most useful in section 4 manuals.
530 Historically, this section was used in place of
532 for manuals in sections 1, 6, and 8; however, this practise is
539 Documents error handling in sections 2, 3, and 9.
544 References other manuals with related topics.
545 This section should exist for most manuals.
546 Cross-references should conventionally be ordered first by section, then
552 References any standards implemented or used.
553 If not adhering to any standards, the
555 section should be used instead.
560 A brief history of the subject, including where support first appeared.
562 Credits to the person or persons who wrote the code and/or documentation.
563 Authors should generally be noted by both name and email address.
568 Common misuses and misunderstandings should be explained
571 Known bugs, limitations, and work-arounds should be described
573 .It Em SECURITY CONSIDERATIONS
574 Documents any security precautions that operators should consider.
577 Macros are one to three three characters in length and begin with a
580 at the beginning of the line.
581 An arbitrary amount of whitespace may sit between the control character
583 Thus, the following are equivalent:
584 .Bd -literal -offset indent
589 The syntax of a macro depends on its classification.
592 refers to macro arguments, which may be followed by zero or more
596 opens the scope of a macro; and if specified,
602 column indicates that the macro may also be called by passing its name
603 as an argument to another macro.
604 If a macro is not callable but its name appears as an argument
605 to another macro, it is interpreted as opaque text.
613 column indicates whether the macro may call other macros by receiving
614 their names as arguments.
615 If a macro is not parsed but the name of another macro appears
616 as an argument, it is interpreted as opaque text.
620 column, if applicable, describes closure rules.
621 .Ss Block full-explicit
622 Multi-line scope closed by an explicit closing macro.
623 All macros contains bodies; only
629 .Bd -literal -offset indent
630 \&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead...\(rB
635 .Bl -column -compact -offset indent "MacroX" "CallableX" "ParsedX" "closed by XXX"
636 .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope
637 .It Sx \&Bd Ta \&No Ta \&No Ta closed by Sx \&Ed
638 .It Sx \&Bf Ta \&No Ta \&No Ta closed by Sx \&Ef
639 .It Sx \&Bk Ta \&No Ta \&No Ta closed by Sx \&Ek
640 .It Sx \&Bl Ta \&No Ta \&No Ta closed by Sx \&El
641 .It Sx \&Ed Ta \&No Ta \&No Ta opened by Sx \&Bd
642 .It Sx \&Ef Ta \&No Ta \&No Ta opened by Sx \&Bf
643 .It Sx \&Ek Ta \&No Ta \&No Ta opened by Sx \&Bk
644 .It Sx \&El Ta \&No Ta \&No Ta opened by Sx \&Bl
646 .Ss Block full-implicit
647 Multi-line scope closed by end-of-file or implicitly by another macro.
648 All macros have bodies; some
656 don't have heads; only one
663 .Bd -literal -offset indent
664 \&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead... \(lBTa head...\(rB\(rB
668 .Bl -column -compact -offset indent "MacroX" "CallableX" "ParsedX" "closed by XXXXXXXXXXX"
669 .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope
670 .It Sx \&It Ta \&No Ta Yes Ta closed by Sx \&It , Sx \&El
671 .It Sx \&Nd Ta \&No Ta \&No Ta closed by Sx \&Sh
672 .It Sx \&Nm Ta \&No Ta Yes Ta closed by Sx \&Nm , Sx \&Sh , Sx \&Ss
673 .It Sx \&Sh Ta \&No Ta \&No Ta closed by Sx \&Sh
674 .It Sx \&Ss Ta \&No Ta \&No Ta closed by Sx \&Sh , Sx \&Ss
680 .Sx Block full-implicit
681 macro only when invoked as the first macro
684 section line, else it is
686 .Ss Block partial-explicit
687 Like block full-explicit, but also with single-line scope.
688 Each has at least a body and, in limited circumstances, a head
695 .Bd -literal -offset indent
696 \&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead...\(rB
698 \&.Yc \(lBtail...\(rB
700 \&.Yo \(lB\-arg \(lBparm...\(rB\(rB \(lBhead...\(rB \
701 \(lBbody...\(rB \&Yc \(lBtail...\(rB
704 .Bl -column "MacroX" "CallableX" "ParsedX" "closed by XXXX" -compact -offset indent
705 .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Scope
706 .It Sx \&Ac Ta Yes Ta Yes Ta opened by Sx \&Ao
707 .It Sx \&Ao Ta Yes Ta Yes Ta closed by Sx \&Ac
708 .It Sx \&Bc Ta Yes Ta Yes Ta closed by Sx \&Bo
709 .It Sx \&Bo Ta Yes Ta Yes Ta opened by Sx \&Bc
710 .It Sx \&Brc Ta Yes Ta Yes Ta opened by Sx \&Bro
711 .It Sx \&Bro Ta Yes Ta Yes Ta closed by Sx \&Brc
712 .It Sx \&Dc Ta Yes Ta Yes Ta opened by Sx \&Do
713 .It Sx \&Do Ta Yes Ta Yes Ta closed by Sx \&Dc
714 .It Sx \&Ec Ta Yes Ta Yes Ta opened by Sx \&Eo
715 .It Sx \&Eo Ta Yes Ta Yes Ta closed by Sx \&Ec
716 .It Sx \&Fc Ta Yes Ta Yes Ta opened by Sx \&Fo
717 .It Sx \&Fo Ta \&No Ta \&No Ta closed by Sx \&Fc
718 .It Sx \&Oc Ta Yes Ta Yes Ta closed by Sx \&Oo
719 .It Sx \&Oo Ta Yes Ta Yes Ta opened by Sx \&Oc
720 .It Sx \&Pc Ta Yes Ta Yes Ta closed by Sx \&Po
721 .It Sx \&Po Ta Yes Ta Yes Ta opened by Sx \&Pc
722 .It Sx \&Qc Ta Yes Ta Yes Ta opened by Sx \&Oo
723 .It Sx \&Qo Ta Yes Ta Yes Ta closed by Sx \&Oc
724 .It Sx \&Re Ta \&No Ta \&No Ta opened by Sx \&Rs
725 .It Sx \&Rs Ta \&No Ta \&No Ta closed by Sx \&Re
726 .It Sx \&Sc Ta Yes Ta Yes Ta opened by Sx \&So
727 .It Sx \&So Ta Yes Ta Yes Ta closed by Sx \&Sc
728 .It Sx \&Xc Ta Yes Ta Yes Ta opened by Sx \&Xo
729 .It Sx \&Xo Ta Yes Ta Yes Ta closed by Sx \&Xc
731 .Ss Block partial-implicit
732 Like block full-implicit, but with single-line scope closed by
735 .Bd -literal -offset indent
736 \&.Yo \(lB\-arg \(lBval...\(rB\(rB \(lBbody...\(rB \(lBres...\(rB
739 .Bl -column "MacroX" "CallableX" "ParsedX" -compact -offset indent
740 .It Em Macro Ta Em Callable Ta Em Parsed
741 .It Sx \&Aq Ta Yes Ta Yes
742 .It Sx \&Bq Ta Yes Ta Yes
743 .It Sx \&Brq Ta Yes Ta Yes
744 .It Sx \&D1 Ta \&No Ta \&Yes
745 .It Sx \&Dl Ta \&No Ta Yes
746 .It Sx \&Dq Ta Yes Ta Yes
747 .It Sx \&Op Ta Yes Ta Yes
748 .It Sx \&Pq Ta Yes Ta Yes
749 .It Sx \&Ql Ta Yes Ta Yes
750 .It Sx \&Qq Ta Yes Ta Yes
751 .It Sx \&Sq Ta Yes Ta Yes
752 .It Sx \&Vt Ta Yes Ta Yes
758 .Sx Block partial-implicit
759 only when invoked as the first macro
762 section line, else it is
767 end of line, fixed argument lengths, and/or subsequent macros.
768 In-line macros have only text children.
769 If a number (or inequality) of arguments is
771 then the macro accepts an arbitrary number of arguments.
772 .Bd -literal -offset indent
773 \&.Yo \(lB\-arg \(lBval...\(rB\(rB \(lBargs...\(rB \(lBres...\(rB
775 \&.Yo \(lB\-arg \(lBval...\(rB\(rB \(lBargs...\(rB Yc...
777 \&.Yo \(lB\-arg \(lBval...\(rB\(rB arg0 arg1 argN
780 .Bl -column "MacroX" "CallableX" "ParsedX" "Arguments" -compact -offset indent
781 .It Em Macro Ta Em Callable Ta Em Parsed Ta Em Arguments
782 .It Sx \&%A Ta \&No Ta \&No Ta >0
783 .It Sx \&%B Ta \&No Ta \&No Ta >0
784 .It Sx \&%C Ta \&No Ta \&No Ta >0
785 .It Sx \&%D Ta \&No Ta \&No Ta >0
786 .It Sx \&%I Ta \&No Ta \&No Ta >0
787 .It Sx \&%J Ta \&No Ta \&No Ta >0
788 .It Sx \&%N Ta \&No Ta \&No Ta >0
789 .It Sx \&%O Ta \&No Ta \&No Ta >0
790 .It Sx \&%P Ta \&No Ta \&No Ta >0
791 .It Sx \&%Q Ta \&No Ta \&No Ta >0
792 .It Sx \&%R Ta \&No Ta \&No Ta >0
793 .It Sx \&%T Ta \&No Ta \&No Ta >0
794 .It Sx \&%U Ta \&No Ta \&No Ta >0
795 .It Sx \&%V Ta \&No Ta \&No Ta >0
796 .It Sx \&Ad Ta Yes Ta Yes Ta >0
797 .It Sx \&An Ta Yes Ta Yes Ta >0
798 .It Sx \&Ap Ta Yes Ta Yes Ta 0
799 .It Sx \&Ar Ta Yes Ta Yes Ta n
800 .It Sx \&At Ta Yes Ta Yes Ta 1
801 .It Sx \&Bsx Ta Yes Ta Yes Ta n
802 .It Sx \&Bt Ta \&No Ta \&No Ta 0
803 .It Sx \&Bx Ta Yes Ta Yes Ta n
804 .It Sx \&Cd Ta Yes Ta Yes Ta >0
805 .It Sx \&Cm Ta Yes Ta Yes Ta >0
806 .It Sx \&Db Ta \&No Ta \&No Ta 1
807 .It Sx \&Dd Ta \&No Ta \&No Ta n
808 .It Sx \&Dt Ta \&No Ta \&No Ta n
809 .It Sx \&Dv Ta Yes Ta Yes Ta >0
810 .It Sx \&Dx Ta Yes Ta Yes Ta n
811 .It Sx \&Em Ta Yes Ta Yes Ta >0
812 .It Sx \&En Ta \&No Ta \&No Ta 0
813 .It Sx \&Er Ta Yes Ta Yes Ta >0
814 .It Sx \&Es Ta \&No Ta \&No Ta 0
815 .It Sx \&Ev Ta Yes Ta Yes Ta >0
816 .It Sx \&Ex Ta \&No Ta \&No Ta n
817 .It Sx \&Fa Ta Yes Ta Yes Ta >0
818 .It Sx \&Fd Ta \&No Ta \&No Ta >0
819 .It Sx \&Fl Ta Yes Ta Yes Ta n
820 .It Sx \&Fn Ta Yes Ta Yes Ta >0
821 .It Sx \&Fr Ta \&No Ta \&No Ta n
822 .It Sx \&Ft Ta Yes Ta Yes Ta >0
823 .It Sx \&Fx Ta Yes Ta Yes Ta n
824 .It Sx \&Hf Ta \&No Ta \&No Ta n
825 .It Sx \&Ic Ta Yes Ta Yes Ta >0
826 .It Sx \&In Ta \&No Ta \&No Ta 1
827 .It Sx \&Lb Ta \&No Ta \&No Ta 1
828 .It Sx \&Li Ta Yes Ta Yes Ta >0
829 .It Sx \&Lk Ta Yes Ta Yes Ta >0
830 .It Sx \&Lp Ta \&No Ta \&No Ta 0
831 .It Sx \&Ms Ta Yes Ta Yes Ta >0
832 .It Sx \&Mt Ta Yes Ta Yes Ta >0
833 .It Sx \&Nm Ta Yes Ta Yes Ta n
834 .It Sx \&No Ta Yes Ta Yes Ta 0
835 .It Sx \&Ns Ta Yes Ta Yes Ta 0
836 .It Sx \&Nx Ta Yes Ta Yes Ta n
837 .It Sx \&Os Ta \&No Ta \&No Ta n
838 .It Sx \&Ot Ta \&No Ta \&No Ta n
839 .It Sx \&Ox Ta Yes Ta Yes Ta n
840 .It Sx \&Pa Ta Yes Ta Yes Ta n
841 .It Sx \&Pf Ta Yes Ta Yes Ta 1
842 .It Sx \&Pp Ta \&No Ta \&No Ta 0
843 .It Sx \&Rv Ta \&No Ta \&No Ta n
844 .It Sx \&Sm Ta \&No Ta \&No Ta 1
845 .It Sx \&St Ta \&No Ta Yes Ta 1
846 .It Sx \&Sx Ta Yes Ta Yes Ta >0
847 .It Sx \&Sy Ta Yes Ta Yes Ta >0
848 .It Sx \&Tn Ta Yes Ta Yes Ta >0
849 .It Sx \&Ud Ta \&No Ta \&No Ta 0
850 .It Sx \&Ux Ta Yes Ta Yes Ta n
851 .It Sx \&Va Ta Yes Ta Yes Ta n
852 .It Sx \&Vt Ta Yes Ta Yes Ta >0
853 .It Sx \&Xr Ta Yes Ta Yes Ta >0
854 .It Sx \&br Ta \&No Ta \&No Ta 0
855 .It Sx \&sp Ta \&No Ta \&No Ta 1
858 This section is a canonical reference of all macros, arranged
860 For the scoping of individual macros, see
866 Multiple authors should each be accorded their own
869 Author names should be ordered with full or abbreviated forename(s)
870 first, then full surname.
875 This macro may also be used in a non-bibliographic context when
876 referring to book titles.
878 Publication city or location of an
882 Publication date of an
885 Recommended formats of arguments are
890 Publisher or issuer name of an
898 Issue number (usually for journals) of an
902 Optional information of an
906 Book or journal page number of an
910 Institutional author (school, government, etc.) of an
913 Multiple institutional authors should each be accorded their own
917 Technical report name of an
924 This macro may also be used in a non-bibliographical context when
925 referring to article titles.
927 URI of reference document.
936 Does not have any tail arguments.
939 Do not use this for postal addresses.
946 Requires either the name of an author or one of the following arguments:
948 .Bl -tag -width "-nosplitX" -offset indent -compact
950 Start a new output line before each subsequent invocation of
959 The effect of selecting either of the
961 modes ends at the beginning of the
966 section, the default is
968 for the first author listing and
970 for all other author listings.
974 .Dl \&.An Kristaps Dzonsons \&Aq kristaps@bsd.lv
976 Begin a block enclosed by angle brackets.
977 Does not have any head arguments.
980 .Dl \&.Fl -key= \&Ns \&Ao \&Ar val \&Ac
985 Inserts an apostrophe without any surrounding whitespace.
986 This is generally used as a grammatical device when referring to the verb
990 .Dl \&.Fn execve \&Ap d
992 Encloses its arguments in angle brackets.
995 .Dl \&.Fl -key= \&Ns \&Aq \&Ar val
998 this macro is often abused for rendering URIs, which should instead use
1002 or to note pre-processor
1004 statements, which should use
1011 If an argument is not provided, the string
1013 is used as a default.
1016 .Dl \&.Fl o \&Ns \&Ar file1
1018 .Dl \&.Ar arg1 , arg2 .
1020 Formats an AT&T version.
1021 Accepts one optional argument:
1023 .Bl -tag -width "v[1-7] | 32vX" -offset indent -compact
1032 Note that these arguments do not begin with a hyphen.
1051 Does not have any tail arguments.
1053 Begin a display block.
1054 Its syntax is as follows:
1055 .Bd -ragged -offset indent
1058 .Op Fl offset Ar width
1062 Display blocks are used to select a different indentation and
1063 justification than the one used by the surrounding text.
1064 They may contain both macro lines and text lines.
1065 By default, a display block is preceded by a vertical space.
1069 must be one of the following:
1070 .Bl -tag -width 13n -offset indent
1072 Centre-justify each line.
1073 Using this display type is not recommended; many
1075 implementations render it poorly.
1077 Left- and right-justify the block.
1079 Do not justify the block at all.
1080 Preserve white space as it appears in the input.
1082 Only left-justify the block.
1090 must be provided first.
1091 Additional arguments may follow:
1092 .Bl -tag -width 13n -offset indent
1093 .It Fl offset Ar width
1094 Indent the display by the
1096 which may be one of the following:
1099 One of the pre-defined strings
1101 the width of standard indentation;
1106 which has no effect;
1108 which justifies to the right margin; or
1110 which aligns around an imagined centre axis.
1112 A macro invocation, which selects a predefined width
1113 associated with that macro.
1114 The most popular is the imaginary macro
1119 A width using the syntax described in
1120 .Sx Scaling Widths .
1122 An arbitrary string, which indents by the length of this string.
1125 When the argument is missing,
1129 Do not assert vertical space before the display.
1133 .Bd -literal -offset indent
1134 \&.Bd \-literal \-offset indent \-compact
1144 Change the font mode for a scoped block of text.
1145 Its syntax is as follows:
1146 .Bd -ragged -offset indent
1149 .Fl emphasis | literal | symbolic |
1150 .Cm \&Em | \&Li | \&Sy
1158 argument are equivalent, as are
1166 Without an argument, this macro does nothing.
1167 The font mode continues until broken by a new font mode in a nested
1179 Keep the output generated from each macro input line together
1180 on one single output line.
1181 Line breaks in text lines are unaffected.
1182 The syntax is as follows:
1184 .D1 Pf \. Sx \&Bk Fl words
1188 argument is required; additional arguments are ignored.
1190 The following example will not break within each
1193 .Bd -literal -offset indent
1196 \&.Op Fl o Ar output
1200 Be careful in using over-long lines within a keep block!
1201 Doing so will clobber the right margin.
1204 Lists consist of items specified using the
1206 macro, containing a head or a body or both.
1207 The list syntax is as follows:
1208 .Bd -ragged -offset indent
1212 .Op Fl offset Ar val
1219 is mandatory and must be specified first.
1226 or use the length of the given string.
1229 is a global indentation for the whole list, affecting both item heads
1231 For those list types supporting it, the
1233 argument requests an additional indentation of item bodies,
1238 argument is specified, list entries are separated by vertical space.
1240 A list must specify one of the following list types:
1241 .Bl -tag -width 12n -offset indent
1243 No item heads can be specified, but a bullet will be printed at the head
1245 Item bodies start on the same output line as the bullet
1246 and are indented according to the
1253 argument has no effect; instead, each argument specifies the width
1254 of one column, using either the
1256 syntax or the string length of the argument.
1257 If the first line of the body of a
1263 contexts spanning one input line each are implied until an
1265 macro line is encountered, at which point items start being interpreted as
1272 except that dashes are used in place of bullets.
1276 except that item heads are not parsed for macro invocations.
1277 .\" but with additional formatting to the head.
1282 except that cardinal numbers are used in place of bullets,
1287 except that the first lines of item bodies are not indented, but follow
1288 the item heads like in
1295 Item bodies follow items heads on the same line, using normal inter-word
1297 Bodies are not indented, and the
1299 argument is ignored.
1301 No item heads can be specified, and none are printed.
1302 Bodies are not indented, and the
1304 argument is ignored.
1306 Item bodies start on the line following item heads and are not indented.
1309 argument is ignored.
1311 Item bodies are indented according to the
1314 When an item head fits inside the indentation, the item body follows
1315 this head on the same output line.
1316 Otherwise, the body starts on the output line following the head.
1324 Begin a block enclosed by square brackets.
1325 Does not have any head arguments.
1328 .Bd -literal -offset indent -compact
1336 Encloses its arguments in square brackets.
1339 .Dl \&.Bq 1 , \&Dv BUFSIZ
1342 this macro is sometimes abused to emulate optional arguments for
1343 commands; the correct macros to use for this purpose are
1355 Does not have any tail arguments.
1357 Begin a block enclosed by curly braces.
1358 Does not have any head arguments.
1361 .Bd -literal -offset indent -compact
1369 Encloses its arguments in curly braces.
1372 .Dl \&.Brq 1 , ... , \&Va n
1377 Format the BSD/OS version provided as an argument, or a default value if
1378 no argument is provided.
1395 .Dq is currently in beta test .
1397 Format the BSD version provided as an argument, or a default value if no
1398 argument is provided.
1414 Kernel configuration declaration.
1415 This denotes strings accepted by
1419 .Dl \&.Cd device le0 at scode?
1422 this macro is commonly abused by using quoted literals to retain
1423 whitespace and align consecutive
1426 This practise is discouraged.
1429 Useful when specifying configuration options or keys.
1432 .Dl \&.Cm ControlPath
1433 .Dl \&.Cm ControlMaster
1438 One-line indented display.
1439 This is formatted by the default rules and is useful for simple indented
1441 It is followed by a newline.
1444 .Dl \&.D1 \&Fl abcdefgh
1451 Switch debugging mode.
1452 Its syntax is as follows:
1454 .D1 Pf \. Sx \&Db Cm on | off
1456 This macro is ignored by
1462 Does not have any tail arguments.
1465 This is the mandatory first macro of any
1468 Its syntax is as follows:
1470 .D1 Pf \. Sx \&Dd Ar month day , year
1474 is the full English month name, the
1476 is an optionally zero-padded numeral, and the
1478 is the full four-digit year.
1480 Other arguments are not portable; the
1482 utility handles them as follows:
1483 .Bl -dash -offset 3n -compact
1485 To have the date automatically filled in by the
1491 can be given as an argument.
1493 A few alternative date formats are accepted as well
1494 and converted to the standard form.
1496 If a date string cannot be parsed, it is used verbatim.
1498 If no date string is given, the current date is used.
1502 .Dl \&.Dd $\&Mdocdate$
1503 .Dl \&.Dd $\&Mdocdate: July 21 2007$
1504 .Dl \&.Dd July 21, 2007
1511 One-line intended display.
1512 This is formatted as literal text and is useful for commands and
1514 It is followed by a newline.
1517 .Dl \&.Dl % mandoc mdoc.7 \e(ba less
1524 Begin a block enclosed by double quotes.
1525 Does not have any head arguments.
1528 .Bd -literal -offset indent -compact
1530 April is the cruellest month
1538 Encloses its arguments in
1543 .Bd -literal -offset indent -compact
1544 \&.Dq April is the cruellest month
1555 This is the mandatory second macro of any
1558 Its syntax is as follows:
1559 .Bd -ragged -offset indent
1565 .Op Ar volume | arch
1570 Its arguments are as follows:
1571 .Bl -tag -width Ds -offset Ds
1573 The document's title (name), defaulting to
1576 It should be capitalised.
1587 .Pq Perl libraries ,
1597 .Pq system utilities ,
1599 .Pq kernel functions ,
1601 .Pq X Window System ,
1603 .Pq X Window System ,
1613 It should correspond to the manual's filename suffix and defaults to
1617 This overrides the volume inferred from
1619 This field is optional, and if specified, must be one of
1621 .Pq users' supplementary documents ,
1623 .Pq programmers' supplementary documents ,
1625 .Pq administrators' supplementary documents ,
1627 .Pq system managers' manuals ,
1629 .Pq users' reference manuals ,
1631 .Pq programmers' reference manuals ,
1633 .Pq kernel manuals ,
1644 .Pq contributed manuals .
1646 This specifies a specific relevant architecture.
1649 is not provided, it may be used in its place, else it may be used
1651 It, too, is optional.
1687 .Dl \&.Dt FOO 9 i386
1694 Defined variables such as preprocessor constants.
1698 .Dl \&.Dv STDOUT_FILENO
1703 Format the DragonFly BSD version provided as an argument, or a default
1704 value if no argument is provided.
1720 Close a scope started by
1722 Its syntax is as follows:
1724 .D1 Pf \. Sx \&Ec Op Ar TERM
1728 argument is used as the enclosure tail, for example, specifying \e(rq
1732 End a display context started by
1735 End a font mode context started by
1738 End a keep context started by
1741 End a list context started by
1749 Denotes text that should be emphasised.
1750 Note that this is a presentation term and should not be used for
1751 stylistically decorating technical terms.
1763 This macro is obsolete and not implemented in
1766 An arbitrary enclosure.
1767 Its syntax is as follows:
1769 .D1 Pf \. Sx \&Eo Op Ar TERM
1773 argument is used as the enclosure head, for example, specifying \e(lq
1777 Display error constants.
1786 This macro is obsolete and not implemented.
1788 Environmental variables such as those specified in
1795 Insert a standard sentence regarding exit values.
1796 Its syntax is as follows:
1798 .D1 Pf \. Sx \&Ex Fl std Op Ar utility
1802 is not specified, the document's name set by
1810 Its syntax is as follows:
1811 .Bd -ragged -offset indent
1817 This may be invoked for names with or without the corresponding type.
1818 It is also used to specify the field name of a structure.
1821 macro is used in the
1825 section when documenting multi-line function prototypes.
1826 If invoked with multiple arguments, the arguments are separated by a
1828 Furthermore, if the following macro is another
1830 the last argument will also have a trailing comma.
1833 .Dl \&.Fa \(dqconst char *p\(dq
1834 .Dl \&.Fa \(dqint a\(dq \(dqint b\(dq \(dqint c\(dq
1840 End a function context started by
1843 Historically used to document include files.
1844 This usage has been deprecated in favour of
1846 Do not use this macro.
1849 .Sx MANUAL STRUCTURE
1854 Used when listing arguments to command-line utilities.
1855 Prints a fixed-width hyphen
1857 directly followed by each argument.
1858 If no arguments are provided, a hyphen is printed followed by a space.
1859 If the argument is a macro, a hyphen is prefixed to the subsequent macro
1866 .Dl \&.Op \&Fl o \&Ns \&Ar file
1872 Its syntax is as follows:
1873 .Bd -ragged -offset indent
1877 .Op Oo Ar argtype Oc Ar argname
1880 Function arguments are surrounded in parenthesis and
1881 are delimited by commas.
1882 If no arguments are specified, blank parenthesis are output.
1885 .Dl \&.Fn \*qint funcname\*q \*qint arg0\*q \*qint arg1\*q
1886 .Dl \&.Fn funcname \*qint arg0\*q
1887 .Dl \&.Fn funcname arg0
1888 .Bd -literal -offset indent -compact
1893 When referring to a function documented in another manual page, use
1897 .Sx MANUAL STRUCTURE
1901 Begin a function block.
1902 This is a multi-line version of
1904 Its syntax is as follows:
1906 .D1 Pf \. Sx \&Fo Ar funcname
1908 Invocations usually occur in the following context:
1909 .Bd -ragged -offset indent
1910 .Pf \. Sx \&Ft Ar functype
1912 .Pf \. Sx \&Fo Ar funcname
1914 .Pf \. Sx \&Fa Oo Ar argtype Oc Ar argname
1926 .Sx MANUAL STRUCTURE ,
1933 Its syntax is as follows:
1935 .D1 Pf \. Sx \&Ft Ar functype
1939 .Bd -literal -offset indent -compact
1945 .Sx MANUAL STRUCTURE ,
1952 version provided as an argument, or a default value
1953 if no argument is provided.
1969 This macro is obsolete and not implemented.
1971 Designate an internal or interactive command.
1974 but used for instructions rather than values.
1984 is preferred for displaying code; the
1986 macro is used when referring to specific instructions.
1993 section (only if invoked as the line macro), the first argument is
1996 the arguments is enclosed in angle brackets.
2002 .Sx MANUAL STRUCTURE .
2005 The syntax of this macro depends on the list type.
2014 have the following syntax:
2016 .D1 Pf \. Sx \&It Ar args
2025 have the following syntax:
2029 with subsequent lines interpreted within the scope of the
2031 until either a closing
2038 list has the following syntax:
2040 .D1 Pf \. Sx \&It Op Cm args
2042 Subsequent lines are interpreted as with
2045 The line arguments correspond to the list's left-hand side; body
2046 arguments correspond to the list's contents.
2050 list is the most complicated.
2051 Its syntax is as follows:
2053 .D1 Pf \. Sx \&It Op Cm args
2057 are phrases, a mix of macros and text corresponding to a line column,
2058 delimited by tabs or the special
2061 Lines subsequent the
2063 are interpreted within the scope of the last phrase.
2064 Calling the pseudo-macro
2066 will open a new phrase scope (this must occur on a macro line to be
2067 interpreted as a macro).
2068 Note that the tab phrase delimiter may only be used within the
2071 Subsequent this, only the
2073 pseudo-macro may be used to delimit phrases.
2074 Furthermore, note that quoted sections propagate over tab-delimited
2079 .Dl .It \(dqcol1 ; <TAB> col2 ;\(dq \&;
2081 will preserve the semicolon whitespace except for the last.
2087 The syntax is as follows:
2089 .D1 Pf \. Sx \&Lb Ar library
2093 parameter may be a system library, such as
2097 in which case a small library description is printed next to the linker
2098 invocation; or a custom library, in which case the library name is
2100 This is most commonly used in the
2102 section as described in
2103 .Sx MANUAL STRUCTURE .
2109 Denotes text that should be in a literal font mode.
2110 Note that this is a presentation term and should not be used for
2111 stylistically decorating technical terms.
2120 Its syntax is as follows:
2122 .D1 Pf \. Sx \&Lk Ar uri Op Ar name
2125 .Dl \&.Lk http://bsd.lv \*qThe BSD.lv Project\*q
2126 .Dl \&.Lk http://bsd.lv
2134 Display a mathematical symbol.
2135 Its syntax is as follows:
2137 .D1 Pf \. Sx \&Ms Ar symbol
2146 Its syntax is as follows:
2148 .D1 Pf \. Sx \&Mt Ar address
2151 .Dl \&.Mt discuss@manpages.bsd.lv
2153 A one line description of the manual's content.
2154 This may only be invoked in the
2156 section subsequent the
2161 .Dl \&.Sx \&Nd mdoc language reference
2162 .Dl \&.Sx \&Nd format and display UNIX manuals
2166 macro technically accepts child macros and terminates with a subsequent
2169 Do not assume this behaviour: some
2171 database generators are not smart enough to parse more than the line
2172 arguments and will display macros verbatim.
2177 The name of the manual page, or \(em in particular in section 1, 6,
2178 and 8 pages \(em of an additional command or feature documented in
2180 When first invoked, the
2182 macro expects a single argument, the name of the manual page.
2183 Usually, the first invocation happens in the
2185 section of the page.
2186 The specified name will be remembered and used whenever the macro is
2187 called again without arguments later in the page.
2191 .Sx Block full-implicit
2192 semantics when invoked as the first macro on an input line in the
2194 section; otherwise, it uses ordinary
2199 .Bd -literal -offset indent
2208 of section 2, 3 and 9 manual pages, use the
2212 to mark up the name of the manual page.
2216 macro used to terminate prior macro contexts.
2219 .Dl \&.Sx \&Fl ab \&No cd \&Fl ef
2222 Following invocation, text is interpreted as free-form text until a
2223 macro is encountered.
2225 This has no effect when invoked at the start of a macro line.
2228 .Dl \&.Fl o \&Ns \&Ar output
2237 version provided as an argument, or a default value if
2238 no argument is provided.
2258 Multi-line version of
2262 .Bd -literal -offset indent -compact
2264 \&.Op Fl flag Ns Ar value
2268 Command-line option.
2269 Used when listing options to command-line utilities.
2270 Prints the argument(s) in brackets.
2273 .Dl \&.Op \&Fl a \&Ar b
2274 .Dl \&.Op \&Ar a | b
2279 Document operating system version.
2280 This is the mandatory third macro of
2284 Its syntax is as follows:
2286 .D1 Pf \. Sx \&Os Op Ar system Op Ar version
2290 parameter specifies the relevant operating system or environment.
2291 Left unspecified, it defaults to the local operating system version.
2292 This is the suggested form.
2296 .Dl \&.Os KTH/CSC/TCS
2307 this macro has been deprecated.
2311 version provided as an argument, or a default value
2312 if no argument is provided.
2329 If an argument is not provided, the string
2331 is used as a default.
2334 .Dl \&.Pa /usr/bin/mandoc
2335 .Dl \&.Pa /usr/share/man/man7/mdoc.7
2340 Close parenthesised context opened by
2345 between its arguments.
2346 Its syntax is as follows:
2348 .D1 Pf \. \&Pf Ar prefix suffix
2352 argument may be a macro.
2355 .Dl \&.Pf \e. \&Sx \&Pf \&Ar prefix suffix
2357 Multi-line version of
2361 This will assert vertical space between prior and subsequent macros
2364 Parenthesised enclosure.
2369 Close quoted context opened by
2372 Format a single-quoted literal.
2378 Multi-line version of
2381 Encloses its arguments in
2396 Does not have any tail arguments.
2398 Begin a bibliographic
2401 Does not have any head arguments.
2402 The block macro may only contain
2418 child macros (at least one must be specified).
2421 .Bd -literal -offset indent -compact
2423 \&.%A J. E. Hopcroft
2425 \&.%B Introduction to Automata Theory, Languages, and Computation
2426 \&.%I Addison-Wesley
2427 \&.%C Reading, Massachusettes
2434 block is used within a SEE ALSO section, a vertical space is asserted
2435 before the rendered output, else the block continues on the current
2438 Inserts text regarding a function call's return value.
2439 This macro must consist of the
2441 argument followed by an optional
2445 is not provided, the document's name as stipulated by the first
2452 Close single-quoted context opened by
2455 Begin a new section.
2456 For a list of conventional manual sections, see
2457 .Sx MANUAL STRUCTURE .
2458 These sections should be used unless it's absolutely necessary that
2459 custom sections be used.
2461 Section names should be unique so that they may be keyed by
2470 Switches the spacing mode for output generated from macros.
2471 Its syntax is as follows:
2473 .D1 Pf \. Sx \&Sm Cm on | off
2475 By default, spacing is
2479 no white space is inserted between macro arguments and between the
2480 output generated from adjacent macros, but text lines
2481 still get normal spacing between words and sentences.
2483 Multi-line version of
2486 Encloses its arguments in
2496 Begin a new sub-section.
2499 there's no convention for sub-sections.
2500 Conventional sections, as described in
2501 .Sx MANUAL STRUCTURE ,
2502 rarely have sub-sections.
2504 Sub-section names should be unique so that they may be keyed by
2513 Replace an abbreviation for a standard with the full form.
2514 The following standards are recognised:
2516 .Bl -tag -width "-p1003.1g-2000X" -compact
2610 Reference a section or sub-section.
2611 The referenced section or sub-section name must be identical to the
2612 enclosed argument, including whitespace.
2615 .Dl \&.Sx MANUAL STRUCTURE
2622 Format enclosed arguments in symbolic
2624 Note that this is a presentation term and should not be used for
2625 stylistically decorating technical terms.
2639 .Dq currently under development .
2641 Format the UNIX name.
2642 Accepts no argument.
2661 .Dl \&.Va const char *bar ;
2664 This is also used for indicating global variables in the
2666 section, in which case a variable name is also specified.
2667 Note that it accepts
2668 .Sx Block partial-implicit
2669 syntax when invoked as the first macro in the
2671 section, else it accepts ordinary
2675 Note that this should not be confused with
2677 which is used for function return types.
2680 .Dl \&.Vt unsigned char
2681 .Dl \&.Vt extern const char * const sys_signame[] \&;
2684 .Sx MANUAL STRUCTURE
2688 Close a scope opened by
2691 Extend the header of an
2693 macro or the body of a partial-implicit block macro
2694 beyond the end of the input line.
2695 This macro originally existed to work around the 9-argument limit
2699 Link to another manual
2700 .Pq Qq cross-reference .
2701 Its syntax is as follows:
2703 .D1 Pf \. Sx \&Xr Ar name section
2709 are the name and section of the linked manual.
2712 is followed by non-punctuation, an
2714 is inserted into the token stream.
2715 This behaviour is for compatibility with
2720 .Dl \&.Xr mandoc 1 \&;
2721 .Dl \&.Xr mandoc 1 \&Ns s behaviour
2724 This macro should not be used; it is implemented for compatibility with
2729 in the event of natural paragraph breaks.
2731 Emits vertical space.
2732 This macro should not be used; it is implemented for compatibility with
2734 Its syntax is as follows:
2736 .D1 Pf \. Sx \&sp Op Ar height
2740 argument must be formatted as described in
2741 .Sx Scaling Widths .
2744 asserts a single vertical space.
2746 This section documents compatibility between mandoc and other other
2747 troff implementations, at this time limited to GNU troff
2751 refers to groff versions before 1.17,
2752 which featured a significant update of the
2756 Heirloom troff, the other significant troff implementation accepting
2757 \-mdoc, is similar to historic groff.
2759 The following problematic behaviour is found in groff:
2760 .ds hist (Historic groff only.)
2775 with unknown arguments produces no output at all.
2777 Newer groff and mandoc print
2782 does not recognize trailing punctuation characters when they immediately
2783 precede tabulator characters, but treats them as normal text and
2784 outputs a space before them.
2786 .Sx \&Bd Fl ragged compact
2787 does not start a new line.
2791 with non-standard arguments behaves very strangely.
2792 When there are three arguments, they are printed verbatim.
2793 Any other number of arguments is replaced by the current date,
2794 but without any arguments the string
2799 does not print a dash for an empty argument.
2803 does not start a new line unless invoked as the line macro in the
2811 children causes inconsistent spacing between arguments.
2812 In mandoc, a single space is always inserted between arguments.
2817 causes inconsistent vertical spacing, depending on whether a prior
2824 for the normalised behaviour in mandoc.
2827 ignores additional arguments and is not treated specially in the
2832 sometimes requires a
2836 In new groff and mandoc, any list may be nested by default and
2838 lists will restart the sequence only for the sub-list.
2841 followed by a reserved character is incorrectly used in some manuals
2842 instead of properly quoting that character, which sometimes works with
2846 only accepts a single link-name argument; the remainder is misformatted.
2849 does not format its arguments when used in the FILES section under
2853 can only be called by other macros, but not at the beginning of a line.
2858 Historic groff only allows up to eight or nine arguments per macro input
2859 line, depending on the exact situation.
2860 Providing more arguments causes garbled output.
2861 The number of arguments on one input line is not limited with mandoc.
2863 Historic groff has many un-callable macros.
2864 Most of these (excluding some block-level macros) are callable
2865 in new groff and mandoc.
2868 (vertical bar) is not fully supported as a delimiter.
2875 .Pq font family face
2877 escapes behave irregularly when specified within line-macro scopes.
2879 Negative scaling units return to prior lines.
2880 Instead, mandoc truncates them to zero.
2883 The following features are unimplemented in mandoc:
2891 .Fl offset Ar center
2893 .Fl offset Ar right .
2894 Groff does not implement centered and flush-right rendering either,
2895 but produces large indentations.
2899 .Pq horizontal position ,
2901 .Pq vertical position ,
2905 .Pq text filling colour ,
2907 .Pq zero-length character ,
2911 .Pq horizontal position marker ,
2913 .Pq text overstrike ,
2917 escape sequences are all discarded in mandoc.
2921 scaling unit is accepted by mandoc, but rendered as the default unit.
2923 In quoted literals, groff allows pairwise double-quotes to produce a
2924 standalone double-quote in formatted output.
2925 This is not supported by mandoc.
2938 language first appeared as a troff macro package in
2940 It was later significantly updated by Werner Lemberg and Ruslan Ermilov
2942 The standalone implementation that is part of the
2944 utility written by Kristaps Dzonsons appeared in
2949 reference was written by
2950 .An Kristaps Dzonsons Aq kristaps@bsd.lv .