Blame man7/man-pages.7

Packit 7cfc04
.\" (C) Copyright 1992-1999 Rickard E. Faith and David A. Wheeler
Packit 7cfc04
.\" (faith@cs.unc.edu and dwheeler@ida.org)
Packit 7cfc04
.\" and (C) Copyright 2007 Michael Kerrisk <mtk.manpages@gmail.com>
Packit 7cfc04
.\"
Packit 7cfc04
.\" %%%LICENSE_START(VERBATIM)
Packit 7cfc04
.\" Permission is granted to make and distribute verbatim copies of this
Packit 7cfc04
.\" manual provided the copyright notice and this permission notice are
Packit 7cfc04
.\" preserved on all copies.
Packit 7cfc04
.\"
Packit 7cfc04
.\" Permission is granted to copy and distribute modified versions of this
Packit 7cfc04
.\" manual under the conditions for verbatim copying, provided that the
Packit 7cfc04
.\" entire resulting derived work is distributed under the terms of a
Packit 7cfc04
.\" permission notice identical to this one.
Packit 7cfc04
.\"
Packit 7cfc04
.\" Since the Linux kernel and libraries are constantly changing, this
Packit 7cfc04
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
Packit 7cfc04
.\" responsibility for errors or omissions, or for damages resulting from
Packit 7cfc04
.\" the use of the information contained herein.  The author(s) may not
Packit 7cfc04
.\" have taken the same level of care in the production of this manual,
Packit 7cfc04
.\" which is licensed free of charge, as they might when working
Packit 7cfc04
.\" professionally.
Packit 7cfc04
.\"
Packit 7cfc04
.\" Formatted or processed versions of this manual, if unaccompanied by
Packit 7cfc04
.\" the source, must acknowledge the copyright and authors of this work.
Packit 7cfc04
.\" %%%LICENSE_END
Packit 7cfc04
.\"
Packit 7cfc04
.\" 2007-05-30 created by mtk, using text from old man.7 plus
Packit 7cfc04
.\" rewrites and additional text.
Packit 7cfc04
.\"
Packit 7cfc04
.TH MAN-PAGES 7 2018-02-02 "Linux" "Linux Programmer's Manual"
Packit 7cfc04
.SH NAME
Packit 7cfc04
man-pages \- conventions for writing Linux man pages
Packit 7cfc04
.SH SYNOPSIS
Packit 7cfc04
.B man
Packit 7cfc04
.RI [ section ]
Packit 7cfc04
.I title
Packit 7cfc04
.SH DESCRIPTION
Packit 7cfc04
This page describes the conventions that should be employed
Packit 7cfc04
when writing man pages for the Linux \fIman-pages\fP project,
Packit 7cfc04
which documents the user-space API provided by the Linux kernel
Packit 7cfc04
and the GNU C library.
Packit 7cfc04
The project thus provides most of the pages in Section 2,
Packit 7cfc04
many of the pages that appear in Sections 3, 4, and 7,
Packit 7cfc04
and a few of the pages that appear in Sections 1, 5, and 8
Packit 7cfc04
of the man pages on a Linux system.
Packit 7cfc04
The conventions described on this page may also be useful
Packit 7cfc04
for authors writing man pages for other projects.
Packit 7cfc04
.SS Sections of the manual pages
Packit 7cfc04
.PP
Packit 7cfc04
The manual Sections are traditionally defined as follows:
Packit 7cfc04
.TP 10
Packit 7cfc04
.B 1 User commands (Programs)
Packit 7cfc04
Those commands that can be executed by the user from within
Packit 7cfc04
a shell.
Packit 7cfc04
.TP
Packit 7cfc04
.B 2 System calls
Packit 7cfc04
Those functions which wrap operations performed by the kernel.
Packit 7cfc04
.TP
Packit 7cfc04
.B 3 Library calls
Packit 7cfc04
All library functions excluding the system call wrappers
Packit 7cfc04
(Most of the
Packit 7cfc04
.I libc
Packit 7cfc04
functions).
Packit 7cfc04
.TP
Packit 7cfc04
.B 4 Special files (devices)
Packit 7cfc04
Files found in
Packit 7cfc04
.I /dev
Packit 7cfc04
which allow to access to devices through the kernel.
Packit 7cfc04
.TP
Packit 7cfc04
.B 5 File formats and configuration files
Packit 7cfc04
Describes various human-readable file formats and configuration files.
Packit 7cfc04
.TP
Packit 7cfc04
.B 6 Games
Packit 7cfc04
Games and funny little programs available on the system.
Packit 7cfc04
.TP
Packit 7cfc04
.B 7 Overview, conventions, and miscellaneous
Packit 7cfc04
Overviews or descriptions of various topics, conventions and protocols,
Packit 7cfc04
character set standards, the standard filesystem layout, and miscellaneous
Packit 7cfc04
other things.
Packit 7cfc04
.TP
Packit 7cfc04
.B 8 System management commands
Packit 7cfc04
Commands like
Packit 7cfc04
.BR mount (8),
Packit 7cfc04
many of which only root can execute.
Packit 7cfc04
.\" .TP
Packit 7cfc04
.\" .B 9 Kernel routines
Packit 7cfc04
.\" This is an obsolete manual section.
Packit 7cfc04
.\" Once it was thought a good idea to document the Linux kernel here,
Packit 7cfc04
.\" but in fact very little has been documented, and the documentation
Packit 7cfc04
.\" that exists is outdated already.
Packit 7cfc04
.\" There are better sources of
Packit 7cfc04
.\" information for kernel developers.
Packit 7cfc04
.SS Macro package
Packit 7cfc04
New manual pages should be marked up using the
Packit 7cfc04
.B groff an.tmac
Packit 7cfc04
package described in
Packit 7cfc04
.BR man (7).
Packit 7cfc04
This choice is mainly for consistency: the vast majority of
Packit 7cfc04
existing Linux manual pages are marked up using these macros.
Packit 7cfc04
.SS Conventions for source file layout
Packit 7cfc04
Please limit source code line length to no more than about 75 characters
Packit 7cfc04
wherever possible.
Packit 7cfc04
This helps avoid line-wrapping in some mail clients when patches are
Packit 7cfc04
submitted inline.
Packit 7cfc04
.PP
Packit 7cfc04
New sentences should be started on new lines.
Packit 7cfc04
This makes it easier to see the effect of patches,
Packit 7cfc04
which often operate at the level of individual sentences.
Packit 7cfc04
.SS Title line
Packit 7cfc04
The first command in a man page should be a
Packit 7cfc04
.B TH
Packit 7cfc04
command:
Packit 7cfc04
.PP
Packit 7cfc04
.RS
Packit 7cfc04
.B \&.TH
Packit 7cfc04
.I "title section date source manual"
Packit 7cfc04
.RE
Packit 7cfc04
.PP
Packit 7cfc04
where:
Packit 7cfc04
.RS
Packit 7cfc04
.TP 10
Packit 7cfc04
.I title
Packit 7cfc04
The title of the man page, written in all caps (e.g.,
Packit 7cfc04
.IR MAN-PAGES ).
Packit 7cfc04
.TP
Packit 7cfc04
.I section
Packit 7cfc04
The section number in which the man page should be placed (e.g.,
Packit 7cfc04
.IR 7 ).
Packit 7cfc04
.TP
Packit 7cfc04
.I date
Packit 7cfc04
The date of the last nontrivial change that was made to the man page.
Packit 7cfc04
(Within the
Packit 7cfc04
.I man-pages
Packit 7cfc04
project, the necessary updates to these timestamps are handled
Packit 7cfc04
automatically by scripts, so there is no need to manually update
Packit 7cfc04
them as part of a patch.)
Packit 7cfc04
Dates should be written in the form YYYY-MM-DD.
Packit 7cfc04
.TP
Packit 7cfc04
.I source
Packit 7cfc04
The source of the command, function, or system call.
Packit 7cfc04
.IP
Packit 7cfc04
For those few \fIman-pages\fP pages in Sections 1 and 8,
Packit 7cfc04
probably you just want to write
Packit 7cfc04
.IR GNU .
Packit 7cfc04
.IP
Packit 7cfc04
For system calls, just write
Packit 7cfc04
.IR "Linux" .
Packit 7cfc04
(An earlier practice was to write the version number
Packit 7cfc04
of the kernel from which the manual page was being written/checked.
Packit 7cfc04
However, this was never done consistently, and so was
Packit 7cfc04
probably worse than including no version number.
Packit 7cfc04
Henceforth, avoid including a version number.)
Packit 7cfc04
.IP
Packit 7cfc04
For library calls that are part of glibc or one of the
Packit 7cfc04
other common GNU libraries, just use
Packit 7cfc04
.IR "GNU C Library" ", " GNU ,
Packit 7cfc04
or an empty string.
Packit 7cfc04
.IP
Packit 7cfc04
For Section 4 pages, use
Packit 7cfc04
.IR "Linux" .
Packit 7cfc04
.IP
Packit 7cfc04
In cases of doubt, just write
Packit 7cfc04
.IR Linux ", or " GNU .
Packit 7cfc04
.TP
Packit 7cfc04
.I manual
Packit 7cfc04
The title of the manual (e.g., for Section 2 and 3 pages in
Packit 7cfc04
the \fIman-pages\fP package, use
Packit 7cfc04
.IR "Linux Programmer's Manual" ).
Packit 7cfc04
.RE
Packit 7cfc04
.SS Sections within a manual page
Packit 7cfc04
The list below shows conventional or suggested sections.
Packit 7cfc04
Most manual pages should include at least the
Packit 7cfc04
.B highlighted
Packit 7cfc04
sections.
Packit 7cfc04
Arrange a new manual page so that sections
Packit 7cfc04
are placed in the order shown in the list.
Packit 7cfc04
.PP
Packit 7cfc04
.in +4n
Packit 7cfc04
.nf
Packit 7cfc04
\fBNAME\fP
Packit 7cfc04
\fBSYNOPSIS\fP
Packit 7cfc04
CONFIGURATION      [Normally only in Section 4]
Packit 7cfc04
\fBDESCRIPTION\fP
Packit 7cfc04
OPTIONS            [Normally only in Sections 1, 8]
Packit 7cfc04
EXIT STATUS        [Normally only in Sections 1, 8]
Packit 7cfc04
RETURN VALUE       [Normally only in Sections 2, 3]
Packit 7cfc04
.\" May 07: Few current man pages have an ERROR HANDLING section,,,
Packit 7cfc04
.\" ERROR HANDLING,
Packit 7cfc04
ERRORS             [Typically only in Sections 2, 3]
Packit 7cfc04
.\" May 07: Almost no current man pages have a USAGE section,,,
Packit 7cfc04
.\" USAGE,
Packit 7cfc04
.\" DIAGNOSTICS,
Packit 7cfc04
.\" May 07: Almost no current man pages have a SECURITY section,,,
Packit 7cfc04
.\" SECURITY,
Packit 7cfc04
ENVIRONMENT
Packit 7cfc04
FILES
Packit 7cfc04
VERSIONS           [Normally only in Sections 2, 3]
Packit 7cfc04
ATTRIBUTES         [Normally only in Sections 2, 3]
Packit 7cfc04
CONFORMING TO
Packit 7cfc04
NOTES
Packit 7cfc04
BUGS
Packit 7cfc04
EXAMPLE
Packit 7cfc04
.\" AUTHORS sections are discouraged
Packit 7cfc04
.\" AUTHORS             [Discouraged]
Packit 7cfc04
\fBSEE ALSO\fP
Packit 7cfc04
.fi
Packit 7cfc04
.in
Packit 7cfc04
.PP
Packit 7cfc04
.IR "Where a traditional heading would apply" ", " "please use it" ;
Packit 7cfc04
this kind of consistency can make the information easier to understand.
Packit 7cfc04
If you must, you can create your own
Packit 7cfc04
headings if they make things easier to understand (this can
Packit 7cfc04
be especially useful for pages in Sections 4 and 5).
Packit 7cfc04
However, before doing this, consider whether you could use the
Packit 7cfc04
traditional headings, with some subsections (\fI.SS\fP) within
Packit 7cfc04
those sections.
Packit 7cfc04
.PP
Packit 7cfc04
The following list elaborates on the contents of each of
Packit 7cfc04
the above sections.
Packit 7cfc04
.TP 14
Packit 7cfc04
.B NAME
Packit 7cfc04
The name of this manual page.
Packit 7cfc04
.IP
Packit 7cfc04
See
Packit 7cfc04
.BR man (7)
Packit 7cfc04
for important details of the line(s) that should follow the
Packit 7cfc04
\fB.SH NAME\fP command.
Packit 7cfc04
All words in this line (including the word immediately
Packit 7cfc04
following the "\\\-") should be in lowercase,
Packit 7cfc04
except where English or technical terminological convention
Packit 7cfc04
dictates otherwise.
Packit 7cfc04
.TP
Packit 7cfc04
.B SYNOPSIS
Packit 7cfc04
A brief summary of the command or function's interface.
Packit 7cfc04
.IP
Packit 7cfc04
For commands, this shows the syntax of the command and its arguments
Packit 7cfc04
(including options);
Packit 7cfc04
boldface is used for as-is text and italics are used to
Packit 7cfc04
indicate replaceable arguments.
Packit 7cfc04
Brackets ([]) surround optional arguments, vertical bars (|)
Packit 7cfc04
separate choices, and ellipses (\&...) can be repeated.
Packit 7cfc04
For functions, it shows any required data declarations or
Packit 7cfc04
.B #include
Packit 7cfc04
directives, followed by the function declaration.
Packit 7cfc04
.IP
Packit 7cfc04
Where a feature test macro must be defined in order to obtain
Packit 7cfc04
the declaration of a function (or a variable) from a header file,
Packit 7cfc04
then the SYNOPSIS should indicate this, as described in
Packit 7cfc04
.BR feature_test_macros (7).
Packit 7cfc04
.\" FIXME . Say something here about compiler options
Packit 7cfc04
.TP
Packit 7cfc04
.B CONFIGURATION
Packit 7cfc04
Configuration details for a device.
Packit 7cfc04
.IP
Packit 7cfc04
This section normally appears only in Section 4 pages.
Packit 7cfc04
.TP
Packit 7cfc04
.B DESCRIPTION
Packit 7cfc04
An explanation of what the program, function, or format does.
Packit 7cfc04
.IP
Packit 7cfc04
Discuss how it interacts with files and standard input, and what it
Packit 7cfc04
produces on standard output or standard error.
Packit 7cfc04
Omit internals and implementation details unless they're critical for
Packit 7cfc04
understanding the interface.
Packit 7cfc04
Describe the usual case;
Packit 7cfc04
for information on command-line options of a program use the
Packit 7cfc04
.B OPTIONS
Packit 7cfc04
section.
Packit 7cfc04
.\" If there is some kind of input grammar or complex set of subcommands,
Packit 7cfc04
.\" consider describing them in a separate
Packit 7cfc04
.\" .B USAGE
Packit 7cfc04
.\" section (and just place an overview in the
Packit 7cfc04
.\" .B DESCRIPTION
Packit 7cfc04
.\" section).
Packit 7cfc04
.IP
Packit 7cfc04
When describing new behavior or new flags for
Packit 7cfc04
a system call or library function,
Packit 7cfc04
be careful to note the kernel or C library version
Packit 7cfc04
that introduced the change.
Packit 7cfc04
The preferred method of noting this information for flags is as part of a
Packit 7cfc04
.B .TP
Packit 7cfc04
list, in the following form (here, for a new system call flag):
Packit 7cfc04
.RS 22
Packit 7cfc04
.TP
Packit 7cfc04
.BR XYZ_FLAG " (since Linux 3.7)"
Packit 7cfc04
Description of flag...
Packit 7cfc04
.RE
Packit 7cfc04
.IP
Packit 7cfc04
Including version information is especially useful to users
Packit 7cfc04
who are constrained to using older kernel or C library versions
Packit 7cfc04
(which is typical in embedded systems, for example).
Packit 7cfc04
.TP
Packit 7cfc04
.B OPTIONS
Packit 7cfc04
A description of the command-line options accepted by a
Packit 7cfc04
program and how they change its behavior.
Packit 7cfc04
.IP
Packit 7cfc04
This section should appear only for Section 1 and 8 manual pages.
Packit 7cfc04
.\" .TP
Packit 7cfc04
.\" .B USAGE
Packit 7cfc04
.\" describes the grammar of any sublanguage this implements.
Packit 7cfc04
.TP
Packit 7cfc04
.B EXIT STATUS
Packit 7cfc04
A list of the possible exit status values of a program and
Packit 7cfc04
the conditions that cause these values to be returned.
Packit 7cfc04
.IP
Packit 7cfc04
This section should appear only for Section 1 and 8 manual pages.
Packit 7cfc04
.TP
Packit 7cfc04
.B RETURN VALUE
Packit 7cfc04
For Section 2 and 3 pages, this section gives a
Packit 7cfc04
list of the values the library routine will return to the caller
Packit 7cfc04
and the conditions that cause these values to be returned.
Packit 7cfc04
.TP
Packit 7cfc04
.B ERRORS
Packit 7cfc04
For Section 2 and 3 manual pages, this is a list of the
Packit 7cfc04
values that may be placed in
Packit 7cfc04
.I errno
Packit 7cfc04
in the event of an error, along with information about the cause
Packit 7cfc04
of the errors.
Packit 7cfc04
.IP
Packit 7cfc04
Where several different conditions produce the same error,
Packit 7cfc04
the preferred approach is to create separate list entries
Packit 7cfc04
(with duplicate error names) for each of the conditions.
Packit 7cfc04
This makes the separate conditions clear, may make the list easier to read,
Packit 7cfc04
and allows metainformation
Packit 7cfc04
(e.g., kernel version number where the condition first became applicable)
Packit 7cfc04
to be more easily marked for each condition.
Packit 7cfc04
.IP
Packit 7cfc04
.IR "The error list should be in alphabetical order" .
Packit 7cfc04
.TP
Packit 7cfc04
.B ENVIRONMENT
Packit 7cfc04
A list of all environment variables that affect the program or function
Packit 7cfc04
and how they affect it.
Packit 7cfc04
.TP
Packit 7cfc04
.B FILES
Packit 7cfc04
A list of the files the program or function uses, such as
Packit 7cfc04
configuration files, startup files,
Packit 7cfc04
and files the program directly operates on.
Packit 7cfc04
.IP
Packit 7cfc04
Give the full pathname of these files, and use the installation
Packit 7cfc04
process to modify the directory part to match user preferences.
Packit 7cfc04
For many programs, the default installation location is in
Packit 7cfc04
.IR /usr/local ,
Packit 7cfc04
so your base manual page should use
Packit 7cfc04
.I /usr/local
Packit 7cfc04
as the base.
Packit 7cfc04
.\" May 07: Almost no current man pages have a DIAGNOSTICS section;
Packit 7cfc04
.\"         "RETURN VALUE" or "EXIT STATUS" is preferred.
Packit 7cfc04
.\" .TP
Packit 7cfc04
.\" .B DIAGNOSTICS
Packit 7cfc04
.\" gives an overview of the most common error messages and how to
Packit 7cfc04
.\" cope with them.
Packit 7cfc04
.\" You don't need to explain system error messages
Packit 7cfc04
.\" or fatal signals that can appear during execution of any program
Packit 7cfc04
.\" unless they're special in some way to the program.
Packit 7cfc04
.\"
Packit 7cfc04
.\" May 07: Almost no current man pages have a SECURITY section.
Packit 7cfc04
.\".TP
Packit 7cfc04
.\".B SECURITY
Packit 7cfc04
.\"discusses security issues and implications.
Packit 7cfc04
.\"Warn about configurations or environments that should be avoided,
Packit 7cfc04
.\"commands that may have security implications, and so on, especially
Packit 7cfc04
.\"if they aren't obvious.
Packit 7cfc04
.\"Discussing security in a separate section isn't necessary;
Packit 7cfc04
.\"if it's easier to understand, place security information in the
Packit 7cfc04
.\"other sections (such as the
Packit 7cfc04
.\" .B DESCRIPTION
Packit 7cfc04
.\" or
Packit 7cfc04
.\" .B USAGE
Packit 7cfc04
.\" section).
Packit 7cfc04
.\" However, please include security information somewhere!
Packit 7cfc04
.TP
Packit 7cfc04
.B ATTRIBUTES
Packit 7cfc04
A summary of various attributes of the function(s) documented on this page.
Packit 7cfc04
See
Packit 7cfc04
.BR attributes (7)
Packit 7cfc04
for further details.
Packit 7cfc04
.TP
Packit 7cfc04
.B VERSIONS
Packit 7cfc04
A brief summary of the Linux kernel or glibc versions where a
Packit 7cfc04
system call or library function appeared,
Packit 7cfc04
or changed significantly in its operation.
Packit 7cfc04
.IP
Packit 7cfc04
As a general rule, every new interface should
Packit 7cfc04
include a VERSIONS section in its manual page.
Packit 7cfc04
Unfortunately,
Packit 7cfc04
many existing manual pages don't include this information
Packit 7cfc04
(since there was no policy to do so when they were written).
Packit 7cfc04
Patches to remedy this are welcome,
Packit 7cfc04
but, from the perspective of programmers writing new code,
Packit 7cfc04
this information probably matters only in the case of kernel
Packit 7cfc04
interfaces that have been added in Linux 2.4 or later
Packit 7cfc04
(i.e., changes since kernel 2.2),
Packit 7cfc04
and library functions that have been added to glibc since version 2.1
Packit 7cfc04
(i.e., changes since glibc 2.0).
Packit 7cfc04
.IP
Packit 7cfc04
The
Packit 7cfc04
.BR syscalls (2)
Packit 7cfc04
manual page also provides information about kernel versions
Packit 7cfc04
in which various system calls first appeared.
Packit 7cfc04
.TP
Packit 7cfc04
.B CONFORMING TO
Packit 7cfc04
A description of any standards or conventions that relate to the function
Packit 7cfc04
or command described by the manual page.
Packit 7cfc04
.IP
Packit 7cfc04
The preferred terms to use for the various standards are listed as
Packit 7cfc04
headings in
Packit 7cfc04
.BR standards (7).
Packit 7cfc04
.IP
Packit 7cfc04
For a page in Section 2 or 3,
Packit 7cfc04
this section should note the POSIX.1
Packit 7cfc04
version(s) that the call conforms to,
Packit 7cfc04
and also whether the call is specified in C99.
Packit 7cfc04
(Don't worry too much about other standards like SUS, SUSv2, and XPG,
Packit 7cfc04
or the SVr4 and 4.xBSD implementation standards,
Packit 7cfc04
unless the call was specified in those standards,
Packit 7cfc04
but isn't in the current version of POSIX.1.)
Packit 7cfc04
.IP
Packit 7cfc04
If the call is not governed by any standards but commonly
Packit 7cfc04
exists on other systems, note them.
Packit 7cfc04
If the call is Linux-specific, note this.
Packit 7cfc04
.IP
Packit 7cfc04
If this section consists of just a list of standards
Packit 7cfc04
(which it commonly does),
Packit 7cfc04
terminate the list with a period (\(aq.\(aq).
Packit 7cfc04
.TP
Packit 7cfc04
.B NOTES
Packit 7cfc04
Miscellaneous notes.
Packit 7cfc04
.IP
Packit 7cfc04
For Section 2 and 3 man pages you may find it useful to include
Packit 7cfc04
subsections (\fBSS\fP) named \fILinux Notes\fP and \fIGlibc Notes\fP.
Packit 7cfc04
.IP
Packit 7cfc04
In Section 2, use the heading
Packit 7cfc04
.I "C library/kernel differences"
Packit 7cfc04
to mark off notes that describe the differences (if any) between
Packit 7cfc04
the C library wrapper function for a system call and
Packit 7cfc04
the raw system call interface provided by the kernel.
Packit 7cfc04
.TP
Packit 7cfc04
.B BUGS
Packit 7cfc04
A list of limitations, known defects or inconveniences,
Packit 7cfc04
and other questionable activities.
Packit 7cfc04
.TP
Packit 7cfc04
.B EXAMPLE
Packit 7cfc04
One or more examples demonstrating how this function, file or
Packit 7cfc04
command is used.
Packit 7cfc04
.IP
Packit 7cfc04
For details on writing example programs,
Packit 7cfc04
see \fIExample Programs\fP below.
Packit 7cfc04
.TP
Packit 7cfc04
.B AUTHORS
Packit 7cfc04
A list of authors of the documentation or program.
Packit 7cfc04
.IP
Packit 7cfc04
\fBUse of an AUTHORS section is strongly discouraged\fP.
Packit 7cfc04
Generally, it is better not to clutter every page with a list
Packit 7cfc04
of (over time potentially numerous) authors;
Packit 7cfc04
if you write or significantly amend a page,
Packit 7cfc04
add a copyright notice as a comment in the source file.
Packit 7cfc04
If you are the author of a device driver and want to include
Packit 7cfc04
an address for reporting bugs, place this under the BUGS section.
Packit 7cfc04
.TP
Packit 7cfc04
.B SEE ALSO
Packit 7cfc04
A comma-separated list of related man pages, possibly followed by
Packit 7cfc04
other related pages or documents.
Packit 7cfc04
.IP
Packit 7cfc04
The list should be ordered by section number and
Packit 7cfc04
then alphabetically by name.
Packit 7cfc04
Do not terminate this list with a period.
Packit 7cfc04
.IP
Packit 7cfc04
Where the SEE ALSO list contains many long manual page names,
Packit 7cfc04
to improve the visual result of the output, it may be useful to employ the
Packit 7cfc04
.I .ad l
Packit 7cfc04
(don't right justify)
Packit 7cfc04
and
Packit 7cfc04
.I .nh
Packit 7cfc04
(don't hyphenate)
Packit 7cfc04
directives.
Packit 7cfc04
Hyphenation of individual page names can be prevented
Packit 7cfc04
by preceding words with the string "\\%".
Packit 7cfc04
.IP
Packit 7cfc04
Given the distributed, autonomous nature of FOSS projects
Packit 7cfc04
and their documentation, it is sometimes necessary\(emand in many cases
Packit 7cfc04
desirable\(emthat the SEE ALSO section includes references to
Packit 7cfc04
manual pages provided by other projects.
Packit 7cfc04
.SH STYLE GUIDE
Packit 7cfc04
The following subsections describe the preferred style for the
Packit 7cfc04
.IR man-pages
Packit 7cfc04
project.
Packit 7cfc04
For details not covered below, the Chicago Manual of Style
Packit 7cfc04
is usually a good source;
Packit 7cfc04
try also grepping for preexisting usage in the project source tree.
Packit 7cfc04
.SS Use of gender-neutral language
Packit 7cfc04
As far as possible, use gender-neutral language in the text of man
Packit 7cfc04
pages.
Packit 7cfc04
Use of "they" ("them", "themself", "their") as a gender-neutral singular
Packit 7cfc04
pronoun is acceptable.
Packit 7cfc04
.\"
Packit 7cfc04
.SS Formatting conventions for manual pages describing commands
Packit 7cfc04
.PP
Packit 7cfc04
For manual pages that describe a command (typically in Sections 1 and 8),
Packit 7cfc04
the arguments are always specified using italics,
Packit 7cfc04
.IR "even in the SYNOPSIS section" .
Packit 7cfc04
.PP
Packit 7cfc04
The name of the command, and its options, should
Packit 7cfc04
always be formatted in bold.
Packit 7cfc04
.\"
Packit 7cfc04
.SS Formatting conventions for manual pages describing functions
Packit 7cfc04
For manual pages that describe functions (typically in Sections 2 and 3),
Packit 7cfc04
the arguments are always specified using italics,
Packit 7cfc04
.IR "even in the SYNOPSIS section" ,
Packit 7cfc04
where the rest of the function is specified in bold:
Packit 7cfc04
.PP
Packit 7cfc04
.BI "    int myfunction(int " argc ", char **" argv );
Packit 7cfc04
.PP
Packit 7cfc04
Variable names should, like argument names, be specified in italics.
Packit 7cfc04
.PP
Packit 7cfc04
Any reference to the subject of the current manual page
Packit 7cfc04
should be written with the name in bold followed by
Packit 7cfc04
a pair of parentheses in Roman (normal) font.
Packit 7cfc04
For example, in the
Packit 7cfc04
.BR fcntl (2)
Packit 7cfc04
man page, references to the subject of the page would be written as:
Packit 7cfc04
.BR fcntl ().
Packit 7cfc04
The preferred way to write this in the source file is:
Packit 7cfc04
.PP
Packit 7cfc04
.EX
Packit 7cfc04
    .BR fcntl ()
Packit 7cfc04
.EE
Packit 7cfc04
.PP
Packit 7cfc04
(Using this format, rather than the use of "\\fB...\\fP()"
Packit 7cfc04
makes it easier to write tools that parse man page source files.)
Packit 7cfc04
.\"
Packit 7cfc04
.SS Formatting conventions (general)
Packit 7cfc04
Filenames (whether pathnames, or references to header files)
Packit 7cfc04
are always in italics (e.g.,
Packit 7cfc04
.IR <stdio.h> ),
Packit 7cfc04
except in the SYNOPSIS section, where included files are in bold (e.g.,
Packit 7cfc04
.BR "#include <stdio.h>" ).
Packit 7cfc04
When referring to a standard header file include,
Packit 7cfc04
specify the header file surrounded by angle brackets,
Packit 7cfc04
in the usual C way (e.g.,
Packit 7cfc04
.IR <stdio.h> ).
Packit 7cfc04
.PP
Packit 7cfc04
Special macros, which are usually in uppercase, are in bold (e.g.,
Packit 7cfc04
.BR MAXINT ).
Packit 7cfc04
Exception: don't boldface NULL.
Packit 7cfc04
.PP
Packit 7cfc04
When enumerating a list of error codes, the codes are in bold (this list
Packit 7cfc04
usually uses the
Packit 7cfc04
.B \&.TP
Packit 7cfc04
macro).
Packit 7cfc04
.PP
Packit 7cfc04
Complete commands should, if long,
Packit 7cfc04
be written as an indented line on their own,
Packit 7cfc04
with a blank line before and after the command, for example
Packit 7cfc04
.PP
Packit 7cfc04
.in +4n
Packit 7cfc04
.EX
Packit 7cfc04
man 7 man-pages
Packit 7cfc04
.EE
Packit 7cfc04
.in
Packit 7cfc04
.PP
Packit 7cfc04
If the command is short, then it can be included inline in the text,
Packit 7cfc04
in italic format, for example,
Packit 7cfc04
.IR "man 7 man-pages" .
Packit 7cfc04
In this case, it may be worth using nonbreaking spaces
Packit 7cfc04
("\e\ ") at suitable places in the command.
Packit 7cfc04
Command options should be written in italics (e.g.,
Packit 7cfc04
.IR \-l ).
Packit 7cfc04
.PP
Packit 7cfc04
Expressions, if not written on a separate indented line, should
Packit 7cfc04
be specified in italics.
Packit 7cfc04
Again, the use of nonbreaking spaces may be appropriate
Packit 7cfc04
if the expression is inlined with normal text.
Packit 7cfc04
.PP
Packit 7cfc04
When showing example shell sessions, user input should be formatted in bold, for example
Packit 7cfc04
.PP
Packit 7cfc04
.in +4n
Packit 7cfc04
.EX
Packit 7cfc04
$ \fBdate\fP
Packit 7cfc04
Thu Jul  7 13:01:27 CEST 2016
Packit 7cfc04
.EE
Packit 7cfc04
.in
Packit 7cfc04
.PP
Packit 7cfc04
.PP
Packit 7cfc04
Any reference to another man page
Packit 7cfc04
should be written with the name in bold,
Packit 7cfc04
.I always
Packit 7cfc04
followed by the section number,
Packit 7cfc04
formatted in Roman (normal) font, without any
Packit 7cfc04
separating spaces (e.g.,
Packit 7cfc04
.BR intro (2)).
Packit 7cfc04
The preferred way to write this in the source file is:
Packit 7cfc04
.PP
Packit 7cfc04
.EX
Packit 7cfc04
    .BR intro (2)
Packit 7cfc04
.EE
Packit 7cfc04
.PP
Packit 7cfc04
(Including the section number in cross references lets tools like
Packit 7cfc04
.BR man2html (1)
Packit 7cfc04
create properly hyperlinked pages.)
Packit 7cfc04
.PP
Packit 7cfc04
Control characters should be written in bold face,
Packit 7cfc04
with no quotes; for example,
Packit 7cfc04
.BR ^X .
Packit 7cfc04
.SS Spelling
Packit 7cfc04
Starting with release 2.59,
Packit 7cfc04
.I man-pages
Packit 7cfc04
follows American spelling conventions
Packit 7cfc04
(previously, there was a random mix of British and American spellings);
Packit 7cfc04
please write all new pages and patches according to these conventions.
Packit 7cfc04
.PP
Packit 7cfc04
Aside from the well-known spelling differences,
Packit 7cfc04
there are a few other subtleties to watch for:
Packit 7cfc04
.IP * 3
Packit 7cfc04
American English tends to use the forms "backward", "upward", "toward",
Packit 7cfc04
and so on
Packit 7cfc04
rather than the British forms "backwards", "upwards", "towards", and so on.
Packit 7cfc04
.SS BSD version numbers
Packit 7cfc04
The classical scheme for writing BSD version numbers is
Packit 7cfc04
.IR x.yBSD ,
Packit 7cfc04
where
Packit 7cfc04
.I x.y
Packit 7cfc04
is the version number (e.g., 4.2BSD).
Packit 7cfc04
Avoid forms such as
Packit 7cfc04
.IR "BSD 4.3" .
Packit 7cfc04
.SS Capitalization
Packit 7cfc04
In subsection ("SS") headings,
Packit 7cfc04
capitalize the first word in the heading, but otherwise use lowercase,
Packit 7cfc04
except where English usage (e.g., proper nouns) or programming
Packit 7cfc04
language requirements (e.g., identifier names) dictate otherwise.
Packit 7cfc04
For example:
Packit 7cfc04
.PP
Packit 7cfc04
.EX
Packit 7cfc04
    .SS Unicode under Linux
Packit 7cfc04
.EE
Packit 7cfc04
.\"
Packit 7cfc04
.SS Indentation of structure definitions, shell session logs, and so on
Packit 7cfc04
When structure definitions, shell session logs, and so on are included
Packit 7cfc04
in running text, indent them by 4 spaces (i.e., a block enclosed by
Packit 7cfc04
.I ".in\ +4n"
Packit 7cfc04
and
Packit 7cfc04
.IR ".in" ),
Packit 7cfc04
format them using the
Packit 7cfc04
.I .EX
Packit 7cfc04
and
Packit 7cfc04
.I EE
Packit 7cfc04
macros, and surround them with suitable paragraph markers (either
Packit 7cfc04
.I .PP
Packit 7cfc04
or
Packit 7cfc04
.IR .IP ).
Packit 7cfc04
For example:
Packit 7cfc04
.PP
Packit 7cfc04
.in +4n
Packit 7cfc04
.EX
Packit 7cfc04
    .PP
Packit 7cfc04
    .in +4n
Packit 7cfc04
    .EX
Packit 7cfc04
    int
Packit 7cfc04
    main(int argc, char *argv[])
Packit 7cfc04
    {
Packit 7cfc04
        return 0;
Packit 7cfc04
    }
Packit 7cfc04
    .EE
Packit 7cfc04
    .in
Packit 7cfc04
    .PP
Packit 7cfc04
.EE
Packit 7cfc04
.in
Packit 7cfc04
.SS Preferred terms
Packit 7cfc04
The following table lists some preferred terms to use in man pages,
Packit 7cfc04
mainly to ensure consistency across pages.
Packit 7cfc04
.TS
Packit 7cfc04
l l l
Packit 7cfc04
---
Packit 7cfc04
l l l.
Packit 7cfc04
Term	Avoid using	Notes
Packit 7cfc04
Packit 7cfc04
bit mask	bitmask
Packit 7cfc04
built-in	builtin
Packit 7cfc04
Epoch	epoch	T{
Packit 7cfc04
For the UNIX Epoch (00:00:00, 1 Jan 1970 UTC)
Packit 7cfc04
T}
Packit 7cfc04
filename	file name
Packit 7cfc04
filesystem	file system
Packit 7cfc04
hostname	host name
Packit 7cfc04
inode	i-node
Packit 7cfc04
lowercase	lower case, lower-case
Packit 7cfc04
nonzero	non-zero
Packit 7cfc04
pathname	path name
Packit 7cfc04
pseudoterminal	pseudo-terminal
Packit 7cfc04
privileged port	T{
Packit 7cfc04
reserved port,
Packit 7cfc04
system port
Packit 7cfc04
T}
Packit 7cfc04
real-time	T{
Packit 7cfc04
realtime,
Packit 7cfc04
real time
Packit 7cfc04
T}
Packit 7cfc04
run time	runtime
Packit 7cfc04
saved set-group-ID	T{
Packit 7cfc04
saved group ID,
Packit 7cfc04
saved set-GID
Packit 7cfc04
T}
Packit 7cfc04
saved set-user-ID	T{
Packit 7cfc04
saved user ID,
Packit 7cfc04
saved set-UID
Packit 7cfc04
T}
Packit 7cfc04
set-group-ID	set-GID, setgid
Packit 7cfc04
set-user-ID	set-UID, setuid
Packit 7cfc04
superuser	T{
Packit 7cfc04
super user,
Packit 7cfc04
super-user
Packit 7cfc04
T}
Packit 7cfc04
superblock	T{
Packit 7cfc04
super block,
Packit 7cfc04
super-block
Packit 7cfc04
T}
Packit 7cfc04
timestamp	time stamp
Packit 7cfc04
timezone	time zone
Packit 7cfc04
uppercase	upper case, upper-case
Packit 7cfc04
usable	useable
Packit 7cfc04
user space	userspace
Packit 7cfc04
username	user name
Packit 7cfc04
x86-64	x86_64	T{
Packit 7cfc04
Except if referring to result of "uname\ \-m" or similar
Packit 7cfc04
T}
Packit 7cfc04
zeros	zeroes
Packit 7cfc04
.TE
Packit 7cfc04
.PP
Packit 7cfc04
See also the discussion
Packit 7cfc04
.IR "Hyphenation of attributive compounds"
Packit 7cfc04
below.
Packit 7cfc04
.SS Terms to avoid
Packit 7cfc04
The following table lists some terms to avoid using in man pages,
Packit 7cfc04
along with some suggested alternatives,
Packit 7cfc04
mainly to ensure consistency across pages.
Packit 7cfc04
.TS
Packit 7cfc04
l l l
Packit 7cfc04
---
Packit 7cfc04
l l l.
Packit 7cfc04
Avoid	Use instead	Notes
Packit 7cfc04
Packit 7cfc04
32bit	32-bit	T{
Packit 7cfc04
same for 8-bit, 16-bit, etc.
Packit 7cfc04
T}
Packit 7cfc04
current process	calling process	T{
Packit 7cfc04
A common mistake made by kernel programmers when writing man pages
Packit 7cfc04
T}
Packit 7cfc04
manpage	T{
Packit 7cfc04
man page, manual page
Packit 7cfc04
T}
Packit 7cfc04
minus infinity	negative infinity
Packit 7cfc04
non-root	unprivileged user
Packit 7cfc04
non-superuser	unprivileged user
Packit 7cfc04
nonprivileged	unprivileged
Packit 7cfc04
OS	operating system
Packit 7cfc04
plus infinity	positive infinity
Packit 7cfc04
pty	pseudoterminal
Packit 7cfc04
tty	terminal
Packit 7cfc04
Unices	UNIX systems
Packit 7cfc04
Unixes	UNIX systems
Packit 7cfc04
.TE
Packit 7cfc04
.SS Trademarks
Packit 7cfc04
Use the correct spelling and case for trademarks.
Packit 7cfc04
The following is a list of the correct spellings of various
Packit 7cfc04
relevant trademarks that are sometimes misspelled:
Packit 7cfc04
.PP
Packit 7cfc04
     DG/UX
Packit 7cfc04
     HP-UX
Packit 7cfc04
     UNIX
Packit 7cfc04
     UnixWare
Packit 7cfc04
.SS NULL, NUL, null pointer, and null character
Packit 7cfc04
A
Packit 7cfc04
.IR "null pointer"
Packit 7cfc04
is a pointer that points to nothing,
Packit 7cfc04
and is normally indicated by the constant
Packit 7cfc04
.IR NULL .
Packit 7cfc04
On the other hand,
Packit 7cfc04
.I NUL
Packit 7cfc04
is the
Packit 7cfc04
.IR "null byte",
Packit 7cfc04
a byte with the value 0, represented in C via the character constant
Packit 7cfc04
.IR \(aq\e0\(aq .
Packit 7cfc04
.PP
Packit 7cfc04
The preferred term for the pointer is "null pointer" or simply "NULL";
Packit 7cfc04
avoid writing "NULL pointer".
Packit 7cfc04
.PP
Packit 7cfc04
The preferred term for the byte is "null byte".
Packit 7cfc04
Avoid writing "NUL", since it is too easily confused with "NULL".
Packit 7cfc04
Avoid also the terms "zero byte" and "null character".
Packit 7cfc04
The byte that terminates a C string should be described
Packit 7cfc04
as "the terminating null byte";
Packit 7cfc04
strings may be described as "null-terminated",
Packit 7cfc04
but avoid the use of "NUL-terminated".
Packit 7cfc04
.SS Hyperlinks
Packit 7cfc04
For hyperlinks, use the
Packit 7cfc04
.IR .UR / .UE
Packit 7cfc04
macro pair
Packit 7cfc04
(see
Packit 7cfc04
.BR groff_man (7)).
Packit 7cfc04
This produces proper hyperlinks that can be used in a web browser,
Packit 7cfc04
when rendering a page with, say:
Packit 7cfc04
.PP
Packit 7cfc04
     BROWSER=firefox man -H pagename
Packit 7cfc04
.SS Use of e.g., i.e., etc., a.k.a., and similar
Packit 7cfc04
In general, the use of abbreviations such as "e.g.", "i.e.", "etc.",
Packit 7cfc04
"cf.", and "a.k.a." should be avoided,
Packit 7cfc04
in favor of suitable full wordings
Packit 7cfc04
("for example", "that is", "compare to", "and so on", "also known as").
Packit 7cfc04
.PP
Packit 7cfc04
The only place where such abbreviations may be acceptable is in
Packit 7cfc04
.I short
Packit 7cfc04
parenthetical asides (e.g., like this one).
Packit 7cfc04
.PP
Packit 7cfc04
Always include periods in such abbreviations, as shown here.
Packit 7cfc04
In addition, "e.g." and "i.e." should always be followed by a comma.
Packit 7cfc04
.SS Em-dashes
Packit 7cfc04
The way to write an em-dash\(emthe glyph that appears
Packit 7cfc04
at either end of this subphrase\(emin *roff is with the macro "\\(em".
Packit 7cfc04
(On an ASCII terminal, an em-dash typically renders as two hyphens,
Packit 7cfc04
but in other typographical contexts it renders as a long dash.)
Packit 7cfc04
Em-dashes should be written
Packit 7cfc04
.I without
Packit 7cfc04
surrounding spaces.
Packit 7cfc04
.SS Hyphenation of attributive compounds
Packit 7cfc04
Compound terms should be hyphenated when used attributively
Packit 7cfc04
(i.e., to qualify a following noun). Some examples:
Packit 7cfc04
.PP
Packit 7cfc04
    32-bit value
Packit 7cfc04
    command-line argument
Packit 7cfc04
    floating-point number
Packit 7cfc04
    run-time check
Packit 7cfc04
    user-space function
Packit 7cfc04
    wide-character string
Packit 7cfc04
.SS Hyphenation with multi, non, pre, re, sub, and so on
Packit 7cfc04
The general tendency in modern English is not to hyphenate
Packit 7cfc04
after prefixes such as "multi", "non", "pre", "re", "sub", and so on.
Packit 7cfc04
Manual pages should generally follow this rule when these prefixes are
Packit 7cfc04
used in natural English constructions with simple suffixes.
Packit 7cfc04
The following list gives some examples of the preferred forms:
Packit 7cfc04
.PP
Packit 7cfc04
    interprocess
Packit 7cfc04
    multithreaded
Packit 7cfc04
    multiprocess
Packit 7cfc04
    nonblocking
Packit 7cfc04
    nondefault
Packit 7cfc04
    nonempty
Packit 7cfc04
    noninteractive
Packit 7cfc04
    nonnegative
Packit 7cfc04
    nonportable
Packit 7cfc04
    nonzero
Packit 7cfc04
    preallocated
Packit 7cfc04
    precreate
Packit 7cfc04
    prerecorded
Packit 7cfc04
    reestablished
Packit 7cfc04
    reinitialize
Packit 7cfc04
    rearm
Packit 7cfc04
    reread
Packit 7cfc04
    subcomponent
Packit 7cfc04
    subdirectory
Packit 7cfc04
    subsystem
Packit 7cfc04
.PP
Packit 7cfc04
Hyphens should be retained when the prefixes are used in nonstandard
Packit 7cfc04
English words, with trademarks, proper nouns, acronyms, or compound terms.
Packit 7cfc04
Some examples:
Packit 7cfc04
.PP
Packit 7cfc04
    non-ASCII
Packit 7cfc04
    non-English
Packit 7cfc04
    non-NULL
Packit 7cfc04
    non-real-time
Packit 7cfc04
.PP
Packit 7cfc04
Finally, note that "re-create" and "recreate" are two different verbs,
Packit 7cfc04
and the former is probably what you want.
Packit 7cfc04
.SS Real minus character
Packit 7cfc04
Where a real minus character is required (e.g., for numbers such as \-1,
Packit 7cfc04
for man page cross references such as
Packit 7cfc04
.BR utf\-8 (7),
Packit 7cfc04
or when writing options that have a leading dash, such as in
Packit 7cfc04
.IR "ls\ \-l"),
Packit 7cfc04
use the following form in the man page source:
Packit 7cfc04
.PP
Packit 7cfc04
    \\\-
Packit 7cfc04
.PP
Packit 7cfc04
This guideline applies also to code examples.
Packit 7cfc04
.SS Character constants
Packit 7cfc04
To produce single quotes that render well in both ASCII and UTF-8,
Packit 7cfc04
use the following form for character constants in the man page source:
Packit 7cfc04
.PP
Packit 7cfc04
    \\(aqC\\(aq
Packit 7cfc04
.PP
Packit 7cfc04
where
Packit 7cfc04
.I C
Packit 7cfc04
is the quoted character.
Packit 7cfc04
This guideline applies also to character constants used in code examples.
Packit 7cfc04
.SS Example programs and shell sessions
Packit 7cfc04
Manual pages may include example programs demonstrating how to
Packit 7cfc04
use a system call or library function.
Packit 7cfc04
However, note the following:
Packit 7cfc04
.IP * 3
Packit 7cfc04
Example programs should be written in C.
Packit 7cfc04
.IP *
Packit 7cfc04
An example program is necessary and useful only if it demonstrates
Packit 7cfc04
something beyond what can easily be provided in a textual
Packit 7cfc04
description of the interface.
Packit 7cfc04
An example program that does nothing
Packit 7cfc04
other than call an interface usually serves little purpose.
Packit 7cfc04
.IP *
Packit 7cfc04
Example programs should be fairly short (preferably less than 100 lines;
Packit 7cfc04
ideally less than 50 lines).
Packit 7cfc04
.IP *
Packit 7cfc04
Example programs should do error checking after system calls and
Packit 7cfc04
library function calls.
Packit 7cfc04
.IP *
Packit 7cfc04
Example programs should be complete, and compile without
Packit 7cfc04
warnings when compiled with \fIcc\ \-Wall\fP.
Packit 7cfc04
.IP *
Packit 7cfc04
Where possible and appropriate, example programs should allow
Packit 7cfc04
experimentation, by varying their behavior based on inputs
Packit 7cfc04
(ideally from command-line arguments, or alternatively, via
Packit 7cfc04
input read by the program).
Packit 7cfc04
.IP *
Packit 7cfc04
Example programs should be laid out according to Kernighan and
Packit 7cfc04
Ritchie style, with 4-space indents.
Packit 7cfc04
(Avoid the use of TAB characters in source code!)
Packit 7cfc04
The following command can be used to format your source code to
Packit 7cfc04
something close to the preferred style:
Packit 7cfc04
.IP
Packit 7cfc04
    indent \-npro \-kr \-i4 \-ts4 \-sob \-l72 \-ss \-nut \-psl prog.c
Packit 7cfc04
.IP *
Packit 7cfc04
For consistency, all example programs should terminate using either of:
Packit 7cfc04
.IP
Packit 7cfc04
     exit(EXIT_SUCCESS);
Packit 7cfc04
     exit(EXIT_FAILURE);
Packit 7cfc04
.IP
Packit 7cfc04
Avoid using the following forms to terminate a program:
Packit 7cfc04
.IP
Packit 7cfc04
    exit(0);
Packit 7cfc04
    exit(1);
Packit 7cfc04
    return n;
Packit 7cfc04
.IP *
Packit 7cfc04
If there is extensive explanatory text before the
Packit 7cfc04
program source code, mark off the source code
Packit 7cfc04
with a subsection heading
Packit 7cfc04
.IR "Program source" ,
Packit 7cfc04
as in:
Packit 7cfc04
.IP
Packit 7cfc04
    .SS Program source
Packit 7cfc04
.IP
Packit 7cfc04
Always do this if the explanatory text includes a shell session log.
Packit 7cfc04
.PP
Packit 7cfc04
If you include a shell session log demonstrating the use of a program
Packit 7cfc04
or other system feature:
Packit 7cfc04
.IP * 3
Packit 7cfc04
Place the session log above the source code listing
Packit 7cfc04
.IP *
Packit 7cfc04
Indent the session log by four spaces.
Packit 7cfc04
.IP *
Packit 7cfc04
Boldface the user input text,
Packit 7cfc04
to distinguish it from output produced by the system.
Packit 7cfc04
.PP
Packit 7cfc04
For some examples of what example programs should look like, see
Packit 7cfc04
.BR wait (2)
Packit 7cfc04
and
Packit 7cfc04
.BR pipe (2).
Packit 7cfc04
.SH EXAMPLE
Packit 7cfc04
For canonical examples of how man pages in the
Packit 7cfc04
.I man-pages
Packit 7cfc04
package should look, see
Packit 7cfc04
.BR pipe (2)
Packit 7cfc04
and
Packit 7cfc04
.BR fcntl (2).
Packit 7cfc04
.SH SEE ALSO
Packit 7cfc04
.BR man (1),
Packit 7cfc04
.BR man2html (1),
Packit 7cfc04
.BR attributes (7),
Packit 7cfc04
.BR groff (7),
Packit 7cfc04
.BR groff_man (7),
Packit 7cfc04
.BR man (7),
Packit 7cfc04
.BR mdoc (7)
Packit 7cfc04
.SH COLOPHON
Packit 7cfc04
This page is part of release 4.15 of the Linux
Packit 7cfc04
.I man-pages
Packit 7cfc04
project.
Packit 7cfc04
A description of the project,
Packit 7cfc04
information about reporting bugs,
Packit 7cfc04
and the latest version of this page,
Packit 7cfc04
can be found at
Packit 7cfc04
\%https://www.kernel.org/doc/man\-pages/.