]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man7/man-pages.7
Fix description of return value.
[thirdparty/man-pages.git] / man7 / man-pages.7
index 1647fb406efe78305d22b36022b08f6dffc80f12..152dd0434bdd3a5402114acfdc21ca654bfb14e5 100644 (file)
@@ -21,8 +21,8 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
-.\" 
-.\" 2007-05-30 created by mtk, using text from old man.7 plus 
+.\"
+.\" 2007-05-30 created by mtk, using text from old man.7 plus
 .\" rewrites and additional text.
 .\"
 .TH MAN-PAGES 7 2007-05-30 "Linux" "Linux Programmer's Manual"
@@ -86,10 +86,10 @@ New manual pages should be marked up using the
 .B groff tmac.an
 package described in
 .BR man (7).
-This choice is mainly for consistency: the vast majority of 
+This choice is mainly for consistency: the vast majority of
 existing Linux manual pages are marked up using these macros.
 .SS Conventions for source file layout
-Please limit source code line length to no more than about 75 characters 
+Please limit source code line length to no more than about 75 characters
 wherever possible.
 This helps avoid line-wrapping in some mail clients when patches are
 submitted inline.
@@ -137,7 +137,7 @@ However, this was never done consistently, and so was
 probably worse than including no version number.
 Henceforth, avoid including a version number.)
 .sp
-For library calls that are part of glibc or one of the 
+For library calls that are part of glibc or one of the
 other common GNU libraries, just use
 .IR "GNU C Library" ", " GNU ,
 or an empty string.
@@ -149,13 +149,13 @@ In cases of doubt, just write
 .IR Linux ", or " GNU .
 .TP
 .I manual
-The title of the manual (e.g., for Section 2 and 3 pages in 
+The title of the manual (e.g., for Section 2 and 3 pages in
 the \fIman-pages\fP package, use
 .IR "Linux Programmer's Manual" ).
 .RE
 .SS Sections within a manual page
 The list below shows conventional or suggested sections.
-Most manual pages should include at least the 
+Most manual pages should include at least the
 .B highlighted
 sections.
 Arrange a new manual page so that sections
@@ -173,8 +173,8 @@ RETURN VALUE       [Normally only in Sections 2, 3]
 .\" ERROR HANDLING,
 ERRORS             [Typically only in Sections 2, 3]
 .\" May 07: Almost no current man pages have a USAGE section,,,
-.\" USAGE, 
-..\" DIAGNOSTICS, 
+.\" USAGE,
+..\" DIAGNOSTICS,
 .\" May 07: Almost no current man pages have a SECURITY section,,,
 .\" SECURITY,
 ENVIRONMENT
@@ -184,27 +184,27 @@ CONFORMING TO
 NOTES
 BUGS
 EXAMPLE
-.\" AUTHOR sections are discouraged
-.\" AUTHOR             [Discouraged]
+.\" AUTHORS sections are discouraged
+.\" AUTHORS             [Discouraged]
 \fBSEE ALSO\fP
 
 .fi
 .in
 .IR "Where a traditional heading would apply" ", " "please use it" ;
 this kind of consistency can make the information easier to understand.
-If you must, you can create your own 
+If you must, you can create your own
 headings if they make things easier to understand (this can
 be especially useful for pages in Sections 4 and 5).
 However, before doing this, consider whether you could use the
 traditional headings, with some subsections (\fI.SS\fP) within
 those sections.
 
-The following list elaborates on the contents of each of 
+The following list elaborates on the contents of each of
 the above sections.
 .TP 14
 .B NAME
 The name of this manual page.
-See 
+See
 .BR man (7)
 for important details of the line(s) that should follow the
 \fB.SH NAME\fI command.
@@ -239,7 +239,7 @@ section.
 .\" section).
 .TP
 .B OPTIONS
-describes the command-line options accepted by a 
+describes the command-line options accepted by a
 program and how they change its behavior.
 This section should only appear for Section 1 and 8 manual pages.
 .\" .TP
@@ -324,8 +324,8 @@ but isn't in the current version of POSIX.1.)
 (See
 .BR standards (7).)
 
-If the call is not governed by any standards but commonly 
-exists on other systems, note them. 
+If the call is not governed by any standards but commonly
+exists on other systems, note them.
 If the call is Linux specific, note this.
 .TP
 .B NOTES
@@ -343,9 +343,9 @@ command is used.
 For details on writing example programs,
 see \fIExample Programs\fP below.
 .TP
-.B AUTHOR
+.B AUTHORS
 lists authors of the documentation or program.
-\fBUse of an AUTHOR section is discouraged\fP.
+\fBUse of an AUTHORS section is strongly discouraged\fP.
 Generally, it is better not to clutter every page with a list
 of (over time potentially numerous) authors;
 if you write or significantly amend a page,
@@ -354,7 +354,7 @@ If you are the author a device driver and what to include
 an address for reporting bugs, place this under the BUGS section.
 .TP
 .B SEE ALSO
-lists related man pages, ordered by section number and 
+lists related man pages, ordered by section number and
 alphabetically by name, possibly followed by
 other related pages or documents.
 .SS Font conventions
@@ -384,7 +384,7 @@ macro).
 Any reference to the subject of the current manual page
 should be written with the name in bold.
 If the subject is a function (i.e., this is a Section 2 or 3 page),
-then the name should be followed by a pair of parentheses 
+then the name should be followed by a pair of parentheses
 in Roman (normal) font.
 For example, in the
 .BR fcntl (2)
@@ -414,8 +414,13 @@ The preferred way to write this in the source file is:
 (Including the section number in cross references lets tools like
 .BR man2html (1)
 create properly hyperlinked pages.)
+.SS Spelling
+Starting with release 2.59,
+.I man-pages
+follows American spelling conventions;
+please write all new pages and patches according to these conventions.
 .SS Example Programs
-Manual pages can include example programs demonstrating how to 
+Manual pages can include example programs demonstrating how to
 use a system call or library function.
 However, note the following:
 .TP 3