1*676ac96eSMarcel Telka.\" Copyright 2015 Nexenta Systems, Inc. All rights reserved. 2ffb8ebfaSGarrett D'Amore.\" Copyright 2014 Garrett D'Amore <garrett@damore.org> 3c10c16deSRichard Lowe.\" Copyright (c) 1995, Sun Microsystems, Inc. 4c10c16deSRichard 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. 5c10c16deSRichard 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. 6c10c16deSRichard 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] 7*676ac96eSMarcel Telka.Dd "Feb 18, 2015" 832a712daSGarrett D'Amore.Dt MAN 5 932a712daSGarrett D'Amore.Os 1032a712daSGarrett D'Amore.Sh NAME 1132a712daSGarrett D'Amore.Nm man 1232a712daSGarrett D'Amore.Nd macros to format Reference Manual pages 1332a712daSGarrett D'Amore.Sh SYNOPSIS 1432a712daSGarrett D'Amore.Nm mandoc 1532a712daSGarrett D'Amore.Fl T Ar man 1632a712daSGarrett D'Amore.Ar 1732a712daSGarrett D'Amore.Nm nroff 1832a712daSGarrett D'Amore.Fl man 1932a712daSGarrett D'Amore.Ar 2032a712daSGarrett D'Amore.Nm troff 2132a712daSGarrett D'Amore.Fl man 2232a712daSGarrett D'Amore.Ar 2332a712daSGarrett D'Amore.Sh DESCRIPTION 24c10c16deSRichard LoweThese macros are used to lay out the reference pages in this manual. Note: if 2532a712daSGarrett D'Amore.Ar file 2632a712daSGarrett D'Amorecontains format input for a preprocessor, the commands shown 27c10c16deSRichard Loweabove must be piped through the appropriate preprocessor. This is handled 2832a712daSGarrett D'Amoreautomatically by the 2932a712daSGarrett D'Amore.Xr man 1 3032a712daSGarrett D'Amorecommand. See the 3132a712daSGarrett D'Amore.Sx Conventions 3232a712daSGarrett D'Amoresection. 3332a712daSGarrett D'Amore.Lp 3432a712daSGarrett D'AmoreAny text argument 3532a712daSGarrett D'Amore.Ar t 3632a712daSGarrett D'Amoremay be zero to six words. Quotes may be used to 3732a712daSGarrett D'Amoreinclude SPACE characters in a 3832a712daSGarrett D'Amore.Qq word . 3932a712daSGarrett D'AmoreIf 4032a712daSGarrett D'Amore.Ar text 4132a712daSGarrett D'Amoreis empty, the special 42c10c16deSRichard Lowetreatment is applied to the next input line with text to be printed. In this 4332a712daSGarrett D'Amoreway 4432a712daSGarrett D'Amore.Nm \&.I 4532a712daSGarrett D'Amoremay be used to italicize a whole line, or 4632a712daSGarrett D'Amore.Nm \&.SB 4732a712daSGarrett D'Amoremay be used to make small bold letters. 4832a712daSGarrett D'Amore.Lp 49c10c16deSRichard LoweA prevailing indent distance is remembered between successive indented 50c10c16deSRichard Loweparagraphs, and is reset to default value upon reaching a non-indented 5132a712daSGarrett D'Amoreparagraph. Default units for indents 5232a712daSGarrett D'Amore.Nm i 5332a712daSGarrett D'Amoreare ens. 5432a712daSGarrett D'Amore.Lp 55c10c16deSRichard LoweType font and size are reset to default values before each paragraph, and after 56c10c16deSRichard Loweprocessing font and size setting macros. 5732a712daSGarrett D'Amore.Pp 5832a712daSGarrett D'AmoreThese strings are predefined by 5932a712daSGarrett D'Amore.Nm -man : 6032a712daSGarrett D'Amore.Bl -tag -width Ds 6132a712daSGarrett D'Amore.It Nm \e*R 6232a712daSGarrett D'Amore.Sq \(rg , 6332a712daSGarrett D'Amore.Sq (Reg) 6432a712daSGarrett D'Amorein 6532a712daSGarrett D'Amore.Nm nroff . 6632a712daSGarrett D'Amore.It Nm \e*S 67c10c16deSRichard LoweChange to default type size. 6832a712daSGarrett D'Amore.El 6932a712daSGarrett D'Amore.Sh "Requests" 70c10c16deSRichard Lowe* n.t.l. = next text line; p.i. = prevailing indent 7132a712daSGarrett D'Amore.Bl -column ".TH n s d f m" "Cause " "t=n.t.l.*" "Explanation " -offset Ds 7232a712daSGarrett D'Amore.It Sy Request Sy Cause Sy "If No" Sy Explanation 7332a712daSGarrett D'Amore.It "" Sy Break Sy "Argument" "" 7432a712daSGarrett D'Amore.It Nm \&.B Ar "t" no Ar t Ns =n.t.l.* Text is in bold font. 7532a712daSGarrett D'Amore.It Nm \&.BI Ar t no Ar t Ns =n.t.l. Join words, alternating bold and italic. 7632a712daSGarrett D'Amore.It Nm \&.BR Ar t no Ar t Ns =n.t.l. Join words, alternating bold and roman. 7732a712daSGarrett D'Amore.It Nm \&.DT no Li \&.5i 1i... Restore default tabs. 7832a712daSGarrett D'Amore.It Nm \&.HP Ar i yes Ar i Ns =p.i.* "Begin paragraph with hanging indent. Set prevailing indent to" Ar i . 7932a712daSGarrett D'Amore.It Nm \&.I Ar t no Ar t Ns =n.t.l. Text is italic. 8032a712daSGarrett D'Amore.It Nm \&.IB Ar t no Ar t Ns =n.t.l. Join words, altenrating italic and bold. 8132a712daSGarrett D'Amore.It Nm \&.IP Ar x Ar i yes Ar x Ns ="" Same as 8232a712daSGarrett D'Amore.Nm \&.TP 8332a712daSGarrett D'Amorewith tag 8432a712daSGarrett D'Amore.Ar x . 8532a712daSGarrett D'Amore.It Nm \&.IR Ar t no Ar t Ns =n.t.l. Join words, alternating italic and roman. 8632a712daSGarrett D'Amore.It Nm \&.IX Ar t no - Index macro, not used (obsolete). 8732a712daSGarrett D'Amore.It Nm \&.LP yes - Begin left-aligned paragraph. Set prevailing indent to .5i. 8832a712daSGarrett D'Amore.It Nm \&.P yes - Same as 8932a712daSGarrett D'Amore.Nm \&.LP . 9032a712daSGarrett D'Amore.It Nm \&.PD Ar d no Ar d Ns =.4v Set vertical distance between paragraphs. 9132a712daSGarrett D'Amore.It Nm \&.PP yes - Same as 9232a712daSGarrett D'Amore.Nm \&.LP . 9332a712daSGarrett D'Amore.It Nm \&.RE yes - End of relative indent. Restores prevailing indent. 9432a712daSGarrett D'Amore.It Nm \&.RB Ar t no Ar t Ns =n.t.l. Join words, alternating roman and bold. 9532a712daSGarrett D'Amore.It Nm \&.RI Ar t no Ar t Ns =n.t.l. Join words, alternating roman and italic. 9632a712daSGarrett D'Amore.It Nm \&.RS Ar i yes Ar i Ns =p.i. Start relative indent, increase indent by Ar i . 9732a712daSGarrett D'AmoreSets prevailing indent to .5i for nested indents. 9832a712daSGarrett D'Amore.It Nm \&.SB Ar t no - Reduce size of text by 1 point, make text bold. 9932a712daSGarrett D'Amore.It Nm \&.SH Ar t yes - Section Heading. 10032a712daSGarrett D'Amore.It Nm \&.SM Ar t no Ar t Ns =n.t.l. Reduce size of text by 1 point. 10132a712daSGarrett D'Amore.It Nm \&.SS Ar t yes Ar t Ns =n.t.l. Section Subheading. 10232a712daSGarrett 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. 10332a712daSGarrett 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 10432a712daSGarrett D'Amore.Ar i . 10532a712daSGarrett D'Amore.It Nm \&.TX Ar t p no - Resolve the title abbreviation Ar t ; No join to punctuation mark (or text) Ar p . 10632a712daSGarrett D'Amore.El 10732a712daSGarrett D'Amore.Ss "Conventions" 10832a712daSGarrett D'AmoreWhen formatting a manual page, 10932a712daSGarrett D'Amore.Nm 11032a712daSGarrett D'Amoreexamines the first line to determine 111c10c16deSRichard Lowewhether it requires special processing. For example a first line consisting of: 11232a712daSGarrett D'Amore.Lp 11332a712daSGarrett D'Amore.Dl \&'\e" t 11432a712daSGarrett D'Amore.Lp 11532a712daSGarrett D'Amoreindicates that the manual page must be run through the 11632a712daSGarrett D'Amore.Xr tbl 1 117c10c16deSRichard Lowepreprocessor. 11832a712daSGarrett D'Amore.Lp 119c10c16deSRichard LoweA typical manual page for a command or function is laid out as follows: 12032a712daSGarrett D'Amore.Bl -tag -width ".SH RETURN VALUES" 12132a712daSGarrett D'Amore. 12232a712daSGarrett D'Amore.It Nm \&.TH Ar title Op "1-9" 12332a712daSGarrett D'Amore. 124c10c16deSRichard LoweThe name of the command or function, which serves as the title of the manual 125c10c16deSRichard Lowepage. This is followed by the number of the section in which it appears. 12632a712daSGarrett D'Amore. 127*676ac96eSMarcel Telka.It Nm \&.SH NAME 12832a712daSGarrett D'Amore. 129c10c16deSRichard LoweThe name, or list of names, by which the command is called, followed by a dash 130c10c16deSRichard Loweand then a one-line summary of the action performed. All in roman font, this 13132a712daSGarrett D'Amoresection contains no 13232a712daSGarrett D'Amore.Xr troff 1 13332a712daSGarrett D'Amorecommands or escapes, and no macro requests. 13432a712daSGarrett D'AmoreIt is used to generate the database used by the 13532a712daSGarrett D'Amore.Xr whatis 1 13632a712daSGarrett D'Amorecommand. 13732a712daSGarrett D'Amore. 138*676ac96eSMarcel Telka.It Nm \&.SH SYNOPSIS 13932a712daSGarrett D'Amore.Bl -tag -width "Functions:" 14032a712daSGarrett D'Amore.It Sy Commands: 141c10c16deSRichard LoweThe syntax of the command and its arguments, as typed on the command line. 142c10c16deSRichard LoweWhen in boldface, a word must be typed exactly as printed. When in italics, a 143c10c16deSRichard Loweword can be replaced with an argument that you supply. References to bold or 144c10c16deSRichard Loweitalicized items are not capitalized in other sections, even when they begin a 145c10c16deSRichard Lowesentence. 14632a712daSGarrett D'Amore.Lp 147c10c16deSRichard LoweSyntactic symbols appear in roman face: 14832a712daSGarrett D'Amore.Bl -tag -width " " 14932a712daSGarrett D'Amore.It Op " " 150c10c16deSRichard LoweAn argument, when surrounded by brackets is optional. 15132a712daSGarrett D'Amore.It | 152c10c16deSRichard LoweArguments separated by a vertical bar are exclusive. You can supply only one 153c10c16deSRichard Loweitem from such a list. 15432a712daSGarrett D'Amore.It \&.\|.\|. 155c10c16deSRichard LoweArguments followed by an ellipsis can be repeated. When an ellipsis follows a 156c10c16deSRichard Lowebracketed set, the expression within the brackets can be repeated. 15732a712daSGarrett D'Amore.El 15832a712daSGarrett D'Amore.It Sy Functions: 15932a712daSGarrett D'AmoreIf required, the data declaration, or 16032a712daSGarrett D'Amore.Li #include 16132a712daSGarrett D'Amoredirective, is shown first, 162c10c16deSRichard Lowefollowed by the function declaration. Otherwise, the function declaration is 163c10c16deSRichard Loweshown. 16432a712daSGarrett D'Amore.El 16532a712daSGarrett D'Amore. 16632a712daSGarrett D'Amore.It Nm \&.SH DESCRIPTION 16732a712daSGarrett D'Amore. 168c10c16deSRichard LoweA narrative overview of the command or function's external behavior. This 169c10c16deSRichard Loweincludes how it interacts with files or data, and how it handles the standard 170c10c16deSRichard Loweinput, standard output and standard error. Internals and implementation details 171c10c16deSRichard Loweare normally omitted. This section attempts to provide a succinct overview in 172c10c16deSRichard Loweanswer to the question, "what does it do?" 17332a712daSGarrett D'Amore.Lp 174c10c16deSRichard LoweLiteral text from the synopsis appears in constant width, as do literal 175c10c16deSRichard Lowefilenames and references to items that appear elsewhere in the reference 176c10c16deSRichard Lowemanuals. Arguments are italicized. 17732a712daSGarrett D'Amore.Lp 178c10c16deSRichard LoweIf a command interprets either subcommands or an input grammar, its command 17932a712daSGarrett D'Amoreinterface or input grammar is normally described in a 18032a712daSGarrett D'Amore.Nm USAGE 18132a712daSGarrett D'Amoresection, which follows the 18232a712daSGarrett D'Amore.Nm OPTIONS 18332a712daSGarrett D'Amoresection. The 18432a712daSGarrett D'Amore.Nm DESCRIPTION 18532a712daSGarrett D'Amoresection only 186c10c16deSRichard Lowedescribes the behavior of the command itself, not that of subcommands. 18732a712daSGarrett D'Amore. 18832a712daSGarrett D'Amore.It Nm \&.SH OPTIONS 18932a712daSGarrett D'Amore. 190c10c16deSRichard LoweThe list of options along with a description of how each affects the command's 191c10c16deSRichard Loweoperation. 19232a712daSGarrett D'Amore. 19332a712daSGarrett D'Amore.It Nm \&.SH RETURN VALUES 19432a712daSGarrett D'Amore. 195c10c16deSRichard LoweA list of the values the library routine will return to the calling program 196c10c16deSRichard Loweand the conditions that cause these values to be returned. 19732a712daSGarrett D'Amore. 19832a712daSGarrett D'Amore.It Nm \&.SH EXIT STATUS 19932a712daSGarrett D'Amore. 200c10c16deSRichard LoweA list of the values the utility will return to the calling program or shell, 201c10c16deSRichard Loweand the conditions that cause these values to be returned. 20232a712daSGarrett D'Amore. 20332a712daSGarrett D'Amore.It Nm \&.SH FILES 20432a712daSGarrett D'Amore. 205c10c16deSRichard LoweA list of files associated with the command or function. 20632a712daSGarrett D'Amore. 20732a712daSGarrett D'Amore.It Nm \&.SH SEE ALSO 20832a712daSGarrett D'Amore. 209c10c16deSRichard LoweA comma-separated list of related manual pages, followed by references to other 210c10c16deSRichard Lowepublished materials. 21132a712daSGarrett D'Amore. 21232a712daSGarrett D'Amore.It Nm \&.SH DIAGNOSTICS 21332a712daSGarrett D'Amore. 214c10c16deSRichard LoweA list of diagnostic messages and an explanation of each. 21532a712daSGarrett D'Amore. 21632a712daSGarrett D'Amore.It Nm \&.SH BUGS 21732a712daSGarrett D'Amore. 218c10c16deSRichard LoweA description of limitations, known defects, and possible problems associated 219c10c16deSRichard Lowewith the command or function. 22032a712daSGarrett D'Amore.El 22132a712daSGarrett D'Amore.Sh FILES 22232a712daSGarrett D'Amore.Pa /usr/share/man/whatis 22332a712daSGarrett D'Amore.Sh NOTES 22432a712daSGarrett D'AmoreThe 22532a712daSGarrett D'Amore.Nm 22632a712daSGarrett D'Amorepackage should not be used for new documentation. The 22732a712daSGarrett D'Amore.Xr mdoc 5 , 22832a712daSGarrett D'Amorepackage is preferred, as it uses semantic markup rather than physical markup. 22932a712daSGarrett D'Amore.Sh CODE SET INDEPENDENCE 23032a712daSGarrett D'AmoreWhen processed with 23132a712daSGarrett D'Amore.Xr mandoc 1 , 23232a712daSGarrett D'Amorethis package is Code Set Independent. However, when processed with 23332a712daSGarrett D'Amorelegacy tools such as 23432a712daSGarrett D'Amore.Xr nroff 1 23532a712daSGarrett D'Amoreand 23632a712daSGarrett D'Amore.Xr troff 1 , 23732a712daSGarrett D'Amorethe use of multi-byte characters may not be supported. 23832a712daSGarrett D'Amore.Sh INTERFACE STABILITY 239ffb8ebfaSGarrett D'Amore.Sy Obsolete Committed . 24032a712daSGarrett D'AmoreThe 24132a712daSGarrett D'Amore.Xr mdoc 5 24232a712daSGarrett D'Amorepackage should be used instead. 24332a712daSGarrett D'Amore.Sh SEE ALSO 24432a712daSGarrett D'Amore.Xr eqn 1 , 24532a712daSGarrett D'Amore.Xr man 1 , 24632a712daSGarrett D'Amore.Xr mandoc 1 , 24732a712daSGarrett D'Amore.Xr nroff 1 , 24832a712daSGarrett D'Amore.Xr troff 1 , 24932a712daSGarrett D'Amore.Xr tbl 1 , 25032a712daSGarrett D'Amore.Xr whatis 1 , 251*676ac96eSMarcel Telka.Xr mdoc 5 25232a712daSGarrett D'Amore.Rs 25332a712daSGarrett D'Amore.%A Dale Dougherty and Tim O'Reilly 25432a712daSGarrett D'Amore.%B Unix Text Processing 25532a712daSGarrett D'Amore.Re 256