1*ffb8ebfaSGarrett D'Amore.\" Copyright 2014 Garrett D'Amore <garrett@damore.org> 2c10c16deSRichard Lowe.\" Copyright (c) 1995, Sun Microsystems, Inc. 3c10c16deSRichard Lowe.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. 4c10c16deSRichard Lowe.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. 5c10c16deSRichard Lowe.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] 6*ffb8ebfaSGarrett D'Amore.Dd "Jul 30, 2014" 732a712daSGarrett D'Amore.Dt MAN 5 832a712daSGarrett D'Amore.Os 932a712daSGarrett D'Amore.Sh NAME 1032a712daSGarrett D'Amore.Nm man 1132a712daSGarrett D'Amore.Nd macros to format Reference Manual pages 1232a712daSGarrett D'Amore.Sh SYNOPSIS 1332a712daSGarrett D'Amore.Nm mandoc 1432a712daSGarrett D'Amore.Fl T Ar man 1532a712daSGarrett D'Amore.Ar 1632a712daSGarrett D'Amore.Nm nroff 1732a712daSGarrett D'Amore.Fl man 1832a712daSGarrett D'Amore.Ar 1932a712daSGarrett D'Amore.Nm troff 2032a712daSGarrett D'Amore.Fl man 2132a712daSGarrett D'Amore.Ar 2232a712daSGarrett D'Amore.Sh DESCRIPTION 23c10c16deSRichard LoweThese macros are used to lay out the reference pages in this manual. Note: if 2432a712daSGarrett D'Amore.Ar file 2532a712daSGarrett D'Amorecontains format input for a preprocessor, the commands shown 26c10c16deSRichard Loweabove must be piped through the appropriate preprocessor. This is handled 2732a712daSGarrett D'Amoreautomatically by the 2832a712daSGarrett D'Amore.Xr man 1 2932a712daSGarrett D'Amorecommand. See the 3032a712daSGarrett D'Amore.Sx Conventions 3132a712daSGarrett D'Amoresection. 3232a712daSGarrett D'Amore.Lp 3332a712daSGarrett D'AmoreAny text argument 3432a712daSGarrett D'Amore.Ar t 3532a712daSGarrett D'Amoremay be zero to six words. Quotes may be used to 3632a712daSGarrett D'Amoreinclude SPACE characters in a 3732a712daSGarrett D'Amore.Qq word . 3832a712daSGarrett D'AmoreIf 3932a712daSGarrett D'Amore.Ar text 4032a712daSGarrett D'Amoreis empty, the special 41c10c16deSRichard Lowetreatment is applied to the next input line with text to be printed. In this 4232a712daSGarrett D'Amoreway 4332a712daSGarrett D'Amore.Nm \&.I 4432a712daSGarrett D'Amoremay be used to italicize a whole line, or 4532a712daSGarrett D'Amore.Nm \&.SB 4632a712daSGarrett D'Amoremay be used to make small bold letters. 4732a712daSGarrett D'Amore.Lp 48c10c16deSRichard LoweA prevailing indent distance is remembered between successive indented 49c10c16deSRichard Loweparagraphs, and is reset to default value upon reaching a non-indented 5032a712daSGarrett D'Amoreparagraph. Default units for indents 5132a712daSGarrett D'Amore.Nm i 5232a712daSGarrett D'Amoreare ens. 5332a712daSGarrett D'Amore.Lp 54c10c16deSRichard LoweType font and size are reset to default values before each paragraph, and after 55c10c16deSRichard Loweprocessing font and size setting macros. 5632a712daSGarrett D'Amore.Pp 5732a712daSGarrett D'AmoreThese strings are predefined by 5832a712daSGarrett D'Amore.Nm -man : 5932a712daSGarrett D'Amore.Bl -tag -width Ds 6032a712daSGarrett D'Amore.It Nm \e*R 6132a712daSGarrett D'Amore.Sq \(rg , 6232a712daSGarrett D'Amore.Sq (Reg) 6332a712daSGarrett D'Amorein 6432a712daSGarrett D'Amore.Nm nroff . 6532a712daSGarrett D'Amore.It Nm \e*S 66c10c16deSRichard LoweChange to default type size. 6732a712daSGarrett D'Amore.El 6832a712daSGarrett D'Amore.Sh "Requests" 69c10c16deSRichard Lowe* n.t.l. = next text line; p.i. = prevailing indent 7032a712daSGarrett D'Amore.Bl -column ".TH n s d f m" "Cause " "t=n.t.l.*" "Explanation " -offset Ds 7132a712daSGarrett D'Amore.It Sy Request Sy Cause Sy "If No" Sy Explanation 7232a712daSGarrett D'Amore.It "" Sy Break Sy "Argument" "" 7332a712daSGarrett D'Amore.It Nm \&.B Ar "t" no Ar t Ns =n.t.l.* Text is in bold font. 7432a712daSGarrett D'Amore.It Nm \&.BI Ar t no Ar t Ns =n.t.l. Join words, alternating bold and italic. 7532a712daSGarrett D'Amore.It Nm \&.BR Ar t no Ar t Ns =n.t.l. Join words, alternating bold and roman. 7632a712daSGarrett D'Amore.It Nm \&.DT no Li \&.5i 1i... Restore default tabs. 7732a712daSGarrett D'Amore.It Nm \&.HP Ar i yes Ar i Ns =p.i.* "Begin paragraph with hanging indent. Set prevailing indent to" Ar i . 7832a712daSGarrett D'Amore.It Nm \&.I Ar t no Ar t Ns =n.t.l. Text is italic. 7932a712daSGarrett D'Amore.It Nm \&.IB Ar t no Ar t Ns =n.t.l. Join words, altenrating italic and bold. 8032a712daSGarrett D'Amore.It Nm \&.IP Ar x Ar i yes Ar x Ns ="" Same as 8132a712daSGarrett D'Amore.Nm \&.TP 8232a712daSGarrett D'Amorewith tag 8332a712daSGarrett D'Amore.Ar x . 8432a712daSGarrett D'Amore.It Nm \&.IR Ar t no Ar t Ns =n.t.l. Join words, alternating italic and roman. 8532a712daSGarrett D'Amore.It Nm \&.IX Ar t no - Index macro, not used (obsolete). 8632a712daSGarrett D'Amore.It Nm \&.LP yes - Begin left-aligned paragraph. Set prevailing indent to .5i. 8732a712daSGarrett D'Amore.It Nm \&.P yes - Same as 8832a712daSGarrett D'Amore.Nm \&.LP . 8932a712daSGarrett D'Amore.It Nm \&.PD Ar d no Ar d Ns =.4v Set vertical distance between paragraphs. 9032a712daSGarrett D'Amore.It Nm \&.PP yes - Same as 9132a712daSGarrett D'Amore.Nm \&.LP . 9232a712daSGarrett D'Amore.It Nm \&.RE yes - End of relative indent. Restores prevailing indent. 9332a712daSGarrett D'Amore.It Nm \&.RB Ar t no Ar t Ns =n.t.l. Join words, alternating roman and bold. 9432a712daSGarrett D'Amore.It Nm \&.RI Ar t no Ar t Ns =n.t.l. Join words, alternating roman and italic. 9532a712daSGarrett D'Amore.It Nm \&.RS Ar i yes Ar i Ns =p.i. Start relative indent, increase indent by Ar i . 9632a712daSGarrett D'AmoreSets prevailing indent to .5i for nested indents. 9732a712daSGarrett D'Amore.It Nm \&.SB Ar t no - Reduce size of text by 1 point, make text bold. 9832a712daSGarrett D'Amore.It Nm \&.SH Ar t yes - Section Heading. 9932a712daSGarrett D'Amore.It Nm \&.SM Ar t no Ar t Ns =n.t.l. Reduce size of text by 1 point. 10032a712daSGarrett D'Amore.It Nm \&.SS Ar t yes Ar t Ns =n.t.l. Section Subheading. 10132a712daSGarrett D'Amore.It Nm \&.TH Ar n s d f m yes - Begin reference page Ar n , No of section Ar s ; Ar d No is the date of the most recent change. If present, Ar f No is the left page footer; Ar m No is the main page (center) header. Sets prevailing indent and tabs to .5i. 10232a712daSGarrett D'Amore.It Nm \&.TP Ar i yes Ar i Ns =p.i. Begin indented paragraph, with the tag given on the next text line. Set prevailing indent to 10332a712daSGarrett D'Amore.Ar i . 10432a712daSGarrett D'Amore.It Nm \&.TX Ar t p no - Resolve the title abbreviation Ar t ; No join to punctuation mark (or text) Ar p . 10532a712daSGarrett D'Amore.El 10632a712daSGarrett D'Amore.Ss "Conventions" 10732a712daSGarrett D'AmoreWhen formatting a manual page, 10832a712daSGarrett D'Amore.Nm 10932a712daSGarrett D'Amoreexamines the first line to determine 110c10c16deSRichard Lowewhether it requires special processing. For example a first line consisting of: 11132a712daSGarrett D'Amore.Lp 11232a712daSGarrett D'Amore.Dl \&'\e" t 11332a712daSGarrett D'Amore.Lp 11432a712daSGarrett D'Amoreindicates that the manual page must be run through the 11532a712daSGarrett D'Amore.Xr tbl 1 116c10c16deSRichard Lowepreprocessor. 11732a712daSGarrett D'Amore.Lp 118c10c16deSRichard LoweA typical manual page for a command or function is laid out as follows: 11932a712daSGarrett D'Amore.Bl -tag -width ".SH RETURN VALUES" 12032a712daSGarrett D'Amore. 12132a712daSGarrett D'Amore.It Nm \&.TH Ar title Op "1-9" 12232a712daSGarrett D'Amore. 123c10c16deSRichard LoweThe name of the command or function, which serves as the title of the manual 124c10c16deSRichard Lowepage. This is followed by the number of the section in which it appears. 12532a712daSGarrett D'Amore. 12632a712daSGarrett D'Amore.It Nm SH NAME 12732a712daSGarrett D'Amore. 128c10c16deSRichard LoweThe name, or list of names, by which the command is called, followed by a dash 129c10c16deSRichard Loweand then a one-line summary of the action performed. All in roman font, this 13032a712daSGarrett D'Amoresection contains no 13132a712daSGarrett D'Amore.Xr troff 1 13232a712daSGarrett D'Amorecommands or escapes, and no macro requests. 13332a712daSGarrett D'AmoreIt is used to generate the database used by the 13432a712daSGarrett D'Amore.Xr whatis 1 13532a712daSGarrett D'Amorecommand. 13632a712daSGarrett D'Amore. 13732a712daSGarrett D'Amore.It Nm SH SYNOPSIS 13832a712daSGarrett D'Amore.Bl -tag -width "Functions:" 13932a712daSGarrett D'Amore.It Sy Commands: 140c10c16deSRichard LoweThe syntax of the command and its arguments, as typed on the command line. 141c10c16deSRichard LoweWhen in boldface, a word must be typed exactly as printed. When in italics, a 142c10c16deSRichard Loweword can be replaced with an argument that you supply. References to bold or 143c10c16deSRichard Loweitalicized items are not capitalized in other sections, even when they begin a 144c10c16deSRichard Lowesentence. 14532a712daSGarrett D'Amore.Lp 146c10c16deSRichard LoweSyntactic symbols appear in roman face: 14732a712daSGarrett D'Amore.Bl -tag -width " " 14832a712daSGarrett D'Amore.It Op " " 149c10c16deSRichard LoweAn argument, when surrounded by brackets is optional. 15032a712daSGarrett D'Amore.It | 151c10c16deSRichard LoweArguments separated by a vertical bar are exclusive. You can supply only one 152c10c16deSRichard Loweitem from such a list. 15332a712daSGarrett D'Amore.It \&.\|.\|. 154c10c16deSRichard LoweArguments followed by an ellipsis can be repeated. When an ellipsis follows a 155c10c16deSRichard Lowebracketed set, the expression within the brackets can be repeated. 15632a712daSGarrett D'Amore.El 15732a712daSGarrett D'Amore.It Sy Functions: 15832a712daSGarrett D'AmoreIf required, the data declaration, or 15932a712daSGarrett D'Amore.Li #include 16032a712daSGarrett D'Amoredirective, is shown first, 161c10c16deSRichard Lowefollowed by the function declaration. Otherwise, the function declaration is 162c10c16deSRichard Loweshown. 16332a712daSGarrett D'Amore.El 16432a712daSGarrett D'Amore. 16532a712daSGarrett D'Amore.It Nm \&.SH DESCRIPTION 16632a712daSGarrett D'Amore. 167c10c16deSRichard LoweA narrative overview of the command or function's external behavior. This 168c10c16deSRichard Loweincludes how it interacts with files or data, and how it handles the standard 169c10c16deSRichard Loweinput, standard output and standard error. Internals and implementation details 170c10c16deSRichard Loweare normally omitted. This section attempts to provide a succinct overview in 171c10c16deSRichard Loweanswer to the question, "what does it do?" 17232a712daSGarrett D'Amore.Lp 173c10c16deSRichard LoweLiteral text from the synopsis appears in constant width, as do literal 174c10c16deSRichard Lowefilenames and references to items that appear elsewhere in the reference 175c10c16deSRichard Lowemanuals. Arguments are italicized. 17632a712daSGarrett D'Amore.Lp 177c10c16deSRichard LoweIf a command interprets either subcommands or an input grammar, its command 17832a712daSGarrett D'Amoreinterface or input grammar is normally described in a 17932a712daSGarrett D'Amore.Nm USAGE 18032a712daSGarrett D'Amoresection, which follows the 18132a712daSGarrett D'Amore.Nm OPTIONS 18232a712daSGarrett D'Amoresection. The 18332a712daSGarrett D'Amore.Nm DESCRIPTION 18432a712daSGarrett D'Amoresection only 185c10c16deSRichard Lowedescribes the behavior of the command itself, not that of subcommands. 18632a712daSGarrett D'Amore. 18732a712daSGarrett D'Amore.It Nm \&.SH OPTIONS 18832a712daSGarrett D'Amore. 189c10c16deSRichard LoweThe list of options along with a description of how each affects the command's 190c10c16deSRichard Loweoperation. 19132a712daSGarrett D'Amore. 19232a712daSGarrett D'Amore.It Nm \&.SH RETURN VALUES 19332a712daSGarrett D'Amore. 194c10c16deSRichard LoweA list of the values the library routine will return to the calling program 195c10c16deSRichard Loweand the conditions that cause these values to be returned. 19632a712daSGarrett D'Amore. 19732a712daSGarrett D'Amore.It Nm \&.SH EXIT STATUS 19832a712daSGarrett D'Amore. 199c10c16deSRichard LoweA list of the values the utility will return to the calling program or shell, 200c10c16deSRichard Loweand the conditions that cause these values to be returned. 20132a712daSGarrett D'Amore. 20232a712daSGarrett D'Amore.It Nm \&.SH FILES 20332a712daSGarrett D'Amore. 204c10c16deSRichard LoweA list of files associated with the command or function. 20532a712daSGarrett D'Amore. 20632a712daSGarrett D'Amore.It Nm \&.SH SEE ALSO 20732a712daSGarrett D'Amore. 208c10c16deSRichard LoweA comma-separated list of related manual pages, followed by references to other 209c10c16deSRichard Lowepublished materials. 21032a712daSGarrett D'Amore. 21132a712daSGarrett D'Amore.It Nm \&.SH DIAGNOSTICS 21232a712daSGarrett D'Amore. 213c10c16deSRichard LoweA list of diagnostic messages and an explanation of each. 21432a712daSGarrett D'Amore. 21532a712daSGarrett D'Amore.It Nm \&.SH BUGS 21632a712daSGarrett D'Amore. 217c10c16deSRichard LoweA description of limitations, known defects, and possible problems associated 218c10c16deSRichard Lowewith the command or function. 21932a712daSGarrett D'Amore.El 22032a712daSGarrett D'Amore.Sh FILES 22132a712daSGarrett D'Amore.Pa /usr/share/man/whatis 22232a712daSGarrett D'Amore.Sh NOTES 22332a712daSGarrett D'AmoreThe 22432a712daSGarrett D'Amore.Nm 22532a712daSGarrett D'Amorepackage should not be used for new documentation. The 22632a712daSGarrett D'Amore.Xr mdoc 5 , 22732a712daSGarrett D'Amorepackage is preferred, as it uses semantic markup rather than physical markup. 22832a712daSGarrett D'Amore.Sh CODE SET INDEPENDENCE 22932a712daSGarrett D'AmoreWhen processed with 23032a712daSGarrett D'Amore.Xr mandoc 1 , 23132a712daSGarrett D'Amorethis package is Code Set Independent. However, when processed with 23232a712daSGarrett D'Amorelegacy tools such as 23332a712daSGarrett D'Amore.Xr nroff 1 23432a712daSGarrett D'Amoreand 23532a712daSGarrett D'Amore.Xr troff 1 , 23632a712daSGarrett D'Amorethe use of multi-byte characters may not be supported. 23732a712daSGarrett D'Amore.Sh INTERFACE STABILITY 238*ffb8ebfaSGarrett D'Amore.Sy Obsolete Committed . 23932a712daSGarrett D'AmoreThe 24032a712daSGarrett D'Amore.Xr mdoc 5 24132a712daSGarrett D'Amorepackage should be used instead. 24232a712daSGarrett D'Amore.Sh SEE ALSO 24332a712daSGarrett D'Amore.Xr eqn 1 , 24432a712daSGarrett D'Amore.Xr man 1 , 24532a712daSGarrett D'Amore.Xr mandoc 1 , 24632a712daSGarrett D'Amore.Xr nroff 1 , 24732a712daSGarrett D'Amore.Xr troff 1 , 24832a712daSGarrett D'Amore.Xr tbl 1 , 24932a712daSGarrett D'Amore.Xr whatis 1 , 25032a712daSGarrett D'Amore.Xr mdoc 5 , 25132a712daSGarrett D'Amore.Rs 25232a712daSGarrett D'Amore.%A Dale Dougherty and Tim O'Reilly 25332a712daSGarrett D'Amore.%B Unix Text Processing 25432a712daSGarrett D'Amore.Re 255