From: <Saved by Windows Internet Explorer 7>
Subject: GNU Coding Standards
Date: Mon, 28 May 2007 20:22:34 +0530
MIME-Version: 1.0
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.gnu.org/prep/standards/standards.html
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML lang=3Den><HEAD><TITLE>GNU Coding Standards</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"GNU Coding Standards" name=3Ddescription>
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR><LINK =
title=3DTop=20
href=3D"#Top" rel=3Dtop><LINK title=3D"Texinfo Homepage"=20
href=3D"http://www.gnu.org/software/texinfo/" rel=3Dgenerator-home><!--=0A=
The GNU coding standards, last updated January 22, 2007.=0A=
=0A=
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,=0A=
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software=0A=
Foundation, Inc.=0A=
=0A=
Permission is granted to copy, distribute and/or modify this document=0A=
under the terms of the GNU Free Documentation License, Version 1.2=0A=
or any later version published by the Free Software Foundation;=0A=
with no Invariant Sections, with no=0A=
Front-Cover Texts, and with no Back-Cover Texts.=0A=
A copy of the license is included in the section entitled "GNU=0A=
Free Documentation License".-->
<META http-equiv=3DContent-Style-Type content=3Dtext/css>
<STYLE type=3Dtext/css>PRE.display {
	FONT-FAMILY: inherit
}
PRE.format {
	FONT-FAMILY: inherit
}
PRE.smalldisplay {
	FONT-SIZE: smaller; FONT-FAMILY: inherit
}
PRE.smallformat {
	FONT-SIZE: smaller; FONT-FAMILY: inherit
}
PRE.smallexample {
	FONT-SIZE: smaller
}
PRE.smalllisp {
	FONT-SIZE: smaller
}
SPAN.sc {
	FONT-VARIANT: small-caps
}
SPAN.roman {
	FONT-WEIGHT: normal; FONT-FAMILY: serif
}
SPAN.sansserif {
	FONT-WEIGHT: normal; FONT-FAMILY: sans-serif
}
</STYLE>
</HEAD>
<BODY>
<H1 class=3Dsettitle>GNU Coding Standards</H1>
<DIV class=3Dcontents>
<H2>Table of Contents</H2>
<UL>
  <LI><A href=3D"http://www.gnu.org/prep/standards/standards.html#Top"=20
  name=3Dtoc_Top>Version</A>=20
  <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Preface"=20
  name=3Dtoc_Preface>1 About the GNU Coding Standards</A>=20
  <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Legal-Issues"=20
  name=3Dtoc_Legal-Issues>2 Keeping Free Software Free</A>=20
  <UL>
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Reading-Non_002d=
Free-Code">2.1=20
    Referring to Proprietary Programs</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Contributions">2=
.2=20
    Accepting Contributions</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Trademarks">2.3 =

    Trademarks</A> </LI></UL>
  <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Design-Advice"=20
  name=3Dtoc_Design-Advice>3 General Program Design</A>=20
  <UL>
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Source-Language"=
>3.1=20
    Which Languages to Use</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Compatibility">3=
.2=20
    Compatibility with Other Implementations</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Using-Extensions=
">3.3=20
    Using Non-standard Features</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Standard-C">3.4 =

    Standard C and Pre-Standard C</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Conditional-Comp=
ilation">3.5=20
    Conditional Compilation</A> </LI></UL>
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
"=20
  name=3Dtoc_Program-Behavior>4 Program Behavior for All Programs</A>=20
  <UL>
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Non_002dGNU-Stan=
dards">4.1=20
    Non-GNU Standards</A>=20
    <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics">4.2=20
    Writing Robust Programs</A>=20
    <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Libraries">4.3=20
    Library Behavior</A>=20
    <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Errors">4.4=20
    Formatting Error Messages</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#User-Interfaces"=
>4.5=20
    Standards for Interfaces Generally</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Graphical-Interf=
aces">4.6=20
    Standards for Graphical Interfaces</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">4.7=20
    Standards for Command Line Interfaces</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Option-Table">4.=
8=20
    Table of Long Options</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Memory-Usage">4.=
9=20
    Memory Usage</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#File-Usage">4.10=
 File=20
    Usage</A> </LI></UL>
  <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C"=20
  name=3Dtoc_Writing-C>5 Making The Best Use of C</A>=20
  <UL>
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Formatting">5.1 =

    Formatting Your Source Code</A>=20
    <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Comments">5.2=20
    Commenting Your Work</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Syntactic-Conven=
tions">5.3=20
    Clean Use of C Constructs</A>=20
    <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Names">5.4=20
    Naming Variables, Functions, and Files</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Portabili=
ty">5.5=20
    Portability between System Types</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#CPU-Portability"=
>5.6=20
    Portability between <SPAN class=3Dsc>cpu</SPAN>s</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Functions=
">5.7=20
    Calling System Functions</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Internationaliza=
tion">5.8=20
    Internationalization</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Character-Set">5=
.9=20
    Character Set</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Quote-Characters=
">5.10=20
    Quote Characters</A>=20
    <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Mmap">5.11=20
    Mmap</A> </LI></UL>
  <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation"=20
  name=3Dtoc_Documentation>6 Documenting Programs</A>=20
  <UL>
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#GNU-Manuals">6.1=
 GNU=20
    Manuals</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Doc-Strings-and-=
Manuals">6.2=20
    Doc Strings and Manuals</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Manual-Structure=
-Details">6.3=20
    Manual Structure Details</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#License-for-Manu=
als">6.4=20
    License for Manuals</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Manual-Credits">=
6.5=20
    Manual Credits</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Printed-Manuals"=
>6.6=20
    Printed Manuals</A>=20
    <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#NEWS-File">6.7=20
    The NEWS File</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Logs">6.8=
=20
    Change Logs</A>=20
    <UL>
      <LI><A=20
      =
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Log-Conce=
pts">6.8.1=20
      Change Log Concepts</A>=20
      <LI><A=20
      =
href=3D"http://www.gnu.org/prep/standards/standards.html#Style-of-Change-=
Logs">6.8.2=20
      Style of Change Logs</A>=20
      <LI><A=20
      =
href=3D"http://www.gnu.org/prep/standards/standards.html#Simple-Changes">=
6.8.3=20
      Simple Changes</A>=20
      <LI><A=20
      =
href=3D"http://www.gnu.org/prep/standards/standards.html#Conditional-Chan=
ges">6.8.4=20
      Conditional Changes</A>=20
      <LI><A=20
      =
href=3D"http://www.gnu.org/prep/standards/standards.html#Indicating-the-P=
art-Changed">6.8.5=20
      Indicating the Part Changed</A> </LI></UL>
    <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Man-Pages">6.9=20
    Man Pages</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Reading-other-Ma=
nuals">6.10=20
    Reading other Manuals</A> </LI></UL>
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Managing-Release=
s"=20
  name=3Dtoc_Managing-Releases>7 The Release Process</A>=20
  <UL>
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Configuration">7=
.1=20
    How Configuration Should Work</A>=20
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions">7.2=20
    Makefile Conventions</A>=20
    <UL>
      <LI><A=20
      =
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Basics"=
>7.2.1=20
      General Conventions for Makefiles</A>=20
      <LI><A=20
      =
href=3D"http://www.gnu.org/prep/standards/standards.html#Utilities-in-Mak=
efiles">7.2.2=20
      Utilities in Makefiles</A>=20
      <LI><A=20
      =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command-Variable=
s">7.2.3=20
      Variables for Specifying Commands</A>=20
      <LI><A=20
      =
href=3D"http://www.gnu.org/prep/standards/standards.html#DESTDIR">7.2.4=20
      <CODE>DESTDIR</CODE>: support for staged installs</A>=20
      <LI><A=20
      =
href=3D"http://www.gnu.org/prep/standards/standards.html#Directory-Variab=
les">7.2.5=20
      Variables for Installation Directories</A>=20
      <LI><A=20
      =
href=3D"http://www.gnu.org/prep/standards/standards.html#Standard-Targets=
">7.2.6=20
      Standard Targets for Users</A>=20
      <LI><A=20
      =
href=3D"http://www.gnu.org/prep/standards/standards.html#Install-Command-=
Categories">7.2.7=20
      Install Command Categories</A> </LI></UL>
    <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Releases">7.3=20
    Making Releases</A> </LI></UL>
  <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#References"=20
  name=3Dtoc_References>8 References to Non-Free Software and =
Documentation</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Copying-This-Man=
ual"=20
  name=3Dtoc_Copying-This-Manual>Appendix A Copying This Manual</A>=20
  <UL>
    <LI><A=20
    =
href=3D"http://www.gnu.org/prep/standards/standards.html#GNU-Free-Documen=
tation-License">A.1=20
    GNU Free Documentation License</A>=20
    <UL>
      <LI><A=20
      =
href=3D"http://www.gnu.org/prep/standards/standards.html#GNU-Free-Documen=
tation-License">A.1.1=20
      ADDENDUM: How to use this License for your documents</A> =
</LI></UL></LI></UL>
  <LI><A href=3D"http://www.gnu.org/prep/standards/standards.html#Index" =

  name=3Dtoc_Index>Index</A> </LI></UL></DIV>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DTop></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Preface"=20
rel=3Dnext>Preface</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#dir"=20
rel=3Dprevious>(dir)</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#dir" =
rel=3Dup>(dir)</A>=20
</DIV>
<H2 class=3Dunnumbered>Version</H2>
<P>The GNU coding standards, last updated January 22, 2007.=20
<P>Copyright =A9 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, =
2001, 2002,=20
2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.=20
<P>Permission is granted to copy, distribute and/or modify this document =
under=20
the terms of the GNU Free Documentation License, Version 1.2 or any =
later=20
version published by the Free Software Foundation; with no Invariant =
Sections,=20
with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the =
license=20
is included in the section entitled =93GNU Free Documentation =
License=94.=20
<UL class=3Dmenu>
  <LI><A accessKey=3D1=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Preface">Preface=
</A>:=20
  About the GNU Coding Standards=20
  <LI><A accessKey=3D2=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Legal-Issues">Le=
gal=20
  Issues</A>: Keeping Free Software Free=20
  <LI><A accessKey=3D3=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Design-Advice">D=
esign=20
  Advice</A>: General Program Design=20
  <LI><A accessKey=3D4=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
">Program=20
  Behavior</A>: Program Behavior for All Programs=20
  <LI><A accessKey=3D5=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C">Writi=
ng=20
  C</A>: Making The Best Use of C=20
  <LI><A accessKey=3D6=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation">D=
ocumentation</A>:=20
  Documenting Programs=20
  <LI><A accessKey=3D7=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Managing-Release=
s">Managing=20
  Releases</A>: The Release Process=20
  <LI><A accessKey=3D8=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#References">Refe=
rences</A>:=20
  References to Non-Free Software or Documentation=20
  <LI><A accessKey=3D9=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Copying-This-Man=
ual">Copying=20
  This Manual</A>: How to Make Copies of This Manual=20
  <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Index">Index</A>=
=20
  </LI></UL>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DPreface></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Legal-Issues"=20
rel=3Dnext>Legal Issues</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Top"=20
rel=3Dprevious>Top</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Top" =
rel=3Dup>Top</A>=20
</DIV>
<H2 class=3Dchapter>1 About the GNU Coding Standards</H2>
<P>The GNU Coding Standards were written by Richard Stallman and other =
GNU=20
Project volunteers. Their purpose is to make the GNU system clean, =
consistent,=20
and easy to install. This document can also be read as a guide to =
writing=20
portable, robust and reliable programs. It focuses on programs written =
in C, but=20
many of the rules and principles are useful even if you write in another =

programming language. The rules often state reasons for writing in a =
certain=20
way.=20
<P>This release of the GNU Coding Standards was last updated January 22, =
2007.=20
<P><A =
name=3Dindex-where-to-obtain-_0040code_007bstandards_002etexi_007d-1></A>=
<A=20
name=3Dindex-downloading-this-manual-2></A>If you did not obtain this =
file=20
directly from the GNU project and recently, please check for a newer =
version.=20
You can get the GNU Coding Standards from the GNU web server in many =
different=20
formats, including the Texinfo source, PDF, HTML, DVI, plain text, and =
more, at:=20
<A=20
href=3D"http://www.gnu.org/prep/standards/">http://www.gnu.org/prep/stand=
ards/</A>.=20

<P>Corrections or suggestions for this document should be sent to <A=20
href=3D"mailto:bug-standards@gnu.org">bug-standards@gnu.org</A>. If you =
make a=20
suggestion, please include a suggested new wording for it; our time is =
limited.=20
We prefer a context diff to the <SAMP><SPAN=20
class=3Dfile>standards.texi</SPAN></SAMP> or <SAMP><SPAN=20
class=3Dfile>make-stds.texi</SPAN></SAMP> files, but if you don't have =
those=20
files, please mail your suggestion anyway.=20
<P>These standards cover the minimum of what is important when writing a =
GNU=20
package. Likely, the needs for additional standards will come up. =
Sometimes, you=20
might suggest that such standards be added to this document. If you =
think your=20
standards would be generally useful, please do suggest them.=20
<P>You should also set standards for your package on many questions not=20
addressed or not firmly specified here. The most important point is to =
be=20
self-consistent=97try to stick to the conventions you pick, and try to =
document=20
them as much as possible. That way, your program will be more =
maintainable by=20
others.=20
<P>The GNU Hello program serves as an example of how to follow the GNU =
coding=20
standards for a trivial program. <A=20
href=3D"http://www.gnu.org/software/hello/hello.html">http://www.gnu.org/=
software/hello/hello.html</A>.=20

<DIV class=3Dnode>
<P>
<HR>
<A name=3DLegal-Issues></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Design-Advice"=20
rel=3Dnext>Design Advice</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Preface"=20
rel=3Dprevious>Preface</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Top" =
rel=3Dup>Top</A>=20
</DIV>
<H2 class=3Dchapter>2 Keeping Free Software Free</H2>
<P><A name=3Dindex-legal-aspects-3></A>This chapter discusses how you =
can make=20
sure that GNU software avoids legal difficulties, and other related =
issues.=20
<UL class=3Dmenu>
  <LI><A accessKey=3D1=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Reading-Non_002d=
Free-Code">Reading=20
  Non-Free Code</A>: Referring to Proprietary Programs=20
  <LI><A accessKey=3D2=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Contributions">C=
ontributions</A>:=20
  Accepting Contributions=20
  <LI><A accessKey=3D3=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Trademarks">Trad=
emarks</A>:=20
  How We Deal with Trademark Issues </LI></UL>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DReading-Non-Free-Code></A><A=20
name=3DReading-Non_002dFree-Code></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Contributions"=20
rel=3Dnext>Contributions</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Legal-Issues"=20
rel=3Dup>Legal Issues</A> </DIV>
<H3 class=3Dsection>2.1 Referring to Proprietary Programs</H3>
<P><A name=3Dindex-proprietary-programs-4></A><A=20
name=3Dindex-avoiding-proprietary-code-5></A>Don't in any circumstances =
refer to=20
Unix source code for or during your work on GNU! (Or to any other =
proprietary=20
programs.)=20
<P>If you have a vague recollection of the internals of a Unix program, =
this=20
does not absolutely mean you can't write an imitation of it, but do try =
to=20
organize the imitation internally along different lines, because this is =
likely=20
to make the details of the Unix version irrelevant and dissimilar to =
your=20
results.=20
<P>For example, Unix utilities were generally optimized to minimize =
memory use;=20
if you go for speed instead, your program will be very different. You =
could keep=20
the entire input file in memory and scan it there instead of using =
stdio. Use a=20
smarter algorithm discovered more recently than the Unix program. =
Eliminate use=20
of temporary files. Do it in one pass instead of two (we did this in the =

assembler).=20
<P>Or, on the contrary, emphasize simplicity instead of speed. For some=20
applications, the speed of today's computers makes simpler algorithms =
adequate.=20
<P>Or go for generality. For example, Unix programs often have static =
tables or=20
fixed-size strings, which make for arbitrary limits; use dynamic =
allocation=20
instead. Make sure your program handles NULs and other funny characters =
in the=20
input files. Add a programming language for extensibility and write part =
of the=20
program in that language.=20
<P>Or turn some parts of the program into independently usable =
libraries. Or use=20
a simple garbage collector instead of tracking precisely when to free =
memory, or=20
use a new GNU facility such as obstacks.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DContributions></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Trademarks"=20
rel=3Dnext>Trademarks</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Reading-Non_002d=
Free-Code"=20
rel=3Dprevious>Reading Non-Free Code</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Legal-Issues"=20
rel=3Dup>Legal Issues</A> </DIV>
<H3 class=3Dsection>2.2 Accepting Contributions</H3>
<P><A name=3Dindex-legal-papers-6></A><A=20
name=3Dindex-accepting-contributions-7></A>If the program you are =
working on is=20
copyrighted by the Free Software Foundation, then when someone else =
sends you a=20
piece of code to add to the program, we need legal papers to use =
it=97just as we=20
asked you to sign papers initially. <EM>Each</EM> person who makes a =
nontrivial=20
contribution to a program must sign some sort of legal papers in order =
for us to=20
have clear title to the program; the main author alone is not enough.=20
<P>So, before adding in any contributions from other people, please tell =
us, so=20
we can arrange to get the papers. Then wait until we tell you that we =
have=20
received the signed papers, before you actually use the contribution.=20
<P>This applies both before you release the program and afterward. If =
you=20
receive diffs to fix a bug, and they make significant changes, we need =
legal=20
papers for that change.=20
<P>This also applies to comments and documentation files. For copyright =
law,=20
comments and code are just text. Copyright applies to all kinds of text, =
so we=20
need legal papers for all kinds.=20
<P>We know it is frustrating to ask for legal papers; it's frustrating =
for us as=20
well. But if you don't wait, you are going out on a limb=97for example, =
what if=20
the contributor's employer won't sign a disclaimer? You might have to =
take that=20
code out again!=20
<P>You don't need papers for changes of a few lines here or there, since =
they=20
are not significant for copyright purposes. Also, you don't need papers =
if all=20
you get from the suggestion is some ideas, not actual code which you =
use. For=20
example, if someone sent you one implementation, but you write a =
different=20
implementation of the same idea, you don't need to get papers.=20
<P>The very worst thing is if you forget to tell us about the other =
contributor.=20
We could be very embarrassed in court some day as a result.=20
<P>We have more detailed advice for maintainers of programs; if you have =
reached=20
the stage of actually maintaining a program for GNU (whether released or =
not),=20
please ask us for a copy. It is also available online for your perusal: =
<A=20
href=3D"http://www.gnu.org/prep/maintain/">http://www.gnu.org/prep/mainta=
in/</A>.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DTrademarks></A>Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Contributions"=20
rel=3Dprevious>Contributions</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Legal-Issues"=20
rel=3Dup>Legal Issues</A> </DIV>
<H3 class=3Dsection>2.3 Trademarks</H3>
<P><A name=3Dindex-trademarks-8></A>Please do not include any trademark=20
acknowledgements in GNU software packages or documentation.=20
<P>Trademark acknowledgements are the statements that such-and-such is a =

trademark of so-and-so. The GNU Project has no objection to the basic =
idea of=20
trademarks, but these acknowledgements feel like kowtowing, and there is =
no=20
legal requirement for them, so we don't use them.=20
<P>What is legally required, as regards other people's trademarks, is to =
avoid=20
using them in ways which a reader might reasonably understand as naming =
or=20
labeling our own programs or activities. For example, since =93Objective =
C=94 is (or=20
at least was) a trademark, we made sure to say that we provide a =
=93compiler for=20
the Objective C language=94 rather than an =93Objective C compiler=94. =
The latter=20
would have been meant as a shorter way of saying the former, but it does =
not=20
explicitly state the relationship, so it could be misinterpreted as =
using=20
=93Objective C=94 as a label for the compiler rather than for the =
language.=20
<P>Please don't use =93win=94 as an abbreviation for Microsoft Windows =
in GNU=20
software or documentation. In hacker terminology, calling something a =
=93win=94 is a=20
form of praise. If you wish to praise Microsoft Windows when speaking on =
your=20
own, by all means do so, but not in GNU software. Usually we write the =
name=20
=93Windows=94 in full, but when brevity is very important (as in file =
names and=20
sometimes symbol names), we abbreviate it to =93w=94. For instance, the =
files and=20
functions in Emacs that deal with Windows start with `<SAMP><SPAN=20
class=3Dsamp>w32</SPAN></SAMP>'.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DDesign-Advice></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
"=20
rel=3Dnext>Program Behavior</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Legal-Issues"=20
rel=3Dprevious>Legal Issues</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Top" =
rel=3Dup>Top</A>=20
</DIV>
<H2 class=3Dchapter>3 General Program Design</H2>
<P><A name=3Dindex-program-design-9></A>This chapter discusses some of =
the issues=20
you should take into account when designing your program. <!-- Standard =
or ANSI C --><!-- In 1989 the American National Standards Institute =
(ANSI) standardized --><!-- C   as  standard  X3.159-1989.    In  =
December   of  that   year  the --><!-- International Standards =
Organization ISO  adopted the ANSI C standard --><!-- making  minor =
changes.   In 1990  ANSI then  re-adopted  ISO standard --><!-- C. This =
version of C is known as either ANSI C or Standard C. --><!-- A major =
revision of the C Standard appeared in 1999. -->
<UL class=3Dmenu>
  <LI><A accessKey=3D1=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Source-Language"=
>Source=20
  Language</A>: Which languages to use.=20
  <LI><A accessKey=3D2=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Compatibility">C=
ompatibility</A>:=20
  Compatibility with other implementations=20
  <LI><A accessKey=3D3=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Using-Extensions=
">Using=20
  Extensions</A>: Using non-standard features=20
  <LI><A accessKey=3D4=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Standard-C">Stan=
dard=20
  C</A>: Using Standard C features=20
  <LI><A accessKey=3D5=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Conditional-Comp=
ilation">Conditional=20
  Compilation</A>: Compiling Code Only If A Conditional is True =
</LI></UL>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DSource-Language></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Compatibility"=20
rel=3Dnext>Compatibility</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Design-Advice"=20
rel=3Dup>Design Advice</A> </DIV>
<H3 class=3Dsection>3.1 Which Languages to Use</H3>
<P><A name=3Dindex-programming-languages-10></A>When you want to use a =
language=20
that gets compiled and runs at high speed, the best language to use is =
C. Using=20
another language is like using a non-standard feature: it will cause =
trouble for=20
users. Even if GCC supports the other language, users may find it =
inconvenient=20
to have to install the compiler for that other language in order to =
build your=20
program. For example, if you write your program in C++, people will have =
to=20
install the GNU C++ compiler in order to compile your program.=20
<P>C has one other advantage over C++ and other compiled languages: more =
people=20
know C, so more people will find it easy to read and modify the program =
if it is=20
written in C.=20
<P>So in general it is much better to use C, rather than the comparable=20
alternatives.=20
<P>But there are two exceptions to that conclusion:=20
<UL>
  <LI>It is no problem to use another language to write a tool =
specifically=20
  intended for use with that language. That is because the only people =
who want=20
  to build the tool will be those who have installed the other language =
anyway.=20
  <LI>If an application is of interest only to a narrow part of the =
community,=20
  then the question of which language it is written in has less effect =
on other=20
  people, so you may as well please yourself. </LI></UL>
<P>Many programs are designed to be extensible: they include an =
interpreter for=20
a language that is higher level than C. Often much of the program is =
written in=20
that language, too. The Emacs editor pioneered this technique.=20
<P><A name=3Dindex-GUILE-11></A>The standard extensibility interpreter =
for GNU=20
software is GUILE (<A=20
href=3D"http://www.gnu.org/software/guile/">http://www.gnu.org/software/g=
uile/</A>),=20
which implements the language Scheme (an especially clean and simple =
dialect of=20
Lisp). We don't reject programs written in other =93scripting =
languages=94 such as=20
Perl and Python, but using GUILE is very important for the overall =
consistency=20
of the GNU system.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DCompatibility></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Using-Extensions=
"=20
rel=3Dnext>Using Extensions</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Source-Language"=
=20
rel=3Dprevious>Source Language</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Design-Advice"=20
rel=3Dup>Design Advice</A> </DIV>
<H3 class=3Dsection>3.2 Compatibility with Other Implementations</H3>
<P><A=20
name=3Dindex-compatibility-with-C-and-_0040sc_007bposix_007d-standards-12=
></A><A=20
name=3Dindex-g_t_0040sc_007bposix_007d-compatibility-13></A>With =
occasional=20
exceptions, utility programs and libraries for GNU should be upward =
compatible=20
with those in Berkeley Unix, and upward compatible with Standard C if =
Standard C=20
specifies their behavior, and upward compatible with <SPAN =
class=3Dsc>posix</SPAN>=20
if <SPAN class=3Dsc>posix</SPAN> specifies their behavior.=20
<P>When these standards conflict, it is useful to offer compatibility =
modes for=20
each of them.=20
<P><A name=3Dindex-options-for-compatibility-14></A>Standard C and <SPAN =

class=3Dsc>posix</SPAN> prohibit many kinds of extensions. Feel free to =
make the=20
extensions anyway, and include a `<SAMP><SPAN =
class=3Dsamp>--ansi</SPAN></SAMP>',=20
`<SAMP><SPAN class=3Dsamp>--posix</SPAN></SAMP>', or `<SAMP><SPAN=20
class=3Dsamp>--compatible</SPAN></SAMP>' option to turn them off. =
However, if the=20
extension has a significant chance of breaking any real programs or =
scripts,=20
then it is not really upward compatible. So you should try to redesign =
its=20
interface to make it upward compatible.=20
<P><A=20
name=3Dindex-g_t_0040code_007bPOSIXLY_005fCORRECT_007d_002c-environment-v=
ariable-15></A>Many=20
GNU programs suppress extensions that conflict with <SPAN =
class=3Dsc>posix</SPAN>=20
if the environment variable <CODE>POSIXLY_CORRECT</CODE> is defined =
(even if it=20
is defined with a null value). Please make your program recognize this =
variable=20
if appropriate.=20
<P>When a feature is used only by users (not by programs or command =
files), and=20
it is done poorly in Unix, feel free to replace it completely with =
something=20
totally different and better. (For example, <CODE>vi</CODE> is replaced =
with=20
Emacs.) But it is nice to offer a compatible feature as well. (There is =
a free=20
<CODE>vi</CODE> clone, so we offer it.)=20
<P>Additional useful features are welcome regardless of whether there is =
any=20
precedent for them.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DUsing-Extensions></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Standard-C"=20
rel=3Dnext>Standard C</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Compatibility"=20
rel=3Dprevious>Compatibility</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Design-Advice"=20
rel=3Dup>Design Advice</A> </DIV>
<H3 class=3Dsection>3.3 Using Non-standard Features</H3>
<P><A name=3Dindex-non_002dstandard-extensions-16></A>Many GNU =
facilities that=20
already exist support a number of convenient extensions over the =
comparable Unix=20
facilities. Whether to use these extensions in implementing your program =
is a=20
difficult question.=20
<P>On the one hand, using the extensions can make a cleaner program. On =
the=20
other hand, people will not be able to build the program unless the =
other GNU=20
tools are available. This might cause the program to work on fewer kinds =
of=20
machines.=20
<P>With some extensions, it might be easy to provide both alternatives. =
For=20
example, you can define functions with a =93keyword=94 =
<CODE>INLINE</CODE> and=20
define that as a macro to expand into either <CODE>inline</CODE> or =
nothing,=20
depending on the compiler.=20
<P>In general, perhaps it is best not to use the extensions if you can=20
straightforwardly do without them, but to use the extensions if they are =
a big=20
improvement.=20
<P>An exception to this rule are the large, established programs (such =
as Emacs)=20
which run on a great variety of systems. Using GNU extensions in such =
programs=20
would make many users unhappy, so we don't do that.=20
<P>Another exception is for programs that are used as part of =
compilation:=20
anything that must be compiled with other compilers in order to =
bootstrap the=20
GNU compilation facilities. If these require the GNU compiler, then no =
one can=20
compile them without having them installed already. That would be =
extremely=20
troublesome in certain cases.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DStandard-C></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Conditional-Comp=
ilation"=20
rel=3Dnext>Conditional Compilation</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Using-Extensions=
"=20
rel=3Dprevious>Using Extensions</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Design-Advice"=20
rel=3Dup>Design Advice</A> </DIV>
<H3 class=3Dsection>3.4 Standard C and Pre-Standard C</H3>
<P><A name=3Dindex-g_t_0040sc_007bansi_007d-C-standard-17></A>1989 =
Standard C is=20
widespread enough now that it is ok to use its features in new programs. =
There=20
is one exception: do not ever use the =93trigraph=94 feature of Standard =
C.=20
<P>1999 Standard C is not widespread yet, so please do not require its =
features=20
in programs. It is ok to use its features if they are present.=20
<P>However, it is easy to support pre-standard compilers in most =
programs, so if=20
you know how to do that, feel free. If a program you are maintaining has =
such=20
support, you should try to keep it working.=20
<P><A name=3Dindex-function-prototypes-18></A>To support pre-standard C, =
instead=20
of writing function definitions in standard prototype form, <PRE =
class=3Dexample>     int
     foo (int x, int y)
     ...
</PRE>
<P class=3Dnoindent>write the definition in pre-standard style like =
this, <PRE class=3Dexample>     int
     foo (x, y)
          int x, y;
     ...
</PRE>
<P class=3Dnoindent>and use a separate declaration to specify the =
argument=20
prototype: <PRE class=3Dexample>     int foo (int, int);
</PRE>
<P>You need such a declaration anyway, in a header file, to get the =
benefit of=20
prototypes in all the files where the function is called. And once you =
have the=20
declaration, you normally lose nothing by writing the function =
definition in the=20
pre-standard style.=20
<P>This technique does not work for integer types narrower than=20
<CODE>int</CODE>. If you think of an argument as being of a type =
narrower than=20
<CODE>int</CODE>, declare it as <CODE>int</CODE> instead.=20
<P>There are a few special cases where this technique is hard to use. =
For=20
example, if a function argument needs to hold the system type=20
<CODE>dev_t</CODE>, you run into trouble, because <CODE>dev_t</CODE> is =
shorter=20
than <CODE>int</CODE> on some machines; but you cannot use =
<CODE>int</CODE>=20
instead, because <CODE>dev_t</CODE> is wider than <CODE>int</CODE> on =
some=20
machines. There is no type you can safely use on all machines in a =
non-standard=20
definition. The only way to support non-standard C and pass such an =
argument is=20
to check the width of <CODE>dev_t</CODE> using Autoconf and choose the =
argument=20
type accordingly. This may not be worth the trouble.=20
<P>In order to support pre-standard compilers that do not recognize =
prototypes,=20
you may want to use a preprocessor macro like this: <PRE =
class=3Dexample>     /* Declare the prototype for a general external =
function.  */
     #if defined (__STDC__) || defined (WINDOWSNT)
     #define P_(proto) proto
     #else
     #define P_(proto) ()
     #endif
</PRE>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DConditional-Compilation></A>Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Standard-C"=20
rel=3Dprevious>Standard C</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Design-Advice"=20
rel=3Dup>Design Advice</A> </DIV>
<H3 class=3Dsection>3.5 Conditional Compilation</H3>
<P>When supporting configuration options already known when building =
your=20
program we prefer using <CODE>if (... )</CODE> over conditional =
compilation, as=20
in the former case the compiler is able to perform more extensive =
checking of=20
all possible code paths.=20
<P>For example, please write <PRE class=3Dsmallexample>       if =
(HAS_FOO)
         ...
       else
         ...
</PRE>
<P class=3Dnoindent>instead of: <PRE class=3Dsmallexample>       #ifdef =
HAS_FOO
         ...
       #else
         ...
       #endif
</PRE>
<P>A modern compiler such as GCC will generate exactly the same code in =
both=20
cases, and we have been using similar techniques with good success in =
several=20
projects. Of course, the former method assumes that <CODE>HAS_FOO</CODE> =
is=20
defined as either 0 or 1.=20
<P>While this is not a silver bullet solving all portability problems, =
and is=20
not always appropriate, following this policy would have saved GCC =
developers=20
many hours, or even days, per year.=20
<P>In the case of function-like macros like =
<CODE>REVERSIBLE_CC_MODE</CODE> in=20
GCC which cannot be simply used in <CODE>if( ...)</CODE> statements, =
there is an=20
easy workaround. Simply introduce another macro=20
<CODE>HAS_REVERSIBLE_CC_MODE</CODE> as in the following example: <PRE =
class=3Dsmallexample>       #ifdef REVERSIBLE_CC_MODE
       #define HAS_REVERSIBLE_CC_MODE 1
       #else
       #define HAS_REVERSIBLE_CC_MODE 0
       #endif
</PRE>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DProgram-Behavior></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C"=20
rel=3Dnext>Writing C</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Design-Advice"=20
rel=3Dprevious>Design Advice</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Top" =
rel=3Dup>Top</A>=20
</DIV>
<H2 class=3Dchapter>4 Program Behavior for All Programs</H2>
<P>This chapter describes conventions for writing robust software. It =
also=20
describes general standards for error messages, the command line =
interface, and=20
how libraries should behave.=20
<UL class=3Dmenu>
  <LI><A accessKey=3D1=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Non_002dGNU-Stan=
dards">Non-GNU=20
  Standards</A>: We consider standards such as POSIX; we don't "obey" =
them.=20
  <LI><A accessKey=3D2=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics">Seman=
tics</A>:=20
  Writing robust programs=20
  <LI><A accessKey=3D3=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Libraries">Libra=
ries</A>:=20
  Library behavior=20
  <LI><A accessKey=3D4=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Errors">Errors</=
A>:=20
  Formatting error messages=20
  <LI><A accessKey=3D5=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#User-Interfaces"=
>User=20
  Interfaces</A>: Standards about interfaces generally=20
  <LI><A accessKey=3D6=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Graphical-Interf=
aces">Graphical=20
  Interfaces</A>: Standards for graphical interfaces=20
  <LI><A accessKey=3D7=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>: Standards for command line interfaces=20
  <LI><A accessKey=3D8=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Option-Table">Op=
tion=20
  Table</A>: Table of long options=20
  <LI><A accessKey=3D9=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Memory-Usage">Me=
mory=20
  Usage</A>: When and how to care about memory needs=20
  <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#File-Usage">File=
=20
  Usage</A>: Which files to use, and where </LI></UL>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DNon-GNU-Standards></A><A =
name=3DNon_002dGNU-Standards></A>Next:&nbsp;<A=20
accessKey=3Dn =
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics"=20
rel=3Dnext>Semantics</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
"=20
rel=3Dup>Program Behavior</A> </DIV>
<H3 class=3Dsection>4.1 Non-GNU Standards</H3>
<P>The GNU Project regards standards published by other organizations as =

suggestions, not orders. We consider those standards, but we do not =
=93obey=94 them.=20
In developing a GNU program, you should implement an outside standard's=20
specifications when that makes the GNU system better overall in an =
objective=20
sense. When it doesn't, you shouldn't.=20
<P>In most cases, following published standards is convenient for =
users=97it means=20
that their programs or scripts will work more portably. For instance, =
GCC=20
implements nearly all the features of Standard C as specified by that =
standard.=20
C program developers would be unhappy if it did not. And GNU utilities =
mostly=20
follow specifications of POSIX.2; shell script writers and users would =
be=20
unhappy if our programs were incompatible.=20
<P>But we do not follow either of these specifications rigidly, and =
there are=20
specific points on which we decided not to follow them, so as to make =
the GNU=20
system better for users.=20
<P>For instance, Standard C says that nearly all extensions to C are =
prohibited.=20
How silly! GCC implements many extensions, some of which were later =
adopted as=20
part of the standard. If you want these constructs to give an error =
message as=20
=93required=94 by the standard, you must specify `<SAMP><SPAN=20
class=3Dsamp>--pedantic</SPAN></SAMP>', which was implemented only so =
that we can=20
say =93GCC is a 100% implementation of the standard,=94 not because =
there is any=20
reason to actually use it.=20
<P>POSIX.2 specifies that `<SAMP><SPAN class=3Dsamp>df</SPAN></SAMP>' =
and=20
`<SAMP><SPAN class=3Dsamp>du</SPAN></SAMP>' must output sizes by default =
in units=20
of 512 bytes. What users want is units of 1k, so that is what we do by =
default.=20
If you want the ridiculous behavior =93required=94 by POSIX, you must =
set the=20
environment variable `<SAMP><SPAN =
class=3Dsamp>POSIXLY_CORRECT</SPAN></SAMP>'=20
(which was originally going to be named `<SAMP><SPAN=20
class=3Dsamp>POSIX_ME_HARDER</SPAN></SAMP>').=20
<P>GNU utilities also depart from the letter of the POSIX.2 =
specification when=20
they support long-named command-line options, and intermixing options =
with=20
ordinary arguments. This minor incompatibility with POSIX is never a =
problem in=20
practice, and it is very useful.=20
<P>In particular, don't reject a new feature, or remove an old one, =
merely=20
because a standard says it is =93forbidden=94 or =93deprecated.=94=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DSemantics></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Libraries"=20
rel=3Dnext>Libraries</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Non_002dGNU-Stan=
dards"=20
rel=3Dprevious>Non-GNU Standards</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
"=20
rel=3Dup>Program Behavior</A> </DIV>
<H3 class=3Dsection>4.2 Writing Robust Programs</H3>
<P><A name=3Dindex-arbitrary-limits-on-data-19></A>Avoid arbitrary =
limits on the=20
length or number of <EM>any</EM> data structure, including file names, =
lines,=20
files, and symbols, by allocating all data structures dynamically. In =
most Unix=20
utilities, =93long lines are silently truncated=94. This is not =
acceptable in a GNU=20
utility.=20
<P><A name=3Dindex-g_t_0040code_007bNUL_007d-characters-20></A>Utilities =
reading=20
files should not drop NUL characters, or any other nonprinting =
characters=20
<EM>including those with codes above 0177</EM>. The only sensible =
exceptions=20
would be utilities specifically intended for interface to certain types =
of=20
terminals or printers that can't handle those characters. Whenever =
possible, try=20
to make programs work properly with sequences of bytes that represent =
multibyte=20
characters, using encodings such as UTF-8 and others.=20
<P><A name=3Dindex-error-messages-21></A>Check every system call for an =
error=20
return, unless you know you wish to ignore errors. Include the system =
error text=20
(from <CODE>perror</CODE> or equivalent) in <EM>every</EM> error message =

resulting from a failing system call, as well as the name of the file if =
any and=20
the name of the utility. Just =93cannot open foo.c=94 or =93stat =
failed=94 is not=20
sufficient.=20
<P><A name=3Dindex-g_t_0040code_007bmalloc_007d-return-value-22></A><A=20
name=3Dindex-memory-allocation-failure-23></A>Check every call to=20
<CODE>malloc</CODE> or <CODE>realloc</CODE> to see if it returned zero. =
Check=20
<CODE>realloc</CODE> even if you are making the block smaller; in a =
system that=20
rounds block sizes to a power of 2, <CODE>realloc</CODE> may get a =
different=20
block if you ask for less space.=20
<P>In Unix, <CODE>realloc</CODE> can destroy the storage block if it =
returns=20
zero. GNU <CODE>realloc</CODE> does not have this bug: if it fails, the =
original=20
block is unchanged. Feel free to assume the bug is fixed. If you wish to =
run=20
your program on Unix, and wish to avoid lossage in this case, you can =
use the=20
GNU <CODE>malloc</CODE>.=20
<P>You must expect <CODE>free</CODE> to alter the contents of the block =
that was=20
freed. Anything you want to fetch from the block, you must fetch before =
calling=20
<CODE>free</CODE>.=20
<P>If <CODE>malloc</CODE> fails in a noninteractive program, make that a =
fatal=20
error. In an interactive program (one that reads commands from the =
user), it is=20
better to abort the command and return to the command reader loop. This =
allows=20
the user to kill other processes to free up virtual memory, and then try =
the=20
command again.=20
<P><A name=3Dindex-command_002dline-arguments_002c-decoding-24></A>Use=20
<CODE>getopt_long</CODE> to decode arguments, unless the argument syntax =
makes=20
this unreasonable.=20
<P>When static storage is to be written in during program execution, use =

explicit C code to initialize it. Reserve C initialized declarations for =
data=20
that will not be changed. <!-- ADR: why? -->
<P>Try to avoid low-level interfaces to obscure Unix data structures =
(such as=20
file directories, utmp, or the layout of kernel memory), since these are =
less=20
likely to work compatibly. If you need to find all the files in a =
directory, use=20
<CODE>readdir</CODE> or some other high-level interface. These are =
supported=20
compatibly by GNU.=20
<P><A name=3Dindex-signal-handling-25></A>The preferred signal handling =
facilities=20
are the BSD variant of <CODE>signal</CODE>, and the <SPAN =
class=3Dsc>posix</SPAN>=20
<CODE>sigaction</CODE> function; the alternative USG <CODE>signal</CODE> =

interface is an inferior design.=20
<P>Nowadays, using the <SPAN class=3Dsc>posix</SPAN> signal functions =
may be the=20
easiest way to make a program portable. If you use <CODE>signal</CODE>, =
then on=20
GNU/Linux systems running GNU libc version 1, you should include =
<SAMP><SPAN=20
class=3Dfile>bsd/signal.h</SPAN></SAMP> instead of <SAMP><SPAN=20
class=3Dfile>signal.h</SPAN></SAMP>, so as to get BSD behavior. It is up =
to you=20
whether to support systems where <CODE>signal</CODE> has only the USG =
behavior,=20
or give up on them.=20
<P><A name=3Dindex-impossible-conditions-26></A>In error checks that =
detect=20
=93impossible=94 conditions, just abort. There is usually no point in =
printing any=20
message. These checks indicate the existence of bugs. Whoever wants to =
fix the=20
bugs will have to read the source code and run a debugger. So explain =
the=20
problem with comments in the source. The relevant data will be in =
variables,=20
which are easy to examine with the debugger, so there is no point moving =
them=20
elsewhere.=20
<P>Do not use a count of errors as the exit status for a program. =
<EM>That does=20
not work</EM>, because exit status values are limited to 8 bits (0 =
through 255).=20
A single run of the program might have 256 errors; if you try to return =
256 as=20
the exit status, the parent process will see 0 as the status, and it =
will appear=20
that the program succeeded.=20
<P><A name=3Dindex-temporary-files-27></A><A=20
name=3Dindex-g_t_0040code_007bTMPDIR_007d-environment-variable-28></A>If =
you make=20
temporary files, check the <CODE>TMPDIR</CODE> environment variable; if =
that=20
variable is defined, use the specified directory instead of <SAMP><SPAN=20
class=3Dfile>/tmp</SPAN></SAMP>.=20
<P>In addition, be aware that there is a possible security problem when =
creating=20
temporary files in world-writable directories. In C, you can avoid this =
problem=20
by creating temporary files in this manner: <PRE class=3Dexample>     fd =
=3D open(filename, O_WRONLY | O_CREAT | O_EXCL, 0600);
</PRE>
<P class=3Dnoindent>or by using the <CODE>mkstemps</CODE> function from =
libiberty.=20

<P>In bash, use <CODE>set -C</CODE> to avoid this problem.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DLibraries></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Errors"=20
rel=3Dnext>Errors</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics"=20
rel=3Dprevious>Semantics</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
"=20
rel=3Dup>Program Behavior</A> </DIV>
<H3 class=3Dsection>4.3 Library Behavior</H3>
<P><A name=3Dindex-libraries-29></A>Try to make library functions =
reentrant. If=20
they need to do dynamic storage allocation, at least try to avoid any=20
nonreentrancy aside from that of <CODE>malloc</CODE> itself.=20
<P>Here are certain name conventions for libraries, to avoid name =
conflicts.=20
<P>Choose a name prefix for the library, more than two characters long. =
All=20
external function and variable names should start with this prefix. In =
addition,=20
there should only be one of these in any given library member. This =
usually=20
means putting each one in a separate source file.=20
<P>An exception can be made when two external symbols are always used =
together,=20
so that no reasonable program could use one without the other; then they =
can=20
both go in the same file.=20
<P>External symbols that are not documented entry points for the user =
should=20
have names beginning with `<SAMP><SPAN class=3Dsamp>_</SPAN></SAMP>'. =
The=20
`<SAMP><SPAN class=3Dsamp>_</SPAN></SAMP>' should be followed by the =
chosen name=20
prefix for the library, to prevent collisions with other libraries. =
These can go=20
in the same files with user entry points if you like.=20
<P>Static functions and variables can be used as you like and need not =
fit any=20
naming convention.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DErrors></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#User-Interfaces"=
=20
rel=3Dnext>User Interfaces</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Libraries"=20
rel=3Dprevious>Libraries</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
"=20
rel=3Dup>Program Behavior</A> </DIV>
<H3 class=3Dsection>4.4 Formatting Error Messages</H3>
<P><A name=3Dindex-formatting-error-messages-30></A><A=20
name=3Dindex-error-messages_002c-formatting-31></A>Error messages from =
compilers=20
should look like this: <PRE class=3Dexample>     =
<VAR>source-file-name</VAR>:<VAR>lineno</VAR>: <VAR>message</VAR>
</PRE>
<P class=3Dnoindent>If you want to mention the column number, use one of =
these=20
formats: <PRE class=3Dexample>     =
<VAR>source-file-name</VAR>:<VAR>lineno</VAR>:<VAR>column</VAR>: =
<VAR>message</VAR>
     <VAR>source-file-name</VAR>:<VAR>lineno</VAR>.<VAR>column</VAR>: =
<VAR>message</VAR>
    =20
</PRE>
<P class=3Dnoindent>Line numbers should start from 1 at the beginning of =
the file,=20
and column numbers should start from 1 at the beginning of the line. =
(Both of=20
these conventions are chosen for compatibility.) Calculate column =
numbers=20
assuming that space and all ASCII printing characters have equal width, =
and=20
assuming tab stops every 8 columns.=20
<P>The error message can also give both the starting and ending =
positions of the=20
erroneous text. There are several formats so that you can avoid =
redundant=20
information such as a duplicate line number. Here are the possible =
formats: <PRE class=3Dexample>     =
<VAR>source-file-name</VAR>:<VAR>lineno-1</VAR>.<VAR>column-1</VAR>-<VAR>=
lineno-2</VAR>.<VAR>column-2</VAR>: <VAR>message</VAR>
     =
<VAR>source-file-name</VAR>:<VAR>lineno-1</VAR>.<VAR>column-1</VAR>-<VAR>=
column-2</VAR>: <VAR>message</VAR>
     =
<VAR>source-file-name</VAR>:<VAR>lineno-1</VAR>-<VAR>lineno-2</VAR>: =
<VAR>message</VAR>
</PRE>
<P class=3Dnoindent>When an error is spread over several files, you can =
use this=20
format: <PRE class=3Dexample>     =
<VAR>file-1</VAR>:<VAR>lineno-1</VAR>.<VAR>column-1</VAR>-<VAR>file-2</VA=
R>:<VAR>lineno-2</VAR>.<VAR>column-2</VAR>: <VAR>message</VAR>
</PRE>
<P>Error messages from other noninteractive programs should look like =
this: <PRE class=3Dexample>     =
<VAR>program</VAR>:<VAR>source-file-name</VAR>:<VAR>lineno</VAR>: =
<VAR>message</VAR>
</PRE>
<P class=3Dnoindent>when there is an appropriate source file, or like =
this: <PRE class=3Dexample>     <VAR>program</VAR>: <VAR>message</VAR>
</PRE>
<P class=3Dnoindent>when there is no relevant source file.=20
<P>If you want to mention the column number, use this format: <PRE =
class=3Dexample>     =
<VAR>program</VAR>:<VAR>source-file-name</VAR>:<VAR>lineno</VAR>:<VAR>col=
umn</VAR>: <VAR>message</VAR>
</PRE>
<P>In an interactive program (one that is reading commands from a =
terminal), it=20
is better not to include the program name in an error message. The place =
to=20
indicate which program is running is in the prompt or with the screen =
layout.=20
(When the same program runs with input from a source other than a =
terminal, it=20
is not interactive and would do best to print error messages using the=20
noninteractive style.)=20
<P>The string <VAR>message</VAR> should not begin with a capital letter =
when it=20
follows a program name and/or file name, because that isn't the =
beginning of a=20
sentence. (The sentence conceptually starts at the beginning of the =
line.) Also,=20
it should not end with a period.=20
<P>Error messages from interactive programs, and other messages such as =
usage=20
messages, should start with a capital letter. But they should not end =
with a=20
period.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DUser-Interfaces></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Graphical-Interf=
aces"=20
rel=3Dnext>Graphical Interfaces</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Errors"=20
rel=3Dprevious>Errors</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
"=20
rel=3Dup>Program Behavior</A> </DIV>
<H3 class=3Dsection>4.5 Standards for Interfaces Generally</H3>
<P><A name=3Dindex-program-name-and-its-behavior-32></A><A=20
name=3Dindex-behavior_002c-dependent-on-program_0027s-name-33></A>Please =
don't=20
make the behavior of a utility depend on the name used to invoke it. It =
is=20
useful sometimes to make a link to a utility with a different name, and =
that=20
should not change what it does.=20
<P>Instead, use a run time option or a compilation switch or both to =
select=20
among the alternate behaviors.=20
<P><A =
name=3Dindex-output-device-and-program_0027s-behavior-34></A>Likewise,=20
please don't make the behavior of the program depend on the type of =
output=20
device it is used with. Device independence is an important principle of =
the=20
system's design; do not compromise it merely to save someone from typing =
an=20
option now and then. (Variation in error message syntax when using a =
terminal is=20
ok, because that is a side issue that people do not depend on.)=20
<P>If you think one behavior is most useful when the output is to a =
terminal,=20
and another is most useful when the output is a file or a pipe, then it =
is=20
usually best to make the default behavior the one that is useful with =
output to=20
a terminal, and have an option for the other behavior.=20
<P>Compatibility requires certain programs to depend on the type of =
output=20
device. It would be disastrous if <CODE>ls</CODE> or <CODE>sh</CODE> did =
not do=20
so in the way all users expect. In some of these cases, we supplement =
the=20
program with a preferred alternate version that does not depend on the =
output=20
device type. For example, we provide a <CODE>dir</CODE> program much =
like=20
<CODE>ls</CODE> except that its default output format is always =
multi-column=20
format.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DGraphical-Interfaces></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces"=20
rel=3Dnext>Command-Line Interfaces</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#User-Interfaces"=
=20
rel=3Dprevious>User Interfaces</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
"=20
rel=3Dup>Program Behavior</A> </DIV>
<H3 class=3Dsection>4.6 Standards for Graphical Interfaces</H3>
<P><A name=3Dindex-graphical-user-interface-35></A><A=20
name=3Dindex-gtk_002b-36></A>When you write a program that provides a =
graphical=20
user interface, please make it work with X Windows and the GTK+ toolkit =
unless=20
the functionality specifically requires some alternative (for example,=20
=93displaying jpeg images while in console mode=94).=20
<P>In addition, please provide a command-line interface to control the=20
functionality. (In many cases, the graphical user interface can be a =
separate=20
program which invokes the command-line program.) This is so that the =
same jobs=20
can be done from scripts.=20
<P><A name=3Dindex-corba-37></A><A name=3Dindex-gnome-38></A>Please also =
consider=20
providing a CORBA interface (for use from GNOME), a library interface =
(for use=20
from C), and perhaps a keyboard-driven console interface (for use by =
users from=20
console mode). Once you are doing the work to provide the functionality =
and the=20
graphical interface, these won't be much extra work.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DCommand-Line-Interfaces></A><A=20
name=3DCommand_002dLine-Interfaces></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Option-Table"=20
rel=3Dnext>Option Table</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Graphical-Interf=
aces"=20
rel=3Dprevious>Graphical Interfaces</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
"=20
rel=3Dup>Program Behavior</A> </DIV>
<H3 class=3Dsection>4.7 Standards for Command Line Interfaces</H3>
<P><A name=3Dindex-command_002dline-interface-39></A><A=20
name=3Dindex-getopt-40></A>It is a good idea to follow the <SPAN=20
class=3Dsc>posix</SPAN> guidelines for the command-line options of a =
program. The=20
easiest way to do this is to use <CODE>getopt</CODE> to parse them. Note =
that=20
the GNU version of <CODE>getopt</CODE> will normally permit options =
anywhere=20
among the arguments unless the special argument `<SAMP><SPAN=20
class=3Dsamp>--</SPAN></SAMP>' is used. This is not what <SPAN=20
class=3Dsc>posix</SPAN> specifies; it is a GNU extension.=20
<P><A name=3Dindex-long_002dnamed-options-41></A>Please define =
long-named options=20
that are equivalent to the single-letter Unix-style options. We hope to =
make GNU=20
more user friendly this way. This is easy to do with the GNU function=20
<CODE>getopt_long</CODE>.=20
<P>One of the advantages of long-named options is that they can be =
consistent=20
from program to program. For example, users should be able to expect the =

=93verbose=94 option of any GNU program which has one, to be spelled =
precisely=20
`<SAMP><SPAN class=3Dsamp>--verbose</SPAN></SAMP>'. To achieve this =
uniformity,=20
look at the table of common long-option names when you choose the option =
names=20
for your program (see <A=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Option-Table">Op=
tion=20
Table</A>).=20
<P>It is usually a good idea for file names given as ordinary arguments =
to be=20
input files only; any output files would be specified using options =
(preferably=20
`<SAMP><SPAN class=3Dsamp>-o</SPAN></SAMP>' or `<SAMP><SPAN=20
class=3Dsamp>--output</SPAN></SAMP>'). Even if you allow an output file =
name as an=20
ordinary argument for compatibility, try to provide an option as another =
way to=20
specify it. This will lead to more consistency among GNU utilities, and =
fewer=20
idiosyncrasies for users to remember.=20
<P><A name=3Dindex-standard-command_002dline-options-42></A><A=20
name=3Dindex-options_002c-standard-command_002dline-43></A><A=20
name=3Dindex-CGI-programs_002c-standard-options-for-44></A><A=20
name=3Dindex-PATH_005fINFO_002c-specifying-standard-options-as-45></A>All=
 programs=20
should support two standard options: `<SAMP><SPAN=20
class=3Dsamp>--version</SPAN></SAMP>' and `<SAMP><SPAN=20
class=3Dsamp>--help</SPAN></SAMP>'. CGI programs should accept these as=20
command-line options, and also if given as the <SAMP><SPAN=20
class=3Denv>PATH_INFO</SPAN></SAMP>; for instance, visiting <A=20
href=3D"http://example.org/p.cgi/--help">http://example.org/p.cgi/--help<=
/A> in a=20
browser should output the same information as invoking `<SAMP><SPAN=20
class=3Dsamp>p.cgi --help</SPAN></SAMP>' from the command line. <A=20
name=3Dindex-g_t_0040samp_007b_002d_002dversion_007d-option-46></A>
<DL>
  <DT><CODE>--version</CODE>
  <DD>This option should direct the program to print information about =
its name,=20
  version, origin and legal status, all on standard output, and then =
exit=20
  successfully. Other options and arguments should be ignored once this =
is seen,=20
  and the program should not perform its normal function.=20
  <P><A name=3Dindex-canonical-name-of-a-program-47></A><A=20
  name=3Dindex-program_0027s-canonical-name-48></A>The first line is =
meant to be=20
  easy for a program to parse; the version number proper starts after =
the last=20
  space. In addition, it contains the canonical name for this program, =
in this=20
  format: <PRE class=3Dexample>          GNU Emacs 19.30
     </PRE>
  <P class=3Dnoindent>The program's name should be a constant string;=20
  <EM>don't</EM> compute it from <CODE>argv[0]</CODE>. The idea is to =
state the=20
  standard or canonical name for the program, not its file name. There =
are other=20
  ways to find out the precise file name where a command is found in=20
  <CODE>PATH</CODE>.=20
  <P>If the program is a subsidiary part of a larger package, mention =
the=20
  package name in parentheses, like this: <PRE class=3Dexample>          =
emacsserver (GNU Emacs) 19.30
     </PRE>
  <P class=3Dnoindent>If the package has a version number which is =
different from=20
  this program's version number, you can mention the package version =
number just=20
  before the close-parenthesis.=20
  <P>If you <STRONG>need</STRONG> to mention the version numbers of =
libraries=20
  which are distributed separately from the package which contains this =
program,=20
  you can do so by printing an additional line of version info for each =
library=20
  you want to mention. Use the same format for these lines as for the =
first=20
  line.=20
  <P>Please do not mention all of the libraries that the program uses =
=93just for=20
  completeness=94=97that would produce a lot of unhelpful clutter. =
Please mention=20
  library version numbers only if you find in practice that they are =
very=20
  important to you in debugging.=20
  <P>The following line, after the version number line or lines, should =
be a=20
  copyright notice. If more than one copyright notice is called for, put =
each on=20
  a separate line.=20
  <P>Next should follow a brief statement that the program is free =
software, and=20
  that users are free to copy and change it on certain conditions. If =
the=20
  program is covered by the GNU GPL, say so here. Also mention that =
there is no=20
  warranty, to the extent permitted by law.=20
  <P>It is ok to finish the output with a list of the major authors of =
the=20
  program, as a way of giving credit.=20
  <P>Here's an example of output that follows these rules: <PRE =
class=3Dsmallexample>          GNU Emacs 19.34.5
          Copyright (C) 1996 Free Software Foundation, Inc.
          GNU Emacs comes with NO WARRANTY,
          to the extent permitted by law.
          You may redistribute copies of GNU Emacs
          under the terms of the GNU General Public License.
          For more information about these matters,
          see the files named COPYING.
     </PRE>
  <P>You should adapt this to your program, of course, filling in the =
proper=20
  year, copyright holder, name of program, and the references to =
distribution=20
  terms, and changing the rest of the wording as necessary.=20
  <P>This copyright notice only needs to mention the most recent year in =
which=20
  changes were made=97there's no need to list the years for previous =
versions'=20
  changes. You don't have to mention the name of the program in these =
notices,=20
  if that is inconvenient, since it appeared in the first line. (The =
rules are=20
  different for copyright notices in source files; see <A=20
  =
href=3D"http://www.gnu.org/prep/standards/maintain.html#Copyright-Notices=
">Copyright=20
  Notices</A>.)=20
  <P>Translations of the above lines must preserve the validity of the =
copyright=20
  notices (see <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Internationaliza=
tion">Internationalization</A>).=20
  If the translation's character set supports it, the `<SAMP><SPAN=20
  class=3Dsamp>(C)</SPAN></SAMP>' should be replaced with the copyright =
symbol, as=20
  follows:=20
  <P>=A9=20
  <P>Write the word =93Copyright=94 exactly like that, in English. Do =
not translate=20
  it into another language. International treaties recognize the English =
word=20
  =93Copyright=94; translations into other languages do not have legal =
significance.=20

  <P><A =
name=3Dindex-g_t_0040samp_007b_002d_002dhelp_007d-option-49></A><BR></P>
  <DT><CODE>--help</CODE>
  <DD>This option should output brief documentation for how to invoke =
the=20
  program, on standard output, then exit successfully. Other options and =

  arguments should be ignored once this is seen, and the program should =
not=20
  perform its normal function.=20
  <P><A name=3Dindex-address-for-bug-reports-50></A><A=20
  name=3Dindex-bug-reports-51></A>Near the end of the `<SAMP><SPAN=20
  class=3Dsamp>--help</SPAN></SAMP>' option's output there should be a =
line that=20
  says where to mail bug reports. It should have this format: <PRE =
class=3Dexample>          Report bugs to <VAR>mailing-address</VAR>.
     </PRE></DD></DL>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DOption-Table></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Memory-Usage"=20
rel=3Dnext>Memory Usage</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces"=20
rel=3Dprevious>Command-Line Interfaces</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
"=20
rel=3Dup>Program Behavior</A> </DIV>
<H3 class=3Dsection>4.8 Table of Long Options</H3>
<P><A name=3Dindex-long-option-names-52></A><A=20
name=3Dindex-table-of-long-options-53></A>Here is a table of long =
options used by=20
GNU programs. It is surely incomplete, but we aim to list all the =
options that a=20
new program might want to be compatible with. If you use names not =
already in=20
the table, please send <A=20
href=3D"mailto:bug-standards@gnu.org">bug-standards@gnu.org</A> a list =
of them,=20
with their meanings, so we can update the table. <!-- Please leave =
newlines between items in this table; it's much easier --><!-- to update =
when it isn't completely squashed together and unreadable. --><!-- When =
there is more than one short option for a long option name, put --><!-- =
a semicolon between the lists of the programs that use them, not a =
--><!-- period.   -friedman -->
<DL>
  <DT>`<SAMP><SPAN class=3Dsamp>after-date</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-N</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>all</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-a</SPAN></SAMP>' in <CODE>du</CODE>,=20
  <CODE>ls</CODE>, <CODE>nm</CODE>, <CODE>stty</CODE>, =
<CODE>uname</CODE>, and=20
  <CODE>unexpand</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>all-text</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-a</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>almost-all</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-A</SPAN></SAMP>' in <CODE>ls</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>append</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-a</SPAN></SAMP>' in <CODE>etags</CODE>, =

  <CODE>tee</CODE>, <CODE>time</CODE>; `<SAMP><SPAN =
class=3Dsamp>-r</SPAN></SAMP>'=20
  in <CODE>tar</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>archive</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-a</SPAN></SAMP>' in <CODE>cp</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>archive-name</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>arglength</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in <CODE>m4</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ascii</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-a</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>assign</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-v</SPAN></SAMP>' in <CODE>gawk</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>assume-new</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-W</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>assume-old</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-o</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>auto-check</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-a</SPAN></SAMP>' in =
<CODE>recode</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>auto-pager</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-a</SPAN></SAMP>' in <CODE>wdiff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>auto-reference</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-A</SPAN></SAMP>' in <CODE>ptx</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>avoid-wraps</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in <CODE>wdiff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>background</SPAN></SAMP>'
  <DD>For server programs, run in the background. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>backward-search</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-B</SPAN></SAMP>' in <CODE>ctags</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>basename</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-f</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>batch</SPAN></SAMP>'
  <DD>Used in GDB. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>baud</SPAN></SAMP>'
  <DD>Used in GDB. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>before</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-b</SPAN></SAMP>' in <CODE>tac</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>binary</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-b</SPAN></SAMP>' in <CODE>cpio</CODE> =
and=20
  <CODE>diff</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>bits-per-code</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-b</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>block-size</SPAN></SAMP>'
  <DD>Used in <CODE>cpio</CODE> and <CODE>tar</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>blocks</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-b</SPAN></SAMP>' in <CODE>head</CODE> =
and=20
  <CODE>tail</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>break-file</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-b</SPAN></SAMP>' in <CODE>ptx</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>brief</SPAN></SAMP>'
  <DD>Used in various programs to make output shorter. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>bytes</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-c</SPAN></SAMP>' in <CODE>head</CODE>,=20
  <CODE>split</CODE>, and <CODE>tail</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>c</SPAN><TT>++</TT></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-C</SPAN></SAMP>' in <CODE>etags</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>catenate</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-A</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>cd</SPAN></SAMP>'
  <DD>Used in various programs to specify the directory to use. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>changes</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-c</SPAN></SAMP>' in <CODE>chgrp</CODE> =
and=20
  <CODE>chown</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>classify</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-F</SPAN></SAMP>' in <CODE>ls</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>colons</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-c</SPAN></SAMP>' in =
<CODE>recode</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>command</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-c</SPAN></SAMP>' in <CODE>su</CODE>; =
`<SAMP><SPAN=20
  class=3Dsamp>-x</SPAN></SAMP>' in GDB. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>compare</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-d</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>compat</SPAN></SAMP>'
  <DD>Used in <CODE>gawk</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>compress</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-Z</SPAN></SAMP>' in <CODE>tar</CODE> =
and=20
  <CODE>shar</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>concatenate</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-A</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>confirmation</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-w</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>context</SPAN></SAMP>'
  <DD>Used in <CODE>diff</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>copyleft</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-W copyleft</SPAN></SAMP>' in =
<CODE>gawk</CODE>.=20
  <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>copyright</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-C</SPAN></SAMP>' in <CODE>ptx</CODE>,=20
  <CODE>recode</CODE>, and <CODE>wdiff</CODE>; `<SAMP><SPAN =
class=3Dsamp>-W=20
  copyright</SPAN></SAMP>' in <CODE>gawk</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>core</SPAN></SAMP>'
  <DD>Used in GDB. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>count</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-q</SPAN></SAMP>' in <CODE>who</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>count-links</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in <CODE>du</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>create</SPAN></SAMP>'
  <DD>Used in <CODE>tar</CODE> and <CODE>cpio</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>cut-mark</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-c</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>cxref</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-x</SPAN></SAMP>' in <CODE>ctags</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>date</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-d</SPAN></SAMP>' in <CODE>touch</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>debug</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-d</SPAN></SAMP>' in Make and =
<CODE>m4</CODE>;=20
  `<SAMP><SPAN class=3Dsamp>-t</SPAN></SAMP>' in Bison. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>define</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-D</SPAN></SAMP>' in <CODE>m4</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>defines</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-d</SPAN></SAMP>' in Bison and =
<CODE>ctags</CODE>.=20
  <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>delete</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-D</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>dereference</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-L</SPAN></SAMP>' in <CODE>chgrp</CODE>, =

  <CODE>chown</CODE>, <CODE>cpio</CODE>, <CODE>du</CODE>, =
<CODE>ls</CODE>, and=20
  <CODE>tar</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>dereference-args</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-D</SPAN></SAMP>' in <CODE>du</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>device</SPAN></SAMP>'
  <DD>Specify an I/O device (special file name). <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>diacritics</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-d</SPAN></SAMP>' in =
<CODE>recode</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>dictionary-order</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-d</SPAN></SAMP>' in <CODE>look</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>diff</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-d</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>digits</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in =
<CODE>csplit</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>directory</SPAN></SAMP>'
  <DD>Specify the directory to use, in various programs. In =
<CODE>ls</CODE>, it=20
  means to show directories themselves rather than their contents. In=20
  <CODE>rm</CODE> and <CODE>ln</CODE>, it means to not treat links to=20
  directories specially. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>discard-all</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-x</SPAN></SAMP>' in <CODE>strip</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>discard-locals</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-X</SPAN></SAMP>' in <CODE>strip</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>dry-run</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ed</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-e</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>elide-empty-files</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-z</SPAN></SAMP>' in =
<CODE>csplit</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>end-delete</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-x</SPAN></SAMP>' in <CODE>wdiff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>end-insert</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-z</SPAN></SAMP>' in <CODE>wdiff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>entire-new-file</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-N</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>environment-overrides</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-e</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>eof</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-e</SPAN></SAMP>' in <CODE>xargs</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>epoch</SPAN></SAMP>'
  <DD>Used in GDB. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>error-limit</SPAN></SAMP>'
  <DD>Used in <CODE>makeinfo</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>error-output</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-o</SPAN></SAMP>' in <CODE>m4</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>escape</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-b</SPAN></SAMP>' in <CODE>ls</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>exclude-from</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-X</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>exec</SPAN></SAMP>'
  <DD>Used in GDB. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>exit</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-x</SPAN></SAMP>' in <CODE>xargs</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>exit-0</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-e</SPAN></SAMP>' in =
<CODE>unshar</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>expand-tabs</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-t</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>expression</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-e</SPAN></SAMP>' in <CODE>sed</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>extern-only</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-g</SPAN></SAMP>' in <CODE>nm</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>extract</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-i</SPAN></SAMP>' in <CODE>cpio</CODE>;=20
  `<SAMP><SPAN class=3Dsamp>-x</SPAN></SAMP>' in <CODE>tar</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>faces</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-f</SPAN></SAMP>' in =
<CODE>finger</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>fast</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-f</SPAN></SAMP>' in <CODE>su</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>fatal-warnings</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-E</SPAN></SAMP>' in <CODE>m4</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>file</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-f</SPAN></SAMP>' in <CODE>info</CODE>,=20
  <CODE>gawk</CODE>, Make, <CODE>mt</CODE>, and <CODE>tar</CODE>; =
`<SAMP><SPAN=20
  class=3Dsamp>-n</SPAN></SAMP>' in <CODE>sed</CODE>; `<SAMP><SPAN=20
  class=3Dsamp>-r</SPAN></SAMP>' in <CODE>touch</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>field-separator</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-F</SPAN></SAMP>' in <CODE>gawk</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>file-prefix</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-b</SPAN></SAMP>' in Bison. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>file-type</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-F</SPAN></SAMP>' in <CODE>ls</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>files-from</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-T</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>fill-column</SPAN></SAMP>'
  <DD>Used in <CODE>makeinfo</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>flag-truncation</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-F</SPAN></SAMP>' in <CODE>ptx</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>fixed-output-files</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-y</SPAN></SAMP>' in Bison. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>follow</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-f</SPAN></SAMP>' in <CODE>tail</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>footnote-style</SPAN></SAMP>'
  <DD>Used in <CODE>makeinfo</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>force</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-f</SPAN></SAMP>' in <CODE>cp</CODE>,=20
  <CODE>ln</CODE>, <CODE>mv</CODE>, and <CODE>rm</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>force-prefix</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-F</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>foreground</SPAN></SAMP>'
  <DD>For server programs, run in the foreground; in other words, don't =
do=20
  anything special to run the server in the background. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>format</SPAN></SAMP>'
  <DD>Used in <CODE>ls</CODE>, <CODE>time</CODE>, and <CODE>ptx</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>freeze-state</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-F</SPAN></SAMP>' in <CODE>m4</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>fullname</SPAN></SAMP>'
  <DD>Used in GDB. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>gap-size</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-g</SPAN></SAMP>' in <CODE>ptx</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>get</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-x</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>graphic</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-i</SPAN></SAMP>' in <CODE>ul</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>graphics</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-g</SPAN></SAMP>' in =
<CODE>recode</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>group</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-g</SPAN></SAMP>' in =
<CODE>install</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>gzip</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-z</SPAN></SAMP>' in <CODE>tar</CODE> =
and=20
  <CODE>shar</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>hashsize</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-H</SPAN></SAMP>' in <CODE>m4</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>header</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-h</SPAN></SAMP>' in =
<CODE>objdump</CODE> and=20
  <CODE>recode</CODE> <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>heading</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-H</SPAN></SAMP>' in <CODE>who</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>help</SPAN></SAMP>'
  <DD>Used to ask for brief usage information. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>here-delimiter</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-d</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>hide-control-chars</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-q</SPAN></SAMP>' in <CODE>ls</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>html</SPAN></SAMP>'
  <DD>In <CODE>makeinfo</CODE>, output HTML. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>idle</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-u</SPAN></SAMP>' in <CODE>who</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ifdef</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-D</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ignore</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-I</SPAN></SAMP>' in <CODE>ls</CODE>; =
`<SAMP><SPAN=20
  class=3Dsamp>-x</SPAN></SAMP>' in <CODE>recode</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ignore-all-space</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-w</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ignore-backups</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-B</SPAN></SAMP>' in <CODE>ls</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ignore-blank-lines</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-B</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ignore-case</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-f</SPAN></SAMP>' in <CODE>look</CODE> =
and=20
  <CODE>ptx</CODE>; `<SAMP><SPAN class=3Dsamp>-i</SPAN></SAMP>' in=20
  <CODE>diff</CODE> and <CODE>wdiff</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ignore-errors</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-i</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ignore-file</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-i</SPAN></SAMP>' in <CODE>ptx</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ignore-indentation</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-I</SPAN></SAMP>' in <CODE>etags</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ignore-init-file</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-f</SPAN></SAMP>' in Oleo. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ignore-interrupts</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-i</SPAN></SAMP>' in <CODE>tee</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ignore-matching-lines</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-I</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ignore-space-change</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-b</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>ignore-zeros</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-i</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>include</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-i</SPAN></SAMP>' in <CODE>etags</CODE>; =

  `<SAMP><SPAN class=3Dsamp>-I</SPAN></SAMP>' in <CODE>m4</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>include-dir</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-I</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>incremental</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-G</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>info</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-i</SPAN></SAMP>', `<SAMP><SPAN=20
  class=3Dsamp>-l</SPAN></SAMP>', and `<SAMP><SPAN =
class=3Dsamp>-m</SPAN></SAMP>' in=20
  Finger. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>init-file</SPAN></SAMP>'
  <DD>In some programs, specify the name of the file to read as the =
user's init=20
  file. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>initial</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-i</SPAN></SAMP>' in =
<CODE>expand</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>initial-tab</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-T</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>inode</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-i</SPAN></SAMP>' in <CODE>ls</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>interactive</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-i</SPAN></SAMP>' in <CODE>cp</CODE>,=20
  <CODE>ln</CODE>, <CODE>mv</CODE>, <CODE>rm</CODE>; `<SAMP><SPAN=20
  class=3Dsamp>-e</SPAN></SAMP>' in <CODE>m4</CODE>; `<SAMP><SPAN=20
  class=3Dsamp>-p</SPAN></SAMP>' in <CODE>xargs</CODE>; `<SAMP><SPAN=20
  class=3Dsamp>-w</SPAN></SAMP>' in <CODE>tar</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>intermix-type</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-p</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>iso-8601</SPAN></SAMP>'
  <DD>Used in <CODE>date</CODE> <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>jobs</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-j</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>just-print</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>keep-going</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-k</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>keep-files</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-k</SPAN></SAMP>' in =
<CODE>csplit</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>kilobytes</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-k</SPAN></SAMP>' in <CODE>du</CODE> and =

  <CODE>ls</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>language</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in <CODE>etags</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>less-mode</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in <CODE>wdiff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>level-for-gzip</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-g</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>line-bytes</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-C</SPAN></SAMP>' in <CODE>split</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>lines</SPAN></SAMP>'
  <DD>Used in <CODE>split</CODE>, <CODE>head</CODE>, and =
<CODE>tail</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>link</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in <CODE>cpio</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>lint</SPAN></SAMP>'
  <DT>`<SAMP><SPAN class=3Dsamp>lint-old</SPAN></SAMP>'
  <DD>Used in <CODE>gawk</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>list</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-t</SPAN></SAMP>' in <CODE>cpio</CODE>;=20
  `<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in <CODE>recode</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>list</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-t</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>literal</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-N</SPAN></SAMP>' in <CODE>ls</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>load-average</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>login</SPAN></SAMP>'
  <DD>Used in <CODE>su</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>machine</SPAN></SAMP>'
  <DD>Used in <CODE>uname</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>macro-name</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-M</SPAN></SAMP>' in <CODE>ptx</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>mail</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-m</SPAN></SAMP>' in <CODE>hello</CODE> =
and=20
  <CODE>uname</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>make-directories</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-d</SPAN></SAMP>' in <CODE>cpio</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>makefile</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-f</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>mapped</SPAN></SAMP>'
  <DD>Used in GDB. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>max-args</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in <CODE>xargs</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>max-chars</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in <CODE>xargs</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>max-lines</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in <CODE>xargs</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>max-load</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>max-procs</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-P</SPAN></SAMP>' in <CODE>xargs</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>mesg</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-T</SPAN></SAMP>' in <CODE>who</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>message</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-T</SPAN></SAMP>' in <CODE>who</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>minimal</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-d</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>mixed-uuencode</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-M</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>mode</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-m</SPAN></SAMP>' in =
<CODE>install</CODE>,=20
  <CODE>mkdir</CODE>, and <CODE>mkfifo</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>modification-time</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-m</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>multi-volume</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-M</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>name-prefix</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-a</SPAN></SAMP>' in Bison. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>nesting-limit</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-L</SPAN></SAMP>' in <CODE>m4</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>net-headers</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-a</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>new-file</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-W</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-builtin-rules</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-r</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-character-count</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-w</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-check-existing</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-x</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-common</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-3</SPAN></SAMP>' in <CODE>wdiff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-create</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-c</SPAN></SAMP>' in <CODE>touch</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-defines</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-D</SPAN></SAMP>' in <CODE>etags</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-deleted</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-1</SPAN></SAMP>' in <CODE>wdiff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-dereference</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-d</SPAN></SAMP>' in <CODE>cp</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-inserted</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-2</SPAN></SAMP>' in <CODE>wdiff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-keep-going</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-S</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-lines</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in Bison. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-piping</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-P</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-prof</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-e</SPAN></SAMP>' in <CODE>gprof</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-regex</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-R</SPAN></SAMP>' in <CODE>etags</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-sort</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-p</SPAN></SAMP>' in <CODE>nm</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-splash</SPAN></SAMP>'
  <DD>Don't print a startup splash screen. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-split</SPAN></SAMP>'
  <DD>Used in <CODE>makeinfo</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-static</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-a</SPAN></SAMP>' in <CODE>gprof</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-time</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-E</SPAN></SAMP>' in <CODE>gprof</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-timestamp</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-m</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-validate</SPAN></SAMP>'
  <DD>Used in <CODE>makeinfo</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-wait</SPAN></SAMP>'
  <DD>Used in <CODE>emacsclient</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>no-warn</SPAN></SAMP>'
  <DD>Used in various programs to inhibit warnings. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>node</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in <CODE>info</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>nodename</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in <CODE>uname</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>nonmatching</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-f</SPAN></SAMP>' in <CODE>cpio</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>nstuff</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in =
<CODE>objdump</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>null</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-0</SPAN></SAMP>' in <CODE>xargs</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>number</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in <CODE>cat</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>number-nonblank</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-b</SPAN></SAMP>' in <CODE>cat</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>numeric-sort</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in <CODE>nm</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>numeric-uid-gid</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in <CODE>cpio</CODE> =
and=20
  <CODE>ls</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>nx</SPAN></SAMP>'
  <DD>Used in GDB. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>old-archive</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-o</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>old-file</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-o</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>one-file-system</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in <CODE>tar</CODE>,=20
  <CODE>cp</CODE>, and <CODE>du</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>only-file</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-o</SPAN></SAMP>' in <CODE>ptx</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>only-prof</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-f</SPAN></SAMP>' in <CODE>gprof</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>only-time</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-F</SPAN></SAMP>' in <CODE>gprof</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>options</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-o</SPAN></SAMP>' in =
<CODE>getopt</CODE>,=20
  <CODE>fdlist</CODE>, <CODE>fdmount</CODE>, <CODE>fdmountd</CODE>, and=20
  <CODE>fdumount</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>output</SPAN></SAMP>'
  <DD>In various programs, specify the output file name. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>output-prefix</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-o</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>override</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-o</SPAN></SAMP>' in <CODE>rm</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>overwrite</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-c</SPAN></SAMP>' in =
<CODE>unshar</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>owner</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-o</SPAN></SAMP>' in =
<CODE>install</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>paginate</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>paragraph-indent</SPAN></SAMP>'
  <DD>Used in <CODE>makeinfo</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>parents</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-p</SPAN></SAMP>' in <CODE>mkdir</CODE> =
and=20
  <CODE>rmdir</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>pass-all</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-p</SPAN></SAMP>' in <CODE>ul</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>pass-through</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-p</SPAN></SAMP>' in <CODE>cpio</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>port</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-P</SPAN></SAMP>' in =
<CODE>finger</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>portability</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-c</SPAN></SAMP>' in <CODE>cpio</CODE> =
and=20
  <CODE>tar</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>posix</SPAN></SAMP>'
  <DD>Used in <CODE>gawk</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>prefix-builtins</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-P</SPAN></SAMP>' in <CODE>m4</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>prefix</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-f</SPAN></SAMP>' in =
<CODE>csplit</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>preserve</SPAN></SAMP>'
  <DD>Used in <CODE>tar</CODE> and <CODE>cp</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>preserve-environment</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-p</SPAN></SAMP>' in <CODE>su</CODE>. =
<BR>
  <DT>`<SAMP><SPAN =
class=3Dsamp>preserve-modification-time</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-m</SPAN></SAMP>' in <CODE>cpio</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>preserve-order</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>preserve-permissions</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-p</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>print</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>print-chars</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-L</SPAN></SAMP>' in <CODE>cmp</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>print-data-base</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-p</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>print-directory</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-w</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>print-file-name</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-o</SPAN></SAMP>' in <CODE>nm</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>print-symdefs</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>nm</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>printer</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-p</SPAN></SAMP>' in <CODE>wdiff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>prompt</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-p</SPAN></SAMP>' in <CODE>ed</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>proxy</SPAN></SAMP>'
  <DD>Specify an HTTP proxy. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>query-user</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-X</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>question</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-q</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>quiet</SPAN></SAMP>'
  <DD>Used in many programs to inhibit the usual output. Every program =
accepting=20
  `<SAMP><SPAN class=3Dsamp>--quiet</SPAN></SAMP>' should accept =
`<SAMP><SPAN=20
  class=3Dsamp>--silent</SPAN></SAMP>' as a synonym. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>quiet-unshar</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-Q</SPAN></SAMP>' in <CODE>shar</CODE> =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>quote-name</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-Q</SPAN></SAMP>' in <CODE>ls</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>rcs</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>re-interval</SPAN></SAMP>'
  <DD>Used in <CODE>gawk</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>read-full-blocks</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-B</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>readnow</SPAN></SAMP>'
  <DD>Used in GDB. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>recon</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-n</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>record-number</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-R</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>recursive</SPAN></SAMP>'
  <DD>Used in <CODE>chgrp</CODE>, <CODE>chown</CODE>, <CODE>cp</CODE>,=20
  <CODE>ls</CODE>, <CODE>diff</CODE>, and <CODE>rm</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>reference-limit</SPAN></SAMP>'
  <DD>Used in <CODE>makeinfo</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>references</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-r</SPAN></SAMP>' in <CODE>ptx</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>regex</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-r</SPAN></SAMP>' in <CODE>tac</CODE> =
and=20
  <CODE>etags</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>release</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-r</SPAN></SAMP>' in <CODE>uname</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>reload-state</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-R</SPAN></SAMP>' in <CODE>m4</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>relocation</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-r</SPAN></SAMP>' in =
<CODE>objdump</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>rename</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-r</SPAN></SAMP>' in <CODE>cpio</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>replace</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-i</SPAN></SAMP>' in <CODE>xargs</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>report-identical-files</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>reset-access-time</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-a</SPAN></SAMP>' in <CODE>cpio</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>reverse</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-r</SPAN></SAMP>' in <CODE>ls</CODE> and =

  <CODE>nm</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>reversed-ed</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-f</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>right-side-defs</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-R</SPAN></SAMP>' in <CODE>ptx</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>same-order</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>same-permissions</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-p</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>save</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-g</SPAN></SAMP>' in <CODE>stty</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>se</SPAN></SAMP>'
  <DD>Used in GDB. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>sentence-regexp</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-S</SPAN></SAMP>' in <CODE>ptx</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>separate-dirs</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-S</SPAN></SAMP>' in <CODE>du</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>separator</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>tac</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>sequence</SPAN></SAMP>'
  <DD>Used by <CODE>recode</CODE> to chose files or pipes for sequencing =
passes.=20
  <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>shell</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>su</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>show-all</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-A</SPAN></SAMP>' in <CODE>cat</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>show-c-function</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-p</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>show-ends</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-E</SPAN></SAMP>' in <CODE>cat</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>show-function-line</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-F</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>show-tabs</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-T</SPAN></SAMP>' in <CODE>cat</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>silent</SPAN></SAMP>'
  <DD>Used in many programs to inhibit the usual output. Every program =
accepting=20
  `<SAMP><SPAN class=3Dsamp>--silent</SPAN></SAMP>' should accept =
`<SAMP><SPAN=20
  class=3Dsamp>--quiet</SPAN></SAMP>' as a synonym. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>size</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>ls</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>socket</SPAN></SAMP>'
  <DD>Specify a file descriptor for a network server to use for its =
socket,=20
  instead of opening and binding a new socket. This provides a way to =
run, in a=20
  non-privileged process, a server that normally needs a reserved port =
number.=20
  <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>sort</SPAN></SAMP>'
  <DD>Used in <CODE>ls</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>source</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-W source</SPAN></SAMP>' in =
<CODE>gawk</CODE>.=20
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>sparse</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-S</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>speed-large-files</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-H</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>split-at</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-E</SPAN></SAMP>' in =
<CODE>unshar</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>split-size-limit</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-L</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>squeeze-blank</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>cat</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>start-delete</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-w</SPAN></SAMP>' in <CODE>wdiff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>start-insert</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-y</SPAN></SAMP>' in <CODE>wdiff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>starting-file</SPAN></SAMP>'
  <DD>Used in <CODE>tar</CODE> and <CODE>diff</CODE> to specify which =
file=20
  within a directory to start processing with. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>statistics</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>wdiff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>stdin-file-list</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-S</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>stop</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-S</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>strict</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in =
<CODE>recode</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>strip</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in =
<CODE>install</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>strip-all</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>strip</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>strip-debug</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-S</SPAN></SAMP>' in <CODE>strip</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>submitter</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>suffix</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-S</SPAN></SAMP>' in <CODE>cp</CODE>,=20
  <CODE>ln</CODE>, <CODE>mv</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>suffix-format</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-b</SPAN></SAMP>' in =
<CODE>csplit</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>sum</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>gprof</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>summarize</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>du</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>symbolic</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>ln</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>symbols</SPAN></SAMP>'
  <DD>Used in GDB and <CODE>objdump</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>synclines</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>m4</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>sysname</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-s</SPAN></SAMP>' in <CODE>uname</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>tabs</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-t</SPAN></SAMP>' in <CODE>expand</CODE> =
and=20
  <CODE>unexpand</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>tabsize</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-T</SPAN></SAMP>' in <CODE>ls</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>terminal</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-T</SPAN></SAMP>' in <CODE>tput</CODE> =
and=20
  <CODE>ul</CODE>. `<SAMP><SPAN class=3Dsamp>-t</SPAN></SAMP>' in=20
  <CODE>wdiff</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>text</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-a</SPAN></SAMP>' in <CODE>diff</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>text-files</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-T</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>time</SPAN></SAMP>'
  <DD>Used in <CODE>ls</CODE> and <CODE>touch</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>timeout</SPAN></SAMP>'
  <DD>Specify how long to wait before giving up on some operation. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>to-stdout</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-O</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>total</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-c</SPAN></SAMP>' in <CODE>du</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>touch</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-t</SPAN></SAMP>' in Make, =
<CODE>ranlib</CODE>,=20
  and <CODE>recode</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>trace</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-t</SPAN></SAMP>' in <CODE>m4</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>traditional</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-t</SPAN></SAMP>' in <CODE>hello</CODE>; =

  `<SAMP><SPAN class=3Dsamp>-W traditional</SPAN></SAMP>' in =
<CODE>gawk</CODE>;=20
  `<SAMP><SPAN class=3Dsamp>-G</SPAN></SAMP>' in <CODE>ed</CODE>, =
<CODE>m4</CODE>,=20
  and <CODE>ptx</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>tty</SPAN></SAMP>'
  <DD>Used in GDB. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>typedefs</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-t</SPAN></SAMP>' in <CODE>ctags</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>typedefs-and-c++</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-T</SPAN></SAMP>' in <CODE>ctags</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>typeset-mode</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-t</SPAN></SAMP>' in <CODE>ptx</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>uncompress</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-z</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>unconditional</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-u</SPAN></SAMP>' in <CODE>cpio</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>undefine</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-U</SPAN></SAMP>' in <CODE>m4</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>undefined-only</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-u</SPAN></SAMP>' in <CODE>nm</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>update</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-u</SPAN></SAMP>' in <CODE>cp</CODE>,=20
  <CODE>ctags</CODE>, <CODE>mv</CODE>, <CODE>tar</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>usage</SPAN></SAMP>'
  <DD>Used in <CODE>gawk</CODE>; same as `<SAMP><SPAN=20
  class=3Dsamp>--help</SPAN></SAMP>'. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>uuencode</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-B</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>vanilla-operation</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-V</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>verbose</SPAN></SAMP>'
  <DD>Print more information about progress. Many programs support this. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>verify</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-W</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>version</SPAN></SAMP>'
  <DD>Print the version number. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>version-control</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-V</SPAN></SAMP>' in <CODE>cp</CODE>,=20
  <CODE>ln</CODE>, <CODE>mv</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>vgrind</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-v</SPAN></SAMP>' in <CODE>ctags</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>volume</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-V</SPAN></SAMP>' in <CODE>tar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>what-if</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-W</SPAN></SAMP>' in Make. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>whole-size-limit</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-l</SPAN></SAMP>' in <CODE>shar</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>width</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-w</SPAN></SAMP>' in <CODE>ls</CODE> and =

  <CODE>ptx</CODE>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>word-regexp</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-W</SPAN></SAMP>' in <CODE>ptx</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>writable</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-T</SPAN></SAMP>' in <CODE>who</CODE>. =
<BR>
  <DT>`<SAMP><SPAN class=3Dsamp>zeros</SPAN></SAMP>'
  <DD>`<SAMP><SPAN class=3Dsamp>-z</SPAN></SAMP>' in <CODE>gprof</CODE>. =
</DD></DL>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DMemory-Usage></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#File-Usage" =
rel=3Dnext>File=20
Usage</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Option-Table"=20
rel=3Dprevious>Option Table</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
"=20
rel=3Dup>Program Behavior</A> </DIV>
<H3 class=3Dsection>4.9 Memory Usage</H3>
<P><A name=3Dindex-memory-usage-54></A>If a program typically uses just =
a few meg=20
of memory, don't bother making any effort to reduce memory usage. For =
example,=20
if it is impractical for other reasons to operate on files more than a =
few meg=20
long, it is reasonable to read entire input files into memory to operate =
on=20
them.=20
<P>However, for programs such as <CODE>cat</CODE> or <CODE>tail</CODE>, =
that can=20
usefully operate on very large files, it is important to avoid using a =
technique=20
that would artificially limit the size of files it can handle. If a =
program=20
works by lines and could be applied to arbitrary user-supplied input =
files, it=20
should keep only a line in memory, because this is not very hard and =
users will=20
want to be able to operate on input files that are bigger than will fit =
in=20
memory all at once.=20
<P>If your program creates complicated data structures, just make them =
in memory=20
and give a fatal error if <CODE>malloc</CODE> returns zero.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DFile-Usage></A>Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Memory-Usage"=20
rel=3Dprevious>Memory Usage</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
"=20
rel=3Dup>Program Behavior</A> </DIV>
<H3 class=3Dsection>4.10 File Usage</H3>
<P><A name=3Dindex-file-usage-55></A>Programs should be prepared to =
operate when=20
<SAMP><SPAN class=3Dfile>/usr</SPAN></SAMP> and <SAMP><SPAN=20
class=3Dfile>/etc</SPAN></SAMP> are read-only file systems. Thus, if the =
program=20
manages log files, lock files, backup files, score files, or any other =
files=20
which are modified for internal purposes, these files should not be =
stored in=20
<SAMP><SPAN class=3Dfile>/usr</SPAN></SAMP> or <SAMP><SPAN=20
class=3Dfile>/etc</SPAN></SAMP>.=20
<P>There are two exceptions. <SAMP><SPAN class=3Dfile>/etc</SPAN></SAMP> =
is used=20
to store system configuration information; it is reasonable for a =
program to=20
modify files in <SAMP><SPAN class=3Dfile>/etc</SPAN></SAMP> when its job =
is to=20
update the system configuration. Also, if the user explicitly asks to =
modify one=20
file in a directory, it is reasonable for the program to store other =
files in=20
the same directory.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DWriting-C></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation"=20
rel=3Dnext>Documentation</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Program-Behavior=
"=20
rel=3Dprevious>Program Behavior</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Top" =
rel=3Dup>Top</A>=20
</DIV>
<H2 class=3Dchapter>5 Making The Best Use of C</H2>
<P>This chapter provides advice on how best to use the C language when =
writing=20
GNU software.=20
<UL class=3Dmenu>
  <LI><A accessKey=3D1=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Formatting">Form=
atting</A>:=20
  Formatting Your Source Code=20
  <LI><A accessKey=3D2=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Comments">Commen=
ts</A>:=20
  Commenting Your Work=20
  <LI><A accessKey=3D3=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Syntactic-Conven=
tions">Syntactic=20
  Conventions</A>: Clean Use of C Constructs=20
  <LI><A accessKey=3D4=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Names">Names</A>=
:=20
  Naming Variables, Functions, and Files=20
  <LI><A accessKey=3D5=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Portabili=
ty">System=20
  Portability</A>: Portability between different operating systems=20
  <LI><A accessKey=3D6=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#CPU-Portability"=
>CPU=20
  Portability</A>: Supporting the range of CPU types=20
  <LI><A accessKey=3D7=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Functions=
">System=20
  Functions</A>: Portability and ``standard'' library functions=20
  <LI><A accessKey=3D8=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Internationaliza=
tion">Internationalization</A>:=20
  Techniques for internationalization=20
  <LI><A accessKey=3D9=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Character-Set">C=
haracter=20
  Set</A>: Use ASCII by default.=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Quote-Characters=
">Quote=20
  Characters</A>: Use `...' in the C locale.=20
  <LI><A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Mmap">Mmap</A>: =

  How you can safely use <CODE>mmap</CODE>. </LI></UL>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DFormatting></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Comments"=20
rel=3Dnext>Comments</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C" =
rel=3Dup>Writing=20
C</A> </DIV>
<H3 class=3Dsection>5.1 Formatting Your Source Code</H3>
<P><A name=3Dindex-formatting-source-code-56></A><A=20
name=3Dindex-open-brace-57></A><A =
name=3Dindex-braces_002c-in-C-source-58></A>It is=20
important to put the open-brace that starts the body of a C function in =
column=20
one, so that they will start a defun. Several tools look for open-braces =
in=20
column one to find the beginnings of C functions. These tools will not =
work on=20
code not formatted that way.=20
<P>Avoid putting open-brace, open-parenthesis or open-bracket in column =
one when=20
they are inside a function, so that they won't start a defun. The =
open-brace=20
that starts a <CODE>struct</CODE> body can go in column one if you find =
it=20
useful to treat that definition as a defun.=20
<P>It is also important for function definitions to start the name of =
the=20
function in column one. This helps people to search for function =
definitions,=20
and may also help certain tools recognize them. Thus, using Standard C =
syntax,=20
the format is this: <PRE class=3Dexample>     static char *
     concat (char *s1, char *s2)
     {
       ...
     }
</PRE>
<P class=3Dnoindent>or, if you want to use traditional C syntax, format =
the=20
definition like this: <PRE class=3Dexample>     static char *
     concat (s1, s2)        /* Name starts in column one here */
          char *s1, *s2;
     {                     /* Open brace in column one here */
       ...
     }
</PRE>
<P>In Standard C, if the arguments don't fit nicely on one line, split =
it like=20
this: <PRE class=3Dexample>     int
     lots_of_args (int an_integer, long a_long, short a_short,
                   double a_double, float a_float)
     ...
</PRE>
<P>The rest of this section gives our recommendations for other aspects =
of C=20
formatting style, which is also the default style of the =
<CODE>indent</CODE>=20
program in version 1.2 and newer. It corresponds to the options <PRE =
class=3Dsmallexample>     -nbad -bap -nbc -bbo -bl -bli2 -bls -ncdb -nce =
-cp1 -cs -di2
     -ndj -nfc1 -nfca -hnl -i2 -ip5 -lp -pcs -psl -nsc -nsob
</PRE>
<P>We don't think of these recommendations as requirements, because it =
causes no=20
problems for users if two different programs have different formatting =
styles.=20
<P>But whatever style you use, please use it consistently, since a =
mixture of=20
styles within one program tends to look ugly. If you are contributing =
changes to=20
an existing program, please follow the style of that program.=20
<P>For the body of the function, our recommended style looks like this: =
<PRE class=3Dexample>     if (x &lt; foo (y, z))
       haha =3D bar[4] + 5;
     else
       {
         while (z)
           {
             haha +=3D foo (z, z);
             z--;
           }
         return ++x + bar ();
       }
</PRE>
<P><A name=3Dindex-spaces-before-open_002dparen-59></A>We find it easier =
to read a=20
program when it has spaces before the open-parentheses and after the =
commas.=20
Especially after the commas.=20
<P>When you split an expression into multiple lines, split it before an=20
operator, not after one. Here is the right way:=20
<P><A name=3Dindex-expressions_002c-splitting-60></A><PRE =
class=3Dexample>     if (foo_this_is_long &amp;&amp; bar &gt; win (x, y, =
z)
         &amp;&amp; remaining_condition)
</PRE>
<P>Try to avoid having two operators of different precedence at the same =
level=20
of indentation. For example, don't write this: <PRE class=3Dexample>     =
mode =3D (inmode[j] =3D=3D VOIDmode
             || GET_MODE_SIZE (outmode[j]) &gt; GET_MODE_SIZE =
(inmode[j])
             ? outmode[j] : inmode[j]);
</PRE>
<P>Instead, use extra parentheses so that the indentation shows the =
nesting: <PRE class=3Dexample>     mode =3D ((inmode[j] =3D=3D VOIDmode
              || (GET_MODE_SIZE (outmode[j]) &gt; GET_MODE_SIZE =
(inmode[j])))
             ? outmode[j] : inmode[j]);
</PRE>
<P>Insert extra parentheses so that Emacs will indent the code properly. =
For=20
example, the following indentation looks nice if you do it by hand, <PRE =
class=3Dexample>     v =3D rup-&gt;ru_utime.tv_sec*1000 + =
rup-&gt;ru_utime.tv_usec/1000
         + rup-&gt;ru_stime.tv_sec*1000 + rup-&gt;ru_stime.tv_usec/1000;
</PRE>
<P class=3Dnoindent>but Emacs would alter it. Adding a set of =
parentheses produces=20
something that looks equally nice, and which Emacs will preserve: <PRE =
class=3Dexample>     v =3D (rup-&gt;ru_utime.tv_sec*1000 + =
rup-&gt;ru_utime.tv_usec/1000
          + rup-&gt;ru_stime.tv_sec*1000 + =
rup-&gt;ru_stime.tv_usec/1000);
</PRE>
<P>Format do-while statements like this: <PRE class=3Dexample>     do
       {
         a =3D foo (a);
       }
     while (a &gt; 0);
</PRE>
<P><A name=3Dindex-formfeed-61></A><A =
name=3Dindex-control_002dL-62></A>Please use=20
formfeed characters (control-L) to divide the program into pages at =
logical=20
places (but not within a function). It does not matter just how long the =
pages=20
are, since they do not have to fit on a printed page. The formfeeds =
should=20
appear alone on lines by themselves.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DComments></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Syntactic-Conven=
tions"=20
rel=3Dnext>Syntactic Conventions</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Formatting"=20
rel=3Dprevious>Formatting</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C" =
rel=3Dup>Writing=20
C</A> </DIV>
<H3 class=3Dsection>5.2 Commenting Your Work</H3>
<P><A name=3Dindex-commenting-63></A>Every program should start with a =
comment=20
saying briefly what it is for. Example: `<SAMP><SPAN class=3Dsamp>fmt - =
filter for=20
simple filling of text</SPAN></SAMP>'. This comment should be at the top =
of the=20
source file containing the `<SAMP><SPAN class=3Dsamp>main</SPAN></SAMP>' =
function=20
of the program.=20
<P>Also, please write a brief comment at the start of each source file, =
with the=20
file name and a line or two about the overall purpose of the file.=20
<P>Please write the comments in a GNU program in English, because =
English is the=20
one language that nearly all programmers in all countries can read. If =
you do=20
not write English well, please write comments in English as well as you =
can,=20
then ask other people to help rewrite them. If you can't write comments =
in=20
English, please find someone to work with you and translate your =
comments into=20
English.=20
<P>Please put a comment on each function saying what the function does, =
what=20
sorts of arguments it gets, and what the possible values of arguments =
mean and=20
are used for. It is not necessary to duplicate in words the meaning of =
the C=20
argument declarations, if a C type is being used in its customary =
fashion. If=20
there is anything nonstandard about its use (such as an argument of type =

<CODE>char *</CODE> which is really the address of the second character =
of a=20
string, not the first), or any possible values that would not work the =
way one=20
would expect (such as, that strings containing newlines are not =
guaranteed to=20
work), be sure to say so.=20
<P>Also explain the significance of the return value, if there is one.=20
<P>Please put two spaces after the end of a sentence in your comments, =
so that=20
the Emacs sentence commands will work. Also, please write complete =
sentences and=20
capitalize the first word. If a lower-case identifier comes at the =
beginning of=20
a sentence, don't capitalize it! Changing the spelling makes it a =
different=20
identifier. If you don't like starting a sentence with a lower case =
letter,=20
write the sentence differently (e.g., =93The identifier lower-case is =
<SMALL=20
class=3Ddots>...</SMALL>=94).=20
<P>The comment on a function is much clearer if you use the argument =
names to=20
speak about the argument values. The variable name itself should be =
lower case,=20
but write it in upper case when you are speaking about the value rather =
than the=20
variable itself. Thus, =93the inode number NODE_NUM=94 rather than =93an =
inode=94.=20
<P>There is usually no purpose in restating the name of the function in =
the=20
comment before it, because the reader can see that for himself. There =
might be=20
an exception when the comment is so long that the function itself would =
be off=20
the bottom of the screen.=20
<P>There should be a comment on each static variable as well, like this: =
<PRE class=3Dexample>     /* Nonzero means truncate lines in the =
display;
        zero means continue them.  */
     int truncate_lines;
</PRE>
<P><A name=3Dindex-conditionals_002c-comments-for-64></A><A=20
name=3Dindex-g_t_0040code_007b_0023endif_007d_002c-commenting-65></A>Ever=
y=20
`<SAMP><SPAN class=3Dsamp>#endif</SPAN></SAMP>' should have a comment, =
except in=20
the case of short conditionals (just a few lines) that are not nested. =
The=20
comment should state the condition of the conditional that is ending,=20
<EM>including its sense</EM>. `<SAMP><SPAN =
class=3Dsamp>#else</SPAN></SAMP>'=20
should have a comment describing the condition <EM>and sense</EM> of the =
code=20
that follows. For example: <PRE class=3Dexample>     #ifdef foo
       ...
     #else /* not foo */
       ...
     #endif /* not foo */
     #ifdef foo
       ...
     #endif /* foo */
</PRE>
<P class=3Dnoindent>but, by contrast, write the comments this way for a=20
`<SAMP><SPAN class=3Dsamp>#ifndef</SPAN></SAMP>': <PRE class=3Dexample>  =
   #ifndef foo
       ...
     #else /* foo */
       ...
     #endif /* foo */
     #ifndef foo
       ...
     #endif /* not foo */
</PRE>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DSyntactic-Conventions></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Names"=20
rel=3Dnext>Names</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Comments"=20
rel=3Dprevious>Comments</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C" =
rel=3Dup>Writing=20
C</A> </DIV>
<H3 class=3Dsection>5.3 Clean Use of C Constructs</H3>
<P><A name=3Dindex-syntactic-conventions-66></A><A=20
name=3Dindex-implicit-_0040code_007bint_007d-67></A><A=20
name=3Dindex-function-argument_002c-declaring-68></A>Please explicitly =
declare the=20
types of all objects. For example, you should explicitly declare all =
arguments=20
to functions, and you should declare functions to return =
<CODE>int</CODE> rather=20
than omitting the <CODE>int</CODE>.=20
<P><A name=3Dindex-compiler-warnings-69></A><A=20
name=3Dindex-g_t_0040samp_007b_002dWall_007d-compiler-option-70></A>Some =

programmers like to use the GCC `<SAMP><SPAN =
class=3Dsamp>-Wall</SPAN></SAMP>'=20
option, and change the code whenever it issues a warning. If you want to =
do=20
this, then do. Other programmers prefer not to use `<SAMP><SPAN=20
class=3Dsamp>-Wall</SPAN></SAMP>', because it gives warnings for valid =
and=20
legitimate code which they do not want to change. If you want to do =
this, then=20
do. The compiler should be your servant, not your master.=20
<P>Declarations of external functions and functions to appear later in =
the=20
source file should all go in one place near the beginning of the file =
(somewhere=20
before the first function definition in the file), or else should go in =
a header=20
file. Don't put <CODE>extern</CODE> declarations inside functions.=20
<P><A name=3Dindex-temporary-variables-71></A>It used to be common =
practice to use=20
the same local variables (with names like <CODE>tem</CODE>) over and =
over for=20
different values within one function. Instead of doing this, it is =
better to=20
declare a separate local variable for each distinct purpose, and give it =
a name=20
which is meaningful. This not only makes programs easier to understand, =
it also=20
facilitates optimization by good compilers. You can also move the =
declaration of=20
each local variable into the smallest scope that includes all its uses. =
This=20
makes the program even cleaner.=20
<P>Don't use local variables or parameters that shadow global =
identifiers.=20
<P><A name=3Dindex-multiple-variables-in-a-line-72></A>Don't declare =
multiple=20
variables in one declaration that spans lines. Start a new declaration =
on each=20
line, instead. For example, instead of this: <PRE class=3Dexample>     =
int    foo,
            bar;
</PRE>
<P class=3Dnoindent>write either this: <PRE class=3Dexample>     int =
foo, bar;
</PRE>
<P class=3Dnoindent>or this: <PRE class=3Dexample>     int foo;
     int bar;
</PRE>
<P class=3Dnoindent>(If they are global variables, each should have a =
comment=20
preceding it anyway.)=20
<P>When you have an <CODE>if</CODE>-<CODE>else</CODE> statement nested =
in=20
another <CODE>if</CODE> statement, always put braces around the=20
<CODE>if</CODE>-<CODE>else</CODE>. Thus, never write like this: <PRE =
class=3Dexample>     if (foo)
       if (bar)
         win ();
       else
         lose ();
</PRE>
<P class=3Dnoindent>always like this: <PRE class=3Dexample>     if (foo)
       {
         if (bar)
           win ();
         else
           lose ();
       }
</PRE>
<P>If you have an <CODE>if</CODE> statement nested inside of an=20
<CODE>else</CODE> statement, either write <CODE>else if</CODE> on one =
line, like=20
this, <PRE class=3Dexample>     if (foo)
       ...
     else if (bar)
       ...
</PRE>
<P class=3Dnoindent>with its <CODE>then</CODE>-part indented like the =
preceding=20
<CODE>then</CODE>-part, or write the nested <CODE>if</CODE> within =
braces like=20
this: <PRE class=3Dexample>     if (foo)
       ...
     else
       {
         if (bar)
           ...
       }
</PRE>
<P>Don't declare both a structure tag and variables or typedefs in the =
same=20
declaration. Instead, declare the structure tag separately and then use =
it to=20
declare the variables or typedefs.=20
<P>Try to avoid assignments inside <CODE>if</CODE>-conditions =
(assignments=20
inside <CODE>while</CODE>-conditions are ok). For example, don't write =
this: <PRE class=3Dexample>     if ((foo =3D (char *) malloc (sizeof =
*foo)) =3D=3D 0)
       fatal ("virtual memory exhausted");
</PRE>
<P class=3Dnoindent>instead, write this: <PRE class=3Dexample>     foo =
=3D (char *) malloc (sizeof *foo);
     if (foo =3D=3D 0)
       fatal ("virtual memory exhausted");
</PRE>
<P><A name=3Dindex-lint-73></A>Don't make the program ugly to placate=20
<CODE>lint</CODE>. Please don't insert any casts to <CODE>void</CODE>. =
Zero=20
without a cast is perfectly fine as a null pointer constant, except when =
calling=20
a varargs function.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DNames></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Portabili=
ty"=20
rel=3Dnext>System Portability</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Syntactic-Conven=
tions"=20
rel=3Dprevious>Syntactic Conventions</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C" =
rel=3Dup>Writing=20
C</A> </DIV>
<H3 class=3Dsection>5.4 Naming Variables, Functions, and Files</H3>
<P><A =
name=3Dindex-names-of-variables_002c-functions_002c-and-files-74></A>The =

names of global variables and functions in a program serve as comments =
of a=20
sort. So don't choose terse names=97instead, look for names that give =
useful=20
information about the meaning of the variable or function. In a GNU =
program,=20
names should be English, like other comments.=20
<P>Local variable names can be shorter, because they are used only =
within one=20
context, where (presumably) comments explain their purpose.=20
<P>Try to limit your use of abbreviations in symbol names. It is ok to =
make a=20
few abbreviations, explain what they mean, and then use them frequently, =
but=20
don't use lots of obscure abbreviations.=20
<P>Please use underscores to separate words in a name, so that the Emacs =
word=20
commands can be useful within them. Stick to lower case; reserve upper =
case for=20
macros and <CODE>enum</CODE> constants, and for name-prefixes that =
follow a=20
uniform convention.=20
<P>For example, you should use names like =
<CODE>ignore_space_change_flag</CODE>;=20
don't use names like <CODE>iCantReadThis</CODE>.=20
<P>Variables that indicate whether command-line options have been =
specified=20
should be named after the meaning of the option, not after the =
option-letter. A=20
comment should state both the exact meaning of the option and its =
letter. For=20
example, <PRE class=3Dexample>     /* Ignore changes in horizontal =
whitespace (-b).  */
     int ignore_space_change_flag;
</PRE>
<P>When you want to define names with constant integer values, use=20
<CODE>enum</CODE> rather than `<SAMP><SPAN =
class=3Dsamp>#define</SPAN></SAMP>'.=20
GDB knows about enumeration constants.=20
<P><A name=3Dindex-file_002dname-limitations-75></A><A=20
name=3Dindex-doschk-76></A>You might want to make sure that none of the =
file names=20
would conflict if the files were loaded onto an MS-DOS file system which =

shortens the names. You can use the program <CODE>doschk</CODE> to test =
for=20
this.=20
<P>Some GNU programs were designed to limit themselves to file names of =
14=20
characters or less, to avoid file name conflicts if they are read into =
older=20
System V systems. Please preserve this feature in the existing GNU =
programs that=20
have it, but there is no need to do this in new GNU programs.=20
<CODE>doschk</CODE> also reports file names longer than 14 characters.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DSystem-Portability></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#CPU-Portability"=
=20
rel=3Dnext>CPU Portability</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Names"=20
rel=3Dprevious>Names</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C" =
rel=3Dup>Writing=20
C</A> </DIV>
<H3 class=3Dsection>5.5 Portability between System Types</H3>
<P><A name=3Dindex-portability_002c-between-system-types-77></A>In the =
Unix world,=20
=93portability=94 refers to porting to different Unix versions. For a =
GNU program,=20
this kind of portability is desirable, but not paramount.=20
<P>The primary purpose of GNU software is to run on top of the GNU =
kernel,=20
compiled with the GNU C compiler, on various types of <SPAN =
class=3Dsc>cpu</SPAN>.=20
So the kinds of portability that are absolutely necessary are quite =
limited. But=20
it is important to support Linux-based GNU systems, since they are the =
form of=20
GNU that is popular.=20
<P>Beyond that, it is good to support the other free operating systems =
(*BSD),=20
and it is nice to support other Unix-like systems if you want to. =
Supporting a=20
variety of Unix-like systems is desirable, although not paramount. It is =
usually=20
not too hard, so you may as well do it. But you don't have to consider =
it an=20
obligation, if it does turn out to be hard.=20
<P><A name=3Dindex-autoconf-78></A>The easiest way to achieve =
portability to most=20
Unix-like systems is to use Autoconf. It's unlikely that your program =
needs to=20
know more information about the host platform than Autoconf can provide, =
simply=20
because most of the programs that need such knowledge have already been =
written.=20

<P>Avoid using the format of semi-internal data bases (e.g., =
directories) when=20
there is a higher-level alternative (<CODE>readdir</CODE>).=20
<P><A=20
name=3Dindex-non_002d_0040sc_007bposix_007d-systems_002c-and-portability-=
79></A>As=20
for systems that are not like Unix, such as MSDOS, Windows, VMS, MVS, =
and older=20
Macintosh systems, supporting them is often a lot of work. When that is =
the=20
case, it is better to spend your time adding features that will be =
useful on GNU=20
and GNU/Linux, rather than on supporting other incompatible systems.=20
<P>If you do support Windows, please do not abbreviate it as =93win=94. =
In hacker=20
terminology, calling something a =93win=94 is a form of praise. You're =
free to=20
praise Microsoft Windows on your own if you want, but please don't do =
this in=20
GNU packages. Instead of abbreviating =93Windows=94 to =93un=94, you can =
write it in=20
full or abbreviate it to =93woe=94 or =93w=94. In GNU Emacs, for =
instance, we use=20
`<SAMP><SPAN class=3Dsamp>w32</SPAN></SAMP>' in file names of =
Windows-specific=20
files, but the macro for Windows conditionals is called =
<CODE>WINDOWSNT</CODE>.=20
<P>It is a good idea to define the =93feature test macro=94 =
<CODE>_GNU_SOURCE</CODE>=20
when compiling your C files. When you compile on GNU or GNU/Linux, this =
will=20
enable the declarations of GNU library extension functions, and that =
will=20
usually give you a compiler error message if you define the same =
function names=20
in some other way in your program. (You don't have to actually =
<EM>use</EM>=20
these functions, if you prefer to make the program more portable to =
other=20
systems.)=20
<P>But whether or not you use these GNU extensions, you should avoid =
using their=20
names for any other meanings. Doing so would make it hard to move your =
code into=20
other GNU programs.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DCPU-Portability></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Functions=
"=20
rel=3Dnext>System Functions</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Portabili=
ty"=20
rel=3Dprevious>System Portability</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C" =
rel=3Dup>Writing=20
C</A> </DIV>
<H3 class=3Dsection>5.6 Portability between <SPAN =
class=3Dsc>cpu</SPAN>s</H3>
<P><A name=3Dindex-data-types_002c-and-portability-80></A><A=20
name=3Dindex-portability_002c-and-data-types-81></A>Even GNU systems =
will differ=20
because of differences among <SPAN class=3Dsc>cpu</SPAN> types=97for =
example,=20
difference in byte ordering and alignment requirements. It is absolutely =

essential to handle these differences. However, don't make any effort to =
cater=20
to the possibility that an <CODE>int</CODE> will be less than 32 bits. =
We don't=20
support 16-bit machines in GNU.=20
<P>Similarly, don't make any effort to cater to the possibility that=20
<CODE>long</CODE> will be smaller than predefined types like=20
<CODE>size_t</CODE>. For example, the following code is ok: <PRE =
class=3Dexample>     printf ("size =3D %lu\n", (unsigned long) sizeof =
array);
     printf ("diff =3D %ld\n", (long) (pointer2 - pointer1));
</PRE>
<P>1989 Standard C requires this to work, and we know of only one=20
counterexample: 64-bit programs on Microsoft Windows. We will leave it =
to those=20
who want to port GNU programs to that environment to figure out how to =
do it.=20
<P>Predefined file-size types like <CODE>off_t</CODE> are an exception: =
they are=20
longer than <CODE>long</CODE> on many platforms, so code like the above =
won't=20
work with them. One way to print an <CODE>off_t</CODE> value portably is =
to=20
print its digits yourself, one by one.=20
<P>Don't assume that the address of an <CODE>int</CODE> object is also =
the=20
address of its least-significant byte. This is false on big-endian =
machines.=20
Thus, don't make the following mistake: <PRE class=3Dexample>     int c;
     ...
     while ((c =3D getchar ()) !=3D EOF)
       write (file_descriptor, &amp;c, 1);
</PRE>
<P class=3Dnoindent>Instead, use <CODE>unsigned char</CODE> as follows. =
(The=20
<CODE>unsigned</CODE> is for portability to unusual systems where=20
<CODE>char</CODE> is signed and where there is integer overflow =
checking.) <PRE class=3Dexample>     int c;
     while ((c =3D getchar ()) !=3D EOF)
       {
         unsigned char u =3D c;
         write (file_descriptor, &amp;u, 1);
       }
</PRE>
<P>It used to be ok to not worry about the difference between pointers =
and=20
integers when passing arguments to functions. However, on most modern =
64-bit=20
machines pointers are wider than <CODE>int</CODE>. Conversely, integer =
types=20
like <CODE>long long int</CODE> and <CODE>off_t</CODE> are wider than =
pointers=20
on most modern 32-bit machines. Hence it's often better nowadays to use=20
prototypes to define functions whose argument types are not trivial.=20
<P>In particular, if functions accept varying argument counts or types =
they=20
should be declared using prototypes containing `<SAMP><SPAN=20
class=3Dsamp>...</SPAN></SAMP>' and defined using <SAMP><SPAN=20
class=3Dfile>stdarg.h</SPAN></SAMP>. For an example of this, please see =
the <A=20
href=3D"http://www.gnu.org/software/gnulib/">Gnulib</A> error module, =
which=20
declares and defines the following function: <PRE class=3Dexample>     =
/* Print a message with `fprintf (stderr, FORMAT, ...)';
        if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM).
        If STATUS is nonzero, terminate the program with `exit =
(STATUS)'.  */
    =20
     void error (int status, int errnum, const char *format, ...);
</PRE>
<P>A simple way to use the Gnulib error module is to obtain the two =
source files=20
<SAMP><SPAN class=3Dfile>error.c</SPAN></SAMP> and <SAMP><SPAN=20
class=3Dfile>error.h</SPAN></SAMP> from the Gnulib library source code =
repository=20
at <A=20
href=3D"http://savannah.gnu.org/cgi-bin/viewcvs/gnulib/gnulib/lib/">http:=
//savannah.gnu.org/cgi-bin/viewcvs/gnulib/gnulib/lib/</A>.=20
Here's a sample use: <PRE class=3Dexample>     #include "error.h"
     #include &lt;errno.h&gt;
     #include &lt;stdio.h&gt;
    =20
     char *program_name =3D "myprogram";
    =20
     FILE *
     xfopen (char const *name)
     {
       FILE *fp =3D fopen (name, "r");
       if (! fp)
         error (1, errno, "cannot read %s", name);
       return fp;
     }
</PRE>
<P><A name=3Dindex-casting-pointers-to-integers-82></A>Avoid casting =
pointers to=20
integers if you can. Such casts greatly reduce portability, and in most =
programs=20
they are easy to avoid. In the cases where casting pointers to integers =
is=20
essential=97such as, a Lisp interpreter which stores type information as =
well as=20
an address in one word=97you'll have to make explicit provisions to =
handle=20
different word sizes. You will also need to make provision for systems =
in which=20
the normal range of addresses you can get from <CODE>malloc</CODE> =
starts far=20
away from zero.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DSystem-Functions></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Internationaliza=
tion"=20
rel=3Dnext>Internationalization</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#CPU-Portability"=
=20
rel=3Dprevious>CPU Portability</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C" =
rel=3Dup>Writing=20
C</A> </DIV>
<H3 class=3Dsection>5.7 Calling System Functions</H3>
<P><A name=3Dindex-library-functions_002c-and-portability-83></A><A=20
name=3Dindex-portability_002c-and-library-functions-84></A>C =
implementations=20
differ substantially. Standard C reduces but does not eliminate the=20
incompatibilities; meanwhile, many GNU packages still support =
pre-standard=20
compilers because this is not hard to do. This chapter gives =
recommendations for=20
how to use the more-or-less standard C library functions to avoid =
unnecessary=20
loss of portability.=20
<UL>
  <LI>Don't use the return value of <CODE>sprintf</CODE>. It returns the =
number=20
  of characters written on some systems, but not on all systems.=20
  <LI>Be aware that <CODE>vfprintf</CODE> is not always available.=20
  <LI><CODE>main</CODE> should be declared to return type =
<CODE>int</CODE>. It=20
  should terminate either by calling <CODE>exit</CODE> or by returning =
the=20
  integer status code; make sure it cannot ever return an undefined =
value.=20
  <P><A name=3Dindex-declaration-for-system-functions-85></A></P>
  <LI>Don't declare system functions explicitly.=20
  <P>Almost any declaration for a system function is wrong on some =
system. To=20
  minimize conflicts, leave it to the system header files to declare =
system=20
  functions. If the headers don't declare a function, let it remain =
undeclared.=20
  <P>While it may seem unclean to use a function without declaring it, =
in=20
  practice this works fine for most system library functions on the =
systems=20
  where this really happens; thus, the disadvantage is only theoretical. =
By=20
  contrast, actual declarations have frequently caused actual conflicts. =
</P>
  <LI>If you must declare a system function, don't specify the argument =
types.=20
  Use an old-style declaration, not a Standard C prototype. The more you =
specify=20
  about the function, the more likely a conflict.=20
  <LI>In particular, don't unconditionally declare <CODE>malloc</CODE> =
or=20
  <CODE>realloc</CODE>.=20
  <P>Most GNU programs use those functions just once, in functions=20
  conventionally named <CODE>xmalloc</CODE> and <CODE>xrealloc</CODE>. =
These=20
  functions call <CODE>malloc</CODE> and <CODE>realloc</CODE>, =
respectively, and=20
  check the results.=20
  <P>Because <CODE>xmalloc</CODE> and <CODE>xrealloc</CODE> are defined =
in your=20
  program, you can declare them in other files without any risk of type=20
  conflict.=20
  <P>On most systems, <CODE>int</CODE> is the same length as a pointer; =
thus,=20
  the calls to <CODE>malloc</CODE> and <CODE>realloc</CODE> work fine. =
For the=20
  few exceptional systems (mostly 64-bit machines), you can use=20
  <STRONG>conditionalized</STRONG> declarations of <CODE>malloc</CODE> =
and=20
  <CODE>realloc</CODE>=97or put these declarations in configuration =
files specific=20
  to those systems.=20
  <P><A name=3Dindex-string-library-functions-86></A></P>
  <LI>The string functions require special treatment. Some Unix systems =
have a=20
  header file <SAMP><SPAN class=3Dfile>string.h</SPAN></SAMP>; others =
have=20
  <SAMP><SPAN class=3Dfile>strings.h</SPAN></SAMP>. Neither file name is =
portable.=20
  There are two things you can do: use Autoconf to figure out which file =
to=20
  include, or don't include either file.=20
  <LI>If you don't include either strings file, you can't get =
declarations for=20
  the string functions from the header file in the usual way.=20
  <P>That causes less of a problem than you might think. The newer =
standard=20
  string functions should be avoided anyway because many systems still =
don't=20
  support them. The string functions you can use are these: <PRE =
class=3Dexample>          strcpy   strncpy   strcat   strncat
          strlen   strcmp    strncmp
          strchr   strrchr
     </PRE>
  <P>The copy and concatenate functions work fine without a declaration =
as long=20
  as you don't use their values. Using their values without a =
declaration fails=20
  on systems where the width of a pointer differs from the width of=20
  <CODE>int</CODE>, and perhaps in other cases. It is trivial to avoid =
using=20
  their values, so do that.=20
  <P>The compare functions and <CODE>strlen</CODE> work fine without a=20
  declaration on most systems, possibly all the ones that GNU software =
runs on.=20
  You may find it necessary to declare them =
<STRONG>conditionally</STRONG> on a=20
  few systems.=20
  <P>The search functions must be declared to return <CODE>char =
*</CODE>.=20
  Luckily, there is no variation in the data type they return. But there =
is=20
  variation in their names. Some systems give these functions the names=20
  <CODE>index</CODE> and <CODE>rindex</CODE>; other systems use the =
names=20
  <CODE>strchr</CODE> and <CODE>strrchr</CODE>. Some systems support =
both pairs=20
  of names, but neither pair works on all systems.=20
  <P>You should pick a single pair of names and use it throughout your =
program.=20
  (Nowadays, it is better to choose <CODE>strchr</CODE> and =
<CODE>strrchr</CODE>=20
  for new programs, since those are the standard names.) Declare both of =
those=20
  names as functions returning <CODE>char *</CODE>. On systems which =
don't=20
  support those names, define them as macros in terms of the other pair. =
For=20
  example, here is what to put at the beginning of your file (or in a =
header) if=20
  you want to use the names <CODE>strchr</CODE> and <CODE>strrchr</CODE> =

  throughout: <PRE class=3Dexample>          #ifndef HAVE_STRCHR
          #define strchr index
          #endif
          #ifndef HAVE_STRRCHR
          #define strrchr rindex
          #endif
         =20
          char *strchr ();
          char *strrchr ();
     </PRE></LI></UL>
<P>Here we assume that <CODE>HAVE_STRCHR</CODE> and =
<CODE>HAVE_STRRCHR</CODE>=20
are macros defined in systems where the corresponding functions exist. =
One way=20
to get them properly defined is to use Autoconf.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DInternationalization></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Character-Set"=20
rel=3Dnext>Character Set</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Functions=
"=20
rel=3Dprevious>System Functions</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C" =
rel=3Dup>Writing=20
C</A> </DIV>
<H3 class=3Dsection>5.8 Internationalization</H3>
<P><A name=3Dindex-internationalization-87></A><A =
name=3Dindex-gettext-88></A>GNU=20
has a library called GNU gettext that makes it easy to translate the =
messages in=20
a program into various languages. You should use this library in every =
program.=20
Use English for the messages as they appear in the program, and let =
gettext=20
provide the way to translate them into other languages.=20
<P>Using GNU gettext involves putting a call to the <CODE>gettext</CODE> =
macro=20
around each string that might need translation=97like this: <PRE =
class=3Dexample>     printf (gettext ("Processing file `%s'..."));
</PRE>
<P class=3Dnoindent>This permits GNU gettext to replace the string=20
<CODE>"Processing file `%s'..."</CODE> with a translated version.=20
<P>Once a program uses gettext, please make a point of writing calls to=20
<CODE>gettext</CODE> when you add new strings that call for translation. =

<P>Using GNU gettext in a package involves specifying a <DFN>text domain =

name</DFN> for the package. The text domain name is used to separate the =

translations for this package from the translations for other packages.=20
Normally, the text domain name should be the same as the name of the =
package=97for=20
example, `<SAMP><SPAN class=3Dsamp>coreutils</SPAN></SAMP>' for the GNU =
core=20
utilities.=20
<P><A name=3Dindex-message-text_002c-and-internationalization-89></A>To =
enable=20
gettext to work well, avoid writing code that makes assumptions about =
the=20
structure of words or sentences. When you want the precise text of a =
sentence to=20
vary depending on the data, use two or more alternative string constants =
each=20
containing a complete sentences, rather than inserting conditionalized =
words or=20
phrases into a single sentence framework.=20
<P>Here is an example of what not to do: <PRE class=3Dsmallexample>     =
printf ("%s is full", capacity &gt; 5000000 ? "disk" : "floppy disk");
</PRE>
<P>If you apply gettext to all strings, like this, <PRE =
class=3Dsmallexample>     printf (gettext ("%s is full"),
             capacity &gt; 5000000 ? gettext ("disk") : gettext ("floppy =
disk"));
</PRE>
<P class=3Dnoindent>the translator will hardly know that "disk" and =
"floppy disk"=20
are meant to be substituted in the other string. Worse, in some =
languages (like=20
French) the construction will not work: the translation of the word =
"full"=20
depends on the gender of the first part of the sentence; it happens to =
be not=20
the same for "disk" as for "floppy disk".=20
<P>Complete sentences can be translated without problems: <PRE =
class=3Dexample>     printf (capacity &gt; 5000000 ? gettext ("disk is =
full")
             : gettext ("floppy disk is full"));
</PRE>
<P>A similar problem appears at the level of sentence structure with =
this code: <PRE class=3Dexample>     printf ("#  Implicit rule search =
has%s been done.\n",
             f-&gt;tried_implicit ? "" : " not");
</PRE>
<P class=3Dnoindent>Adding <CODE>gettext</CODE> calls to this code =
cannot give=20
correct results for all languages, because negation in some languages =
requires=20
adding words at more than one place in the sentence. By contrast, adding =

<CODE>gettext</CODE> calls does the job straightforwardly if the code =
starts out=20
like this: <PRE class=3Dexample>     printf (f-&gt;tried_implicit
             ? "#  Implicit rule search has been done.\n",
             : "#  Implicit rule search has not been done.\n");
</PRE>
<P>Another example is this one: <PRE class=3Dexample>     printf ("%d =
file%s processed", nfiles,
             nfiles !=3D 1 ? "s" : "");
</PRE>
<P class=3Dnoindent>The problem with this example is that it assumes =
that plurals=20
are made by adding `s'. If you apply gettext to the format string, like =
this, <PRE class=3Dexample>     printf (gettext ("%d file%s processed"), =
nfiles,
             nfiles !=3D 1 ? "s" : "");
</PRE>
<P class=3Dnoindent>the message can use different words, but it will =
still be=20
forced to use `s' for the plural. Here is a better way, with gettext =
being=20
applied to the two strings independently: <PRE class=3Dexample>     =
printf ((nfiles !=3D 1 ? gettext ("%d files processed")
              : gettext ("%d file processed")),
             nfiles);
</PRE>
<P class=3Dnoindent>But this still doesn't work for languages like =
Polish, which=20
has three plural forms: one for nfiles =3D=3D 1, one for nfiles =3D=3D =
2, 3, 4, 22, 23,=20
24, ... and one for the rest. The GNU <CODE>ngettext</CODE> function =
solves this=20
problem: <PRE class=3Dexample>     printf (ngettext ("%d files =
processed", "%d file processed", nfiles),
             nfiles);
</PRE>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DCharacter-Set></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Quote-Characters=
"=20
rel=3Dnext>Quote Characters</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Internationaliza=
tion"=20
rel=3Dprevious>Internationalization</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C" =
rel=3Dup>Writing=20
C</A> </DIV>
<H3 class=3Dsection>5.9 Character Set</H3>
<P><A name=3Dindex-character-set-90></A><A =
name=3Dindex-encodings-91></A><A=20
name=3Dindex-ASCII-characters-92></A><A=20
name=3Dindex-non_002dASCII-characters-93></A>Sticking to the ASCII =
character set=20
(plain text, 7-bit characters) is preferred in GNU source code comments, =
text=20
documents, and other contexts, unless there is good reason to do =
something else=20
because of the application domain. For example, if source code deals =
with the=20
French Revolutionary calendar, it is OK if its literal strings contain =
accented=20
characters in month names like =93Flor=E9al=94. Also, it is OK to use =
non-ASCII=20
characters to represent proper names of contributors in change logs (see =
<A=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Logs">Cha=
nge=20
Logs</A>).=20
<P>If you need to use non-ASCII characters, you should normally stick =
with one=20
encoding, as one cannot in general mix encodings reliably.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DQuote-Characters></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Mmap" =
rel=3Dnext>Mmap</A>,=20
Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Character-Set"=20
rel=3Dprevious>Character Set</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C" =
rel=3Dup>Writing=20
C</A> </DIV>
<H3 class=3Dsection>5.10 Quote Characters</H3>
<P><A name=3Dindex-quote-characters-94></A><A=20
name=3Dindex-locale_002dspecific-quote-characters-95></A><A=20
name=3Dindex-left-quote-96></A><A name=3Dindex-grave-accent-97></A>In =
the C locale,=20
GNU programs should stick to plain ASCII for quotation characters in =
messages to=20
users: preferably 0x60 (`<SAMP><SPAN class=3Dsamp>`</SPAN></SAMP>') for =
left=20
quotes and 0x27 (`<SAMP><SPAN class=3Dsamp>'</SPAN></SAMP>') for right =
quotes. It=20
is ok, but not required, to use locale-specific quotes in other locales. =

<P>The <A href=3D"http://www.gnu.org/software/gnulib/">Gnulib</A>=20
<CODE>quote</CODE> and <CODE>quotearg</CODE> modules provide a =
reasonably=20
straightforward way to support locale-specific quote characters, as well =
as=20
taking care of other issues, such as quoting a filename that itself =
contains a=20
quote character. See the Gnulib documentation for usage details.=20
<P>In any case, the documentation for your program should clearly =
specify how it=20
does quoting, if different than the preferred method of `<SAMP><SPAN=20
class=3Dsamp>`</SPAN></SAMP>' and `<SAMP><SPAN =
class=3Dsamp>'</SPAN></SAMP>'. This=20
is especially important if the output of your program is ever likely to =
be=20
parsed by another program.=20
<P>Quotation characters are a difficult area in the computing world at =
this=20
time: there are no true left or right quote characters in Latin1; the=20
`<SAMP><SPAN class=3Dsamp>`</SPAN></SAMP>' character we use was =
standardized there=20
as a grave accent. Moreover, Latin1 is still not universally usable.=20
<P>Unicode contains the unambiguous quote characters required, and its =
common=20
encoding UTF-8 is upward compatible with Latin1. However, Unicode and =
UTF-8 are=20
not universally well-supported, either.=20
<P>This may change over the next few years, and then we will revisit =
this.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DMmap></A>Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Quote-Characters=
"=20
rel=3Dprevious>Quote Characters</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C" =
rel=3Dup>Writing=20
C</A> </DIV>
<H3 class=3Dsection>5.11 Mmap</H3>
<P><A name=3Dindex-mmap-98></A>Don't assume that <CODE>mmap</CODE> =
either works on=20
all files or fails for all files. It may work on some files and fail on =
others.=20
<P>The proper way to use <CODE>mmap</CODE> is to try it on the specific =
file for=20
which you want to use it=97and if <CODE>mmap</CODE> doesn't work, fall =
back on=20
doing the job in another way using <CODE>read</CODE> and =
<CODE>write</CODE>.=20
<P>The reason this precaution is needed is that the GNU kernel (the =
HURD)=20
provides a user-extensible file system, in which there can be many =
different=20
kinds of =93ordinary files.=94 Many of them support <CODE>mmap</CODE>, =
but some do=20
not. It is important to make programs handle all these kinds of files.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DDocumentation></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Managing-Release=
s"=20
rel=3Dnext>Managing Releases</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Writing-C"=20
rel=3Dprevious>Writing C</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Top" =
rel=3Dup>Top</A>=20
</DIV>
<H2 class=3Dchapter>6 Documenting Programs</H2>
<P><A name=3Dindex-documentation-99></A>A GNU program should ideally =
come with=20
full free documentation, adequate for both reference and tutorial =
purposes. If=20
the package can be programmed or extended, the documentation should =
cover=20
programming or extending it, as well as just using it.=20
<UL class=3Dmenu>
  <LI><A accessKey=3D1=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#GNU-Manuals">GNU=
=20
  Manuals</A>: Writing proper manuals.=20
  <LI><A accessKey=3D2=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Doc-Strings-and-=
Manuals">Doc=20
  Strings and Manuals</A>: Compiling doc strings doesn't make a manual.=20
  <LI><A accessKey=3D3=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Manual-Structure=
-Details">Manual=20
  Structure Details</A>: Specific structure conventions.=20
  <LI><A accessKey=3D4=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#License-for-Manu=
als">License=20
  for Manuals</A>: Writing the distribution terms for a manual.=20
  <LI><A accessKey=3D5=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Manual-Credits">=
Manual=20
  Credits</A>: Giving credit to documentation contributors.=20
  <LI><A accessKey=3D6=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Printed-Manuals"=
>Printed=20
  Manuals</A>: Mentioning the printed manual.=20
  <LI><A accessKey=3D7=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#NEWS-File">NEWS =

  File</A>: NEWS files supplement manuals.=20
  <LI><A accessKey=3D8=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Logs">Cha=
nge=20
  Logs</A>: Recording Changes=20
  <LI><A accessKey=3D9=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Man-Pages">Man=20
  Pages</A>: Man pages are secondary.=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Reading-other-Ma=
nuals">Reading=20
  other Manuals</A>: How far you can go in learning from other manuals. =
</LI></UL>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DGNU-Manuals></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Doc-Strings-and-=
Manuals"=20
rel=3Dnext>Doc Strings and Manuals</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation"=20
rel=3Dup>Documentation</A> </DIV>
<H3 class=3Dsection>6.1 GNU Manuals</H3>
<P>The preferred document format for the GNU system is the Texinfo =
formatting=20
language. Every GNU package should (ideally) have documentation in =
Texinfo both=20
for reference and for learners. Texinfo makes it possible to produce a =
good=20
quality formatted book, using TeX, and to generate an Info file. It is =
also=20
possible to generate HTML output from Texinfo source. See the Texinfo =
manual,=20
either the hardcopy, or the on-line version available through =
<CODE>info</CODE>=20
or the Emacs Info subsystem (<KBD>C-h i</KBD>).=20
<P>Nowadays some other formats such as Docbook and Sgmltexi can be =
converted=20
automatically into Texinfo. It is ok to produce the Texinfo =
documentation by=20
conversion this way, as long as it gives good results.=20
<P>Make sure your manual is clear to a reader who knows nothing about =
the topic=20
and reads it straight through. This means covering basic topics at the=20
beginning, and advanced topics only later. This also means defining =
every=20
specialized term when it is first used.=20
<P>Programmers tend to carry over the structure of the program as the =
structure=20
for its documentation. But this structure is not necessarily good for =
explaining=20
how to use the program; it may be irrelevant and confusing for a user.=20
<P>Instead, the right way to structure documentation is according to the =

concepts and questions that a user will have in mind when reading it. =
This=20
principle applies at every level, from the lowest (ordering sentences in =
a=20
paragraph) to the highest (ordering of chapter topics within the =
manual).=20
Sometimes this structure of ideas matches the structure of the =
implementation of=20
the software being documented=97but often they are different. An =
important part of=20
learning to write good documentation is to learn to notice when you have =

unthinkingly structured the documentation like the implementation, stop=20
yourself, and look for better alternatives.=20
<P>For example, each program in the GNU system probably ought to be =
documented=20
in one manual; but this does not mean each program should have its own =
manual.=20
That would be following the structure of the implementation, rather than =
the=20
structure that helps the user understand.=20
<P>Instead, each manual should cover a coherent <EM>topic</EM>. For =
example,=20
instead of a manual for <CODE>diff</CODE> and a manual for =
<CODE>diff3</CODE>,=20
we have one manual for =93comparison of files=94 which covers both of =
those=20
programs, as well as <CODE>cmp</CODE>. By documenting these programs =
together,=20
we can make the whole subject clearer.=20
<P>The manual which discusses a program should certainly document all of =
the=20
program's command-line options and all of its commands. It should give =
examples=20
of their use. But don't organize the manual as a list of features. =
Instead,=20
organize it logically, by subtopics. Address the questions that a user =
will ask=20
when thinking about the job that the program does. Don't just tell the =
reader=20
what each feature can do=97say what jobs it is good for, and show how to =
use it=20
for those jobs. Explain what is recommended usage, and what kinds of =
usage users=20
should avoid.=20
<P>In general, a GNU manual should serve both as tutorial and reference. =
It=20
should be set up for convenient access to each topic through Info, and =
for=20
reading straight through (appendixes aside). A GNU manual should give a =
good=20
introduction to a beginner reading through from the start, and should =
also=20
provide all the details that hackers want. The Bison manual is a good =
example of=20
this=97please take a look at it to see what we mean.=20
<P>That is not as hard as it first sounds. Arrange each chapter as a =
logical=20
breakdown of its topic, but order the sections, and write their text, so =
that=20
reading the chapter straight through makes sense. Do likewise when =
structuring=20
the book into chapters, and when structuring a section into paragraphs. =
The=20
watchword is, <EM>at each point, address the most fundamental and =
important=20
issue raised by the preceding text.</EM>=20
<P>If necessary, add extra chapters at the beginning of the manual which =
are=20
purely tutorial and cover the basics of the subject. These provide the =
framework=20
for a beginner to understand the rest of the manual. The Bison manual =
provides a=20
good example of how to do this.=20
<P>To serve as a reference, a manual should have an Index that list all =
the=20
functions, variables, options, and important concepts that are part of =
the=20
program. One combined Index should do for a short manual, but sometimes =
for a=20
complex package it is better to use multiple indices. The Texinfo manual =

includes advice on preparing good index entries, see <A=20
href=3D"http://www.gnu.org/prep/standards/texinfo.html#Index-Entries">Mak=
ing Index=20
Entries</A>, and see <A=20
href=3D"http://www.gnu.org/prep/standards/texinfo.html#Indexing-Commands"=
>Defining=20
the Entries of an Index</A>.=20
<P>Don't use Unix man pages as a model for how to write GNU =
documentation; most=20
of them are terse, badly structured, and give inadequate explanation of =
the=20
underlying concepts. (There are, of course, some exceptions.) Also, Unix =
man=20
pages use a particular format which is different from what we use in GNU =

manuals.=20
<P>Please include an email address in the manual for where to report =
bugs <EM>in=20
the text of the manual</EM>.=20
<P>Please do not use the term =93pathname=94 that is used in Unix =
documentation; use=20
=93file name=94 (two words) instead. We use the term =93path=94 only for =
search paths,=20
which are lists of directory names.=20
<P>Please do not use the term =93illegal=94 to refer to erroneous input =
to a=20
computer program. Please use =93invalid=94 for this, and reserve the =
term =93illegal=94=20
for activities prohibited by law.=20
<P>Please do not write `<SAMP><SPAN class=3Dsamp>()</SPAN></SAMP>' after =
a=20
function name just to indicate it is a function. <CODE>foo ()</CODE> is =
not a=20
function, it is a function call with no arguments.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DDoc-Strings-and-Manuals></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Manual-Structure=
-Details"=20
rel=3Dnext>Manual Structure Details</A>, Previous:&nbsp;<A accessKey=3Dp =

href=3D"http://www.gnu.org/prep/standards/standards.html#GNU-Manuals"=20
rel=3Dprevious>GNU Manuals</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation"=20
rel=3Dup>Documentation</A> </DIV>
<H3 class=3Dsection>6.2 Doc Strings and Manuals</H3>
<P>Some programming systems, such as Emacs, provide a documentation =
string for=20
each function, command or variable. You may be tempted to write a =
reference=20
manual by compiling the documentation strings and writing a little =
additional=20
text to go around them=97but you must not do it. That approach is a =
fundamental=20
mistake. The text of well-written documentation strings will be entirely =
wrong=20
for a manual.=20
<P>A documentation string needs to stand alone=97when it appears on the =
screen,=20
there will be no other text to introduce or explain it. Meanwhile, it =
can be=20
rather informal in style.=20
<P>The text describing a function or variable in a manual must not stand =
alone;=20
it appears in the context of a section or subsection. Other text at the=20
beginning of the section should explain some of the concepts, and should =
often=20
make some general points that apply to several functions or variables. =
The=20
previous descriptions of functions and variables in the section will =
also have=20
given information about the topic. A description written to stand alone =
would=20
repeat some of that information; this redundancy looks bad. Meanwhile, =
the=20
informality that is acceptable in a documentation string is totally =
unacceptable=20
in a manual.=20
<P>The only good way to use documentation strings in writing a good =
manual is to=20
use them as a source of information for writing good text.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DManual-Structure-Details></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#License-for-Manu=
als"=20
rel=3Dnext>License for Manuals</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Doc-Strings-and-=
Manuals"=20
rel=3Dprevious>Doc Strings and Manuals</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation"=20
rel=3Dup>Documentation</A> </DIV>
<H3 class=3Dsection>6.3 Manual Structure Details</H3>
<P><A name=3Dindex-manual-structure-100></A>The title page of the manual =
should=20
state the version of the programs or packages documented in the manual. =
The Top=20
node of the manual should also contain this information. If the manual =
is=20
changing more frequently than or independent of the program, also state =
a=20
version number for the manual in both of these places.=20
<P>Each program documented in the manual should have a node named=20
`<SAMP><VAR>program</VAR><SPAN class=3Dsamp> Invocation</SPAN></SAMP>' =
or=20
`<SAMP><SPAN class=3Dsamp>Invoking </SPAN><VAR>program</VAR></SAMP>'. =
This node=20
(together with its subnodes, if any) should describe the program's =
command line=20
arguments and how to run it (the sort of information people would look =
for in a=20
man page). Start with an `<SAMP><SPAN =
class=3Dsamp>@example</SPAN></SAMP>'=20
containing a template for all the options and arguments that the program =
uses.=20
<P>Alternatively, put a menu item in some menu whose item name fits one =
of the=20
above patterns. This identifies the node which that item points to as =
the node=20
for this purpose, regardless of the node's actual name.=20
<P>The `<SAMP><SPAN class=3Dsamp>--usage</SPAN></SAMP>' feature of the =
Info reader=20
looks for such a node or menu item in order to find the relevant text, =
so it is=20
essential for every Texinfo file to have one.=20
<P>If one manual describes several programs, it should have such a node =
for each=20
program described in the manual.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DLicense-for-Manuals></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Manual-Credits" =

rel=3Dnext>Manual Credits</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Manual-Structure=
-Details"=20
rel=3Dprevious>Manual Structure Details</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation"=20
rel=3Dup>Documentation</A> </DIV>
<H3 class=3Dsection>6.4 License for Manuals</H3>
<P><A name=3Dindex-license-for-manuals-101></A>Please use the GNU Free=20
Documentation License for all GNU manuals that are more than a few pages =
long.=20
Likewise for a collection of short documents=97you only need one copy of =
the GNU=20
FDL for the whole collection. For a single short document, you can use a =
very=20
permissive non-copyleft license, to avoid taking up space with a long =
license.=20
<P>See <A=20
href=3D"http://www.gnu.org/copyleft/fdl-howto.html">http://www.gnu.org/co=
pyleft/fdl-howto.html</A>=20
for more explanation of how to employ the GFDL.=20
<P>Note that it is not obligatory to include a copy of the GNU GPL or =
GNU LGPL=20
in a manual whose license is neither the GPL nor the LGPL. It can be a =
good idea=20
to include the program's license in a large manual; in a short manual, =
whose=20
size would be increased considerably by including the program's license, =
it is=20
probably better not to include it.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DManual-Credits></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Printed-Manuals"=
=20
rel=3Dnext>Printed Manuals</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#License-for-Manu=
als"=20
rel=3Dprevious>License for Manuals</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation"=20
rel=3Dup>Documentation</A> </DIV>
<H3 class=3Dsection>6.5 Manual Credits</H3>
<P><A name=3Dindex-credits-for-manuals-102></A>Please credit the =
principal human=20
writers of the manual as the authors, on the title page of the manual. =
If a=20
company sponsored the work, thank the company in a suitable place in the =
manual,=20
but do not cite the company as an author.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DPrinted-Manuals></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#NEWS-File" =
rel=3Dnext>NEWS=20
File</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Manual-Credits" =

rel=3Dprevious>Manual Credits</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation"=20
rel=3Dup>Documentation</A> </DIV>
<H3 class=3Dsection>6.6 Printed Manuals</H3>
<P>The FSF publishes some GNU manuals in printed form. To encourage =
sales of=20
these manuals, the on-line versions of the manual should mention at the =
very=20
start that the printed manual is available and should point at =
information for=20
getting it=97for instance, with a link to the page <A=20
href=3D"http://www.gnu.org/order/order.html">http://www.gnu.org/order/ord=
er.html</A>.=20
This should not be included in the printed manual, though, because there =
it is=20
redundant.=20
<P>It is also useful to explain in the on-line forms of the manual how =
the user=20
can print out the manual from the sources.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DNEWS-File></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Logs"=20
rel=3Dnext>Change Logs</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Printed-Manuals"=
=20
rel=3Dprevious>Printed Manuals</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation"=20
rel=3Dup>Documentation</A> </DIV>
<H3 class=3Dsection>6.7 The NEWS File</H3>
<P><A name=3Dindex-g_t_0040file_007bNEWS_007d-file-103></A>In addition =
to its=20
manual, the package should have a file named <SAMP><SPAN=20
class=3Dfile>NEWS</SPAN></SAMP> which contains a list of user-visible =
changes=20
worth mentioning. In each new release, add items to the front of the =
file and=20
identify the version they pertain to. Don't discard old items; leave =
them in the=20
file after the newer items. This way, a user upgrading from any previous =
version=20
can see what is new.=20
<P>If the <SAMP><SPAN class=3Dfile>NEWS</SPAN></SAMP> file gets very =
long, move=20
some of the older items into a file named <SAMP><SPAN=20
class=3Dfile>ONEWS</SPAN></SAMP> and put a note at the end referring the =
user to=20
that file.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DChange-Logs></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Man-Pages" =
rel=3Dnext>Man=20
Pages</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#NEWS-File"=20
rel=3Dprevious>NEWS File</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation"=20
rel=3Dup>Documentation</A> </DIV>
<H3 class=3Dsection>6.8 Change Logs</H3>
<P><A name=3Dindex-change-logs-104></A>Keep a change log to describe all =
the=20
changes made to program source files. The purpose of this is so that =
people=20
investigating bugs in the future will know about the changes that might =
have=20
introduced the bug. Often a new bug can be found by looking at what was =
recently=20
changed. More importantly, change logs can help you eliminate conceptual =

inconsistencies between different parts of a program, by giving you a =
history of=20
how the conflicting concepts arose and who they came from.=20
<UL class=3Dmenu>
  <LI><A accessKey=3D1=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Log-Conce=
pts">Change=20
  Log Concepts</A>=20
  <LI><A accessKey=3D2=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Style-of-Change-=
Logs">Style=20
  of Change Logs</A>=20
  <LI><A accessKey=3D3=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Simple-Changes">=
Simple=20
  Changes</A>=20
  <LI><A accessKey=3D4=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Conditional-Chan=
ges">Conditional=20
  Changes</A>=20
  <LI><A accessKey=3D5=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Indicating-the-P=
art-Changed">Indicating=20
  the Part Changed</A> </LI></UL>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DChange-Log-Concepts></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Style-of-Change-=
Logs"=20
rel=3Dnext>Style of Change Logs</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Logs"=20
rel=3Dup>Change Logs</A> </DIV>
<H4 class=3Dsubsection>6.8.1 Change Log Concepts</H4>
<P>You can think of the change log as a conceptual =93undo list=94 which =
explains=20
how earlier versions were different from the current version. People can =
see the=20
current version; they don't need the change log to tell them what is in =
it. What=20
they want from a change log is a clear explanation of how the earlier =
version=20
differed.=20
<P>The change log file is normally called <SAMP><SPAN=20
class=3Dfile>ChangeLog</SPAN></SAMP> and covers an entire directory. =
Each=20
directory can have its own change log, or a directory can use the change =
log of=20
its parent directory=96it's up to you.=20
<P>Another alternative is to record change log information with a =
version=20
control system such as RCS or CVS. This can be converted automatically =
to a=20
<SAMP><SPAN class=3Dfile>ChangeLog</SPAN></SAMP> file using =
<CODE>rcs2log</CODE>;=20
in Emacs, the command <KBD>C-x v a</KBD> =
(<CODE>vc-update-change-log</CODE>)=20
does the job.=20
<P>There's no need to describe the full purpose of the changes or how =
they work=20
together. If you think that a change calls for explanation, you're =
probably=20
right. Please do explain it=97but please put the explanation in comments =
in the=20
code, where people will see it whenever they see the code. For example, =
=93New=20
function=94 is enough for the change log when you add a function, =
because there=20
should be a comment before the function definition to explain what it =
does.=20
<P>In the past, we recommended not mentioning changes in non-software =
files=20
(manuals, help files, etc.) in change logs. However, we've been advised =
that it=20
is a good idea to include them, for the sake of copyright records.=20
<P>However, sometimes it is useful to write one line to describe the =
overall=20
purpose of a batch of changes.=20
<P>The easiest way to add an entry to <SAMP><SPAN=20
class=3Dfile>ChangeLog</SPAN></SAMP> is with the Emacs command <KBD>M-x=20
add-change-log-entry</KBD>. An entry should have an asterisk, the name =
of the=20
changed file, and then in parentheses the name of the changed functions, =

variables or whatever, followed by a colon. Then describe the changes =
you made=20
to that function or variable.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DStyle-of-Change-Logs></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Simple-Changes" =

rel=3Dnext>Simple Changes</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Log-Conce=
pts"=20
rel=3Dprevious>Change Log Concepts</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Logs"=20
rel=3Dup>Change Logs</A> </DIV>
<H4 class=3Dsubsection>6.8.2 Style of Change Logs</H4>
<P><A name=3Dindex-change-logs_002c-style-105></A>Here are some simple =
examples of=20
change log entries, starting with the header line that says who made the =
change=20
and when it was installed, followed by descriptions of specific changes. =
(These=20
examples are drawn from Emacs and GCC.) <PRE class=3Dexample>     =
1998-08-17  Richard Stallman  &lt;rms@gnu.org&gt;
    =20
     * register.el (insert-register): Return nil.
     (jump-to-register): Likewise.
    =20
     * sort.el (sort-subr): Return nil.
    =20
     * tex-mode.el (tex-bibtex-file, tex-file, tex-region):
     Restart the tex shell if process is gone or stopped.
     (tex-shell-running): New function.
    =20
     * expr.c (store_one_arg): Round size up for move_block_to_reg.
     (expand_call): Round up when emitting USE insns.
     * stmt.c (assign_parms): Round size up for move_block_from_reg.
</PRE>
<P>It's important to name the changed function or variable in full. =
Don't=20
abbreviate function or variable names, and don't combine them. =
Subsequent=20
maintainers will often search for a function name to find all the change =
log=20
entries that pertain to it; if you abbreviate the name, they won't find =
it when=20
they search.=20
<P>For example, some people are tempted to abbreviate groups of function =
names=20
by writing `<SAMP><SPAN class=3Dsamp>* register.el=20
({insert,jump-to}-register)</SPAN></SAMP>'; this is not a good idea, =
since=20
searching for <CODE>jump-to-register</CODE> or =
<CODE>insert-register</CODE>=20
would not find that entry.=20
<P>Separate unrelated change log entries with blank lines. When two =
entries=20
represent parts of the same change, so that they work together, then =
don't put=20
blank lines between them. Then you can omit the file name and the =
asterisk when=20
successive entries are in the same file.=20
<P>Break long lists of function names by closing continued lines with=20
`<SAMP><SPAN class=3Dsamp>)</SPAN></SAMP>', rather than `<SAMP><SPAN=20
class=3Dsamp>,</SPAN></SAMP>', and opening the continuation with =
`<SAMP><SPAN=20
class=3Dsamp>(</SPAN></SAMP>' as in this example: <PRE class=3Dexample>  =
   * keyboard.c (menu_bar_items, tool_bar_items)
     (Fexecute_extended_command): Deal with `keymap' property.
</PRE>
<P>When you install someone else's changes, put the contributor's name =
in the=20
change log entry rather than in the text of the entry. In other words, =
write=20
this: <PRE class=3Dexample>     2002-07-14  John Doe  =
&lt;jdoe@gnu.org&gt;
    =20
             * sewing.c: Make it sew.
</PRE>
<P class=3Dnoindent>rather than this: <PRE class=3Dexample>     =
2002-07-14  Usual Maintainer  &lt;usual@gnu.org&gt;
    =20
             * sewing.c: Make it sew.  Patch by jdoe@gnu.org.
</PRE>
<P>As for the date, that should be the date you applied the change.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DSimple-Changes></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Conditional-Chan=
ges"=20
rel=3Dnext>Conditional Changes</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Style-of-Change-=
Logs"=20
rel=3Dprevious>Style of Change Logs</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Logs"=20
rel=3Dup>Change Logs</A> </DIV>
<H4 class=3Dsubsection>6.8.3 Simple Changes</H4>
<P>Certain simple kinds of changes don't need much detail in the change =
log.=20
<P>When you change the calling sequence of a function in a simple =
fashion, and=20
you change all the callers of the function to use the new calling =
sequence,=20
there is no need to make individual entries for all the callers that you =

changed. Just write in the entry for the function being called, =93All =
callers=20
changed=94=97like this: <PRE class=3Dexample>     * keyboard.c =
(Fcommand_execute): New arg SPECIAL.
     All callers changed.
</PRE>
<P>When you change just comments or doc strings, it is enough to write =
an entry=20
for the file, without mentioning the functions. Just =93Doc fixes=94 is =
enough for=20
the change log.=20
<P>There's no technical need to make change log entries for =
documentation files.=20
This is because documentation is not susceptible to bugs that are hard =
to fix.=20
Documentation does not consist of parts that must interact in a =
precisely=20
engineered fashion. To correct an error, you need not know the history =
of the=20
erroneous passage; it is enough to compare what the documentation says =
with the=20
way the program actually works.=20
<P>However, you should keep change logs for documentation files when the =
project=20
gets copyright assignments from its contributors, so as to make the =
records of=20
authorship more accurate.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DConditional-Changes></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Indicating-the-P=
art-Changed"=20
rel=3Dnext>Indicating the Part Changed</A>, Previous:&nbsp;<A =
accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Simple-Changes" =

rel=3Dprevious>Simple Changes</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Logs"=20
rel=3Dup>Change Logs</A> </DIV>
<H4 class=3Dsubsection>6.8.4 Conditional Changes</H4>
<P><A name=3Dindex-conditional-changes_002c-and-change-logs-106></A><A=20
name=3Dindex-change-logs_002c-conditional-changes-107></A>C programs =
often contain=20
compile-time <CODE>#if</CODE> conditionals. Many changes are =
conditional;=20
sometimes you add a new definition which is entirely contained in a =
conditional.=20
It is very useful to indicate in the change log the conditions for which =
the=20
change applies.=20
<P>Our convention for indicating conditional changes is to use square =
brackets=20
around the name of the condition.=20
<P>Here is a simple example, describing a change which is conditional =
but does=20
not have a function or entity name associated with it: <PRE =
class=3Dexample>     * xterm.c [SOLARIS2]: Include string.h.
</PRE>
<P>Here is an entry describing a new definition which is entirely =
conditional.=20
This new definition for the macro <CODE>FRAME_WINDOW_P</CODE> is used =
only when=20
<CODE>HAVE_X_WINDOWS</CODE> is defined: <PRE class=3Dexample>     * =
frame.h [HAVE_X_WINDOWS] (FRAME_WINDOW_P): Macro defined.
</PRE>
<P>Here is an entry for a change within the function =
<CODE>init_display</CODE>,=20
whose definition as a whole is unconditional, but the changes themselves =
are=20
contained in a `<SAMP><SPAN class=3Dsamp>#ifdef =
HAVE_LIBNCURSES</SPAN></SAMP>'=20
conditional: <PRE class=3Dexample>     * dispnew.c (init_display) =
[HAVE_LIBNCURSES]: If X, call tgetent.
</PRE>
<P>Here is an entry for a change that takes affect only when a certain =
macro is=20
<EM>not</EM> defined: <PRE class=3Dexample>     (gethostname) =
[!HAVE_SOCKETS]: Replace with winsock version.
</PRE>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DIndicating-the-Part-Changed></A>Previous:&nbsp;<A =
accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Conditional-Chan=
ges"=20
rel=3Dprevious>Conditional Changes</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Logs"=20
rel=3Dup>Change Logs</A> </DIV>
<H4 class=3Dsubsection>6.8.5 Indicating the Part Changed</H4>
<P>Indicate the part of a function which changed by using angle brackets =

enclosing an indication of what the changed part does. Here is an entry =
for a=20
change in the part of the function <CODE>sh-while-getopts</CODE> that =
deals with=20
<CODE>sh</CODE> commands: <PRE class=3Dexample>     * =
progmodes/sh-script.el (sh-while-getopts) &lt;sh&gt;: Handle case that
     user-specified option string is empty.
</PRE>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DMan-Pages></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Reading-other-Ma=
nuals"=20
rel=3Dnext>Reading other Manuals</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Logs"=20
rel=3Dprevious>Change Logs</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation"=20
rel=3Dup>Documentation</A> </DIV>
<H3 class=3Dsection>6.9 Man Pages</H3>
<P><A name=3Dindex-man-pages-108></A>In the GNU project, man pages are =
secondary.=20
It is not necessary or expected for every GNU program to have a man =
page, but=20
some of them do. It's your choice whether to include a man page in your =
program.=20

<P>When you make this decision, consider that supporting a man page =
requires=20
continual effort each time the program is changed. The time you spend on =
the man=20
page is time taken away from more useful work.=20
<P>For a simple program which changes little, updating the man page may =
be a=20
small job. Then there is little reason not to include a man page, if you =
have=20
one.=20
<P>For a large program that changes a great deal, updating a man page =
may be a=20
substantial burden. If a user offers to donate a man page, you may find =
this=20
gift costly to accept. It may be better to refuse the man page unless =
the same=20
person agrees to take full responsibility for maintaining it=97so that =
you can=20
wash your hands of it entirely. If this volunteer later ceases to do the =
job,=20
then don't feel obliged to pick it up yourself; it may be better to =
withdraw the=20
man page from the distribution until someone else agrees to update it.=20
<P>When a program changes only a little, you may feel that the =
discrepancies are=20
small enough that the man page remains useful without updating. If so, =
put a=20
prominent note near the beginning of the man page explaining that you =
don't=20
maintain it and that the Texinfo manual is more authoritative. The note =
should=20
say how to access the Texinfo documentation.=20
<P>Be sure that man pages include a copyright statement and free =
license. The=20
simple all-permissive license is appropriate for simple man pages: <PRE =
class=3Dexample>     Copying and distribution of this file, with or =
without modification,
     are permitted in any medium without royalty provided the copyright
     notice and this notice are preserved.
</PRE>
<P>For long man pages, with enough explanation and documentation that =
they can=20
be considered true manuals, use the GFDL (see <A=20
href=3D"http://www.gnu.org/prep/standards/standards.html#License-for-Manu=
als">License=20
for Manuals</A>).=20
<P>Finally, the GNU help2man program (<A=20
href=3D"http://www.gnu.org/software/help2man/">http://www.gnu.org/softwar=
e/help2man/</A>)=20
is one way to automate generation of a man page, in this case from =
<SAMP><SPAN=20
class=3Doption>--help</SPAN></SAMP> output. This is sufficient in many =
cases.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DReading-other-Manuals></A>Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Man-Pages"=20
rel=3Dprevious>Man Pages</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation"=20
rel=3Dup>Documentation</A> </DIV>
<H3 class=3Dsection>6.10 Reading other Manuals</H3>
<P>There may be non-free books or documentation files that describe the =
program=20
you are documenting.=20
<P>It is ok to use these documents for reference, just as the author of =
a new=20
algebra textbook can read other books on algebra. A large portion of any =

non-fiction book consists of facts, in this case facts about how a =
certain=20
program works, and these facts are necessarily the same for everyone who =
writes=20
about the subject. But be careful not to copy your outline structure, =
wording,=20
tables or examples from preexisting non-free documentation. Copying from =
free=20
documentation may be ok; please check with the FSF about the individual =
case.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DManaging-Releases></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#References"=20
rel=3Dnext>References</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation"=20
rel=3Dprevious>Documentation</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Top" =
rel=3Dup>Top</A>=20
</DIV>
<H2 class=3Dchapter>7 The Release Process</H2>
<P><A name=3Dindex-releasing-109></A>Making a release is more than just =
bundling=20
up your source files in a tar file and putting it up for FTP. You should =
set up=20
your software so that it can be configured to run on a variety of =
systems. Your=20
Makefile should conform to the GNU standards described below, and your =
directory=20
layout should also conform to the standards discussed below. Doing so =
makes it=20
easy to include your package into the larger framework of all GNU =
software.=20
<UL class=3Dmenu>
  <LI><A accessKey=3D1=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Configuration">C=
onfiguration</A>:=20
  How Configuration Should Work=20
  <LI><A accessKey=3D2=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions">Makefile=20
  Conventions</A>: Makefile Conventions=20
  <LI><A accessKey=3D3=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Releases">Releas=
es</A>:=20
  Making Releases </LI></UL>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DConfiguration></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions"=20
rel=3Dnext>Makefile Conventions</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Managing-Release=
s"=20
rel=3Dup>Managing Releases</A> </DIV>
<H3 class=3Dsection>7.1 How Configuration Should Work</H3>
<P><A name=3Dindex-program-configuration-110></A><A=20
name=3Dindex-configure-111></A>Each GNU distribution should come with a =
shell=20
script named <CODE>configure</CODE>. This script is given arguments =
which=20
describe the kind of machine and system you want to compile the program =
for.=20
<P>The <CODE>configure</CODE> script must record the configuration =
options so=20
that they affect compilation.=20
<P>One way to do this is to make a link from a standard name such as =
<SAMP><SPAN=20
class=3Dfile>config.h</SPAN></SAMP> to the proper configuration file for =
the=20
chosen system. If you use this technique, the distribution should =
<EM>not</EM>=20
contain a file named <SAMP><SPAN class=3Dfile>config.h</SPAN></SAMP>. =
This is so=20
that people won't be able to build the program without configuring it =
first.=20
<P>Another thing that <CODE>configure</CODE> can do is to edit the =
Makefile. If=20
you do this, the distribution should <EM>not</EM> contain a file named=20
<SAMP><SPAN class=3Dfile>Makefile</SPAN></SAMP>. Instead, it should =
include a file=20
<SAMP><SPAN class=3Dfile>Makefile.in</SPAN></SAMP> which contains the =
input used=20
for editing. Once again, this is so that people won't be able to build =
the=20
program without configuring it first.=20
<P>If <CODE>configure</CODE> does write the <SAMP><SPAN=20
class=3Dfile>Makefile</SPAN></SAMP>, then <SAMP><SPAN=20
class=3Dfile>Makefile</SPAN></SAMP> should have a target named =
<SAMP><SPAN=20
class=3Dfile>Makefile</SPAN></SAMP> which causes <CODE>configure</CODE> =
to be=20
rerun, setting up the same configuration that was set up last time. The =
files=20
that <CODE>configure</CODE> reads should be listed as dependencies of=20
<SAMP><SPAN class=3Dfile>Makefile</SPAN></SAMP>.=20
<P>All the files which are output from the <CODE>configure</CODE> script =
should=20
have comments at the beginning explaining that they were generated =
automatically=20
using <CODE>configure</CODE>. This is so that users won't think of =
trying to=20
edit them by hand.=20
<P>The <CODE>configure</CODE> script should write a file named =
<SAMP><SPAN=20
class=3Dfile>config.status</SPAN></SAMP> which describes which =
configuration=20
options were specified when the program was last configured. This file =
should be=20
a shell script which, if run, will recreate the same configuration.=20
<P>The <CODE>configure</CODE> script should accept an option of the form =

`<SAMP><SPAN class=3Dsamp>--srcdir=3D</SPAN><VAR>dirname</VAR></SAMP>' =
to specify=20
the directory where sources are found (if it is not the current =
directory). This=20
makes it possible to build the program in a separate directory, so that =
the=20
actual source directory is not modified.=20
<P>If the user does not specify `<SAMP><SPAN =
class=3Dsamp>--srcdir</SPAN></SAMP>',=20
then <CODE>configure</CODE> should check both <SAMP><SPAN=20
class=3Dfile>.</SPAN></SAMP> and <SAMP><SPAN =
class=3Dfile>..</SPAN></SAMP> to see if=20
it can find the sources. If it finds the sources in one of these places, =
it=20
should use them from there. Otherwise, it should report that it cannot =
find the=20
sources, and should exit with nonzero status.=20
<P>Usually the easy way to support `<SAMP><SPAN=20
class=3Dsamp>--srcdir</SPAN></SAMP>' is by editing a definition of=20
<CODE>VPATH</CODE> into the Makefile. Some rules may need to refer =
explicitly to=20
the specified source directory. To make this possible, =
<CODE>configure</CODE>=20
can add to the Makefile a variable named <CODE>srcdir</CODE> whose value =
is=20
precisely the specified directory.=20
<P>The <CODE>configure</CODE> script should also take an argument which=20
specifies the type of system to build the program for. This argument =
should look=20
like this: <PRE class=3Dexample>     =
<VAR>cpu</VAR>-<VAR>company</VAR>-<VAR>system</VAR>
</PRE>
<P>For example, an Athlon-based GNU/Linux system might be `<SAMP><SPAN=20
class=3Dsamp>i686-pc-linux-gnu</SPAN></SAMP>'.=20
<P>The <CODE>configure</CODE> script needs to be able to decode all =
plausible=20
alternatives for how to describe a machine. Thus, `<SAMP><SPAN=20
class=3Dsamp>athlon-pc-gnu/linux</SPAN></SAMP>' would be a valid alias. =
There is a=20
shell script called <A=20
href=3D"http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/=
config.sub"><SAMP><SPAN=20
class=3Dfile>config.sub</SPAN></SAMP></A> that you can use as a =
subroutine to=20
validate system types and canonicalize aliases.=20
<P>The <CODE>configure</CODE> script should also take the option =
<SAMP><SPAN=20
class=3Doption>--build=3D</SPAN><VAR>buildtype</VAR></SAMP>, which =
should be=20
equivalent to a plain <VAR>buildtype</VAR> argument. For example, =
`<SAMP><SPAN=20
class=3Dsamp>configure --build=3Di686-pc-linux-gnu</SPAN></SAMP>' is =
equivalent to=20
`<SAMP><SPAN class=3Dsamp>configure i686-pc-linux-gnu</SPAN></SAMP>'. =
When the=20
build type is not specified by an option or argument, the =
<CODE>configure</CODE>=20
script should normally guess it using the shell script <A=20
href=3D"http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/=
config.guess"><SAMP><SPAN=20
class=3Dfile>config.guess</SPAN></SAMP></A>.=20
<P><A =
name=3Dindex-optional-features_002c-configure_002dtime-112></A>Other =
options=20
are permitted to specify in more detail the software or hardware present =
on the=20
machine, to include or exclude optional parts of the package, or to =
adjust the=20
name of some tools or arguments to them:=20
<DL>
  <DT>`<SAMP><SPAN class=3Dsamp>--enable-</SPAN><VAR>feature</VAR><SPAN=20
  class=3Dsamp>[=3D</SPAN><VAR>parameter</VAR><SPAN =
class=3Dsamp>]</SPAN></SAMP>'
  <DD>Configure the package to build and install an optional user-level =
facility=20
  called <VAR>feature</VAR>. This allows users to choose which optional =
features=20
  to include. Giving an optional <VAR>parameter</VAR> of `<SAMP><SPAN=20
  class=3Dsamp>no</SPAN></SAMP>' should omit <VAR>feature</VAR>, if it =
is built by=20
  default.=20
  <P>No `<SAMP><SPAN class=3Dsamp>--enable</SPAN></SAMP>' option should=20
  <STRONG>ever</STRONG> cause one feature to replace another. No =
`<SAMP><SPAN=20
  class=3Dsamp>--enable</SPAN></SAMP>' option should ever substitute one =
useful=20
  behavior for another useful behavior. The only proper use for =
`<SAMP><SPAN=20
  class=3Dsamp>--enable</SPAN></SAMP>' is for questions of whether to =
build part=20
  of the program or exclude it. <BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>--with-</SPAN><VAR>package</VAR></SAMP>'
  <DD><!-- @r{[}=3D@var{parameter}@r{]} -->The package =
<VAR>package</VAR> will be=20
  installed, so configure this package to work with <VAR>package</VAR>. =
<!-- Giving an optional @var{parameter} of --><!-- @samp{no} should omit =
@var{package}, if it is used by default. -->
  <P>Possible values of <VAR>package</VAR> include `<SAMP><SPAN=20
  class=3Dsamp>gnu-as</SPAN></SAMP>' (or `<SAMP><SPAN=20
  class=3Dsamp>gas</SPAN></SAMP>'), `<SAMP><SPAN =
class=3Dsamp>gnu-ld</SPAN></SAMP>',=20
  `<SAMP><SPAN class=3Dsamp>gnu-libc</SPAN></SAMP>', `<SAMP><SPAN=20
  class=3Dsamp>gdb</SPAN></SAMP>', `<SAMP><SPAN =
class=3Dsamp>x</SPAN></SAMP>', and=20
  `<SAMP><SPAN class=3Dsamp>x-toolkit</SPAN></SAMP>'.=20
  <P>Do not use a `<SAMP><SPAN class=3Dsamp>--with</SPAN></SAMP>' option =
to=20
  specify the file name to use to find certain files. That is outside =
the scope=20
  of what `<SAMP><SPAN class=3Dsamp>--with</SPAN></SAMP>' options are =
for.=20
<BR></P>
  <DT>`<SAMP><VAR>variable</VAR><SPAN=20
class=3Dsamp>=3D</SPAN><VAR>value</VAR></SAMP>'
  <DD>Set the value of the variable <VAR>variable</VAR> to =
<VAR>value</VAR>.=20
  This is used to override the default values of commands or arguments =
in the=20
  build process. For example, the user could issue `<SAMP><SPAN=20
  class=3Dsamp>configure CFLAGS=3D-g CXXFLAGS=3D-g</SPAN></SAMP>' to =
build with=20
  debugging information and without the default optimization.=20
  <P>Specifying variables as arguments to <CODE>configure</CODE>, like =
this: <PRE class=3Dexample>          ./configure CC=3Dgcc
     </PRE>
  <P>is preferable to setting them in environment variables: <PRE =
class=3Dexample>          CC=3Dgcc ./configure
     </PRE>
  <P>as it helps to recreate the same configuration later with =
<SAMP><SPAN=20
  class=3Dfile>config.status</SPAN></SAMP>. </P></DD></DL>
<P>All <CODE>configure</CODE> scripts should accept all of the =
=93detail=94 options=20
and the variable settings, whether or not they make any difference to =
the=20
particular package at hand. In particular, they should accept any option =
that=20
starts with `<SAMP><SPAN class=3Dsamp>--with-</SPAN></SAMP>' or =
`<SAMP><SPAN=20
class=3Dsamp>--enable-</SPAN></SAMP>'. This is so users will be able to =
configure=20
an entire GNU source tree at once with a single set of options.=20
<P>You will note that the categories `<SAMP><SPAN=20
class=3Dsamp>--with-</SPAN></SAMP>' and `<SAMP><SPAN=20
class=3Dsamp>--enable-</SPAN></SAMP>' are narrow: they <STRONG>do =
not</STRONG>=20
provide a place for any sort of option you might think of. That is =
deliberate.=20
We want to limit the possible configuration options in GNU software. We =
do not=20
want GNU programs to have idiosyncratic configuration options.=20
<P>Packages that perform part of the compilation process may support=20
cross-compilation. In such a case, the host and target machines for the =
program=20
may be different.=20
<P>The <CODE>configure</CODE> script should normally treat the specified =
type of=20
system as both the host and the target, thus producing a program which =
works for=20
the same type of machine that it runs on.=20
<P>To compile a program to run on a host type that differs from the =
build type,=20
use the configure option <SAMP><SPAN=20
class=3Doption>--host=3D</SPAN><VAR>hosttype</VAR></SAMP>, where =
<VAR>hosttype</VAR>=20
uses the same syntax as <VAR>buildtype</VAR>. The host type normally =
defaults to=20
the build type.=20
<P>To configure a cross-compiler, cross-assembler, or what have you, you =
should=20
specify a target different from the host, using the configure option=20
`<SAMP><SPAN =
class=3Dsamp>--target=3D</SPAN><VAR>targettype</VAR></SAMP>'. The=20
syntax for <VAR>targettype</VAR> is the same as for the host type. So =
the=20
command would look like this: <PRE class=3Dexample>     ./configure =
--host=3D<VAR>hosttype</VAR> --target=3D<VAR>targettype</VAR>
</PRE>
<P>The target type normally defaults to the host type. Programs for =
which=20
cross-operation is not meaningful need not accept the `<SAMP><SPAN=20
class=3Dsamp>--target</SPAN></SAMP>' option, because configuring an =
entire=20
operating system for cross-operation is not a meaningful operation.=20
<P>Some programs have ways of configuring themselves automatically. If =
your=20
program is set up to do this, your <CODE>configure</CODE> script can =
simply=20
ignore most of its arguments. <!-- The makefile standards are in a =
separate file that is also --><!-- included by make.texinfo.  Done by =
roland@gnu.ai.mit.edu on 1/6/93. --><!-- For this document, turn =
chapters into sections, etc. --><!-- This file is included by both =
standards.texi and make.texinfo. --><!-- It was broken out of =
standards.texi on 1/6/93 by roland. -->
<DIV class=3Dnode>
<P>
<HR>
<A name=3DMakefile-Conventions></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Releases"=20
rel=3Dnext>Releases</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Configuration"=20
rel=3Dprevious>Configuration</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Managing-Release=
s"=20
rel=3Dup>Managing Releases</A> </DIV>
<H3 class=3Dsection>7.2 Makefile Conventions</H3><!-- standards.texi =
does not print an index, but make.texinfo does. -->
<P><A name=3Dindex-makefile_002c-conventions-for-113></A><A=20
name=3Dindex-conventions-for-makefiles-114></A><A=20
name=3Dindex-standards-for-makefiles-115></A><!-- Copyright (C) 1992, =
1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001, --><!-- 2004, 2005, 2006 =
Free Software Foundation, Inc. --><!-- Permission is granted to copy, =
distribute and/or modify this document --><!-- under the terms of the =
GNU Free Documentation License, Version 1.2 --><!-- or any later version =
published by the Free Software Foundation; --><!-- with no Invariant =
Sections, with no --><!-- Front-Cover Texts, and with no Back-Cover =
Texts. --><!-- A copy of the license is included in the section entitled =
``GNU --><!-- Free Documentation License''. -->
<P>This describes conventions for writing the Makefiles for GNU =
programs. Using=20
Automake will help you write a Makefile that follows these conventions.=20
<UL class=3Dmenu>
  <LI><A accessKey=3D1=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Basics"=
>Makefile=20
  Basics</A>: General conventions for Makefiles.=20
  <LI><A accessKey=3D2=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Utilities-in-Mak=
efiles">Utilities=20
  in Makefiles</A>: Utilities to be used in Makefiles.=20
  <LI><A accessKey=3D3=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command-Variable=
s">Command=20
  Variables</A>: Variables for specifying commands.=20
  <LI><A accessKey=3D4=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#DESTDIR">DESTDIR=
</A>:=20
  Supporting staged installs.=20
  <LI><A accessKey=3D5=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Directory-Variab=
les">Directory=20
  Variables</A>: Variables for installation directories.=20
  <LI><A accessKey=3D6=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Standard-Targets=
">Standard=20
  Targets</A>: Standard targets for users.=20
  <LI><A accessKey=3D7=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Install-Command-=
Categories">Install=20
  Command Categories</A>: Three categories of commands in the `install' =
rule:=20
  normal, pre-install and post-install. </LI></UL>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DMakefile-Basics></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Utilities-in-Mak=
efiles"=20
rel=3Dnext>Utilities in Makefiles</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions"=20
rel=3Dup>Makefile Conventions</A> </DIV>
<H4 class=3Dsubsection>7.2.1 General Conventions for Makefiles</H4>
<P>Every Makefile should contain this line: <PRE class=3Dexample>     =
SHELL =3D /bin/sh
</PRE>
<P class=3Dnoindent>to avoid trouble on systems where the =
<CODE>SHELL</CODE>=20
variable might be inherited from the environment. (This is never a =
problem with=20
GNU <CODE>make</CODE>.)=20
<P>Different <CODE>make</CODE> programs have incompatible suffix lists =
and=20
implicit rules, and this sometimes creates confusion or misbehavior. So =
it is a=20
good idea to set the suffix list explicitly using only the suffixes you =
need in=20
the particular Makefile, like this: <PRE class=3Dexample>     .SUFFIXES:
     .SUFFIXES: .c .o
</PRE>
<P class=3Dnoindent>The first line clears out the suffix list, the =
second=20
introduces all suffixes which may be subject to implicit rules in this =
Makefile.=20

<P>Don't assume that <SAMP><SPAN class=3Dfile>.</SPAN></SAMP> is in the =
path for=20
command execution. When you need to run programs that are a part of your =
package=20
during the make, please make sure that it uses <SAMP><SPAN=20
class=3Dfile>./</SPAN></SAMP> if the program is built as part of the =
make or=20
<SAMP><SPAN class=3Dfile>$(srcdir)/</SPAN></SAMP> if the file is an =
unchanging=20
part of the source code. Without one of these prefixes, the current =
search path=20
is used.=20
<P>The distinction between <SAMP><SPAN class=3Dfile>./</SPAN></SAMP> =
(the=20
<DFN>build directory</DFN>) and <SAMP><SPAN =
class=3Dfile>$(srcdir)/</SPAN></SAMP>=20
(the <DFN>source directory</DFN>) is important because users can build =
in a=20
separate directory using the `<SAMP><SPAN =
class=3Dsamp>--srcdir</SPAN></SAMP>'=20
option to <SAMP><SPAN class=3Dfile>configure</SPAN></SAMP>. A rule of =
the form: <PRE class=3Dsmallexample>     foo.1 : foo.man sedscript
             sed -e sedscript foo.man &gt; foo.1
</PRE>
<P class=3Dnoindent>will fail when the build directory is not the source =

directory, because <SAMP><SPAN class=3Dfile>foo.man</SPAN></SAMP> and =
<SAMP><SPAN=20
class=3Dfile>sedscript</SPAN></SAMP> are in the source directory.=20
<P>When using GNU <CODE>make</CODE>, relying on `<SAMP><SPAN=20
class=3Dsamp>VPATH</SPAN></SAMP>' to find the source file will work in =
the case=20
where there is a single dependency file, since the <CODE>make</CODE> =
automatic=20
variable `<SAMP><SPAN class=3Dsamp>$&lt;</SPAN></SAMP>' will represent =
the source=20
file wherever it is. (Many versions of <CODE>make</CODE> set =
`<SAMP><SPAN=20
class=3Dsamp>$&lt;</SPAN></SAMP>' only in implicit rules.) A Makefile =
target like <PRE class=3Dsmallexample>     foo.o : bar.c
             $(CC) -I. -I$(srcdir) $(CFLAGS) -c bar.c -o foo.o
</PRE>
<P class=3Dnoindent>should instead be written as <PRE =
class=3Dsmallexample>     foo.o : bar.c
             $(CC) -I. -I$(srcdir) $(CFLAGS) -c $&lt; -o $@
</PRE>
<P class=3Dnoindent>in order to allow `<SAMP><SPAN =
class=3Dsamp>VPATH</SPAN></SAMP>'=20
to work correctly. When the target has multiple dependencies, using an =
explicit=20
`<SAMP><SPAN class=3Dsamp>$(srcdir)</SPAN></SAMP>' is the easiest way to =
make the=20
rule work well. For example, the target above for <SAMP><SPAN=20
class=3Dfile>foo.1</SPAN></SAMP> is best written as: <PRE =
class=3Dsmallexample>     foo.1 : foo.man sedscript
             sed -e $(srcdir)/sedscript $(srcdir)/foo.man &gt; $@
</PRE>
<P>GNU distributions usually contain some files which are not source =
files=97for=20
example, Info files, and the output from Autoconf, Automake, Bison or =
Flex.=20
Since these files normally appear in the source directory, they should =
always=20
appear in the source directory, not in the build directory. So Makefile =
rules to=20
update them should put the updated files in the source directory.=20
<P>However, if a file does not appear in the distribution, then the =
Makefile=20
should not put it in the source directory, because building a program in =

ordinary circumstances should not modify the source directory in any =
way.=20
<P>Try to make the build and installation targets, at least (and all =
their=20
subtargets) work correctly with a parallel <CODE>make</CODE>.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DUtilities-in-Makefiles></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Command-Variable=
s"=20
rel=3Dnext>Command Variables</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Basics"=
=20
rel=3Dprevious>Makefile Basics</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions"=20
rel=3Dup>Makefile Conventions</A> </DIV>
<H4 class=3Dsubsection>7.2.2 Utilities in Makefiles</H4>
<P>Write the Makefile commands (and any shell scripts, such as=20
<CODE>configure</CODE>) to run in <CODE>sh</CODE>, not in =
<CODE>csh</CODE>.=20
Don't use any special features of <CODE>ksh</CODE> or <CODE>bash</CODE>. =

<P>The <CODE>configure</CODE> script and the Makefile rules for building =
and=20
installation should not use any utilities directly except these: <!-- dd =
find --><!-- gunzip gzip md5sum --><!-- mkfifo mknod tee uname --><PRE =
class=3Dexample>     cat cmp cp diff echo egrep expr false grep =
install-info
     ln ls mkdir mv pwd rm rmdir sed sleep sort tar test touch true
</PRE>
<P>The compression program <CODE>gzip</CODE> can be used in the=20
<CODE>dist</CODE> rule.=20
<P>Stick to the generally supported options for these programs. For =
example,=20
don't use `<SAMP><SPAN class=3Dsamp>mkdir -p</SPAN></SAMP>', convenient =
as it may=20
be, because most systems don't support it.=20
<P>It is a good idea to avoid creating symbolic links in makefiles, =
since a few=20
systems don't support them.=20
<P>The Makefile rules for building and installation can also use =
compilers and=20
related programs, but should do so via <CODE>make</CODE> variables so =
that the=20
user can substitute alternatives. Here are some of the programs we mean: =
<PRE class=3Dexample>     ar bison cc flex install ld ldconfig lex
     make makeinfo ranlib texi2dvi yacc
</PRE>
<P>Use the following <CODE>make</CODE> variables to run those programs: =
<PRE class=3Dexample>     $(AR) $(BISON) $(CC) $(FLEX) $(INSTALL) $(LD) =
$(LDCONFIG) $(LEX)
     $(MAKE) $(MAKEINFO) $(RANLIB) $(TEXI2DVI) $(YACC)
</PRE>
<P>When you use <CODE>ranlib</CODE> or <CODE>ldconfig</CODE>, you should =
make=20
sure nothing bad happens if the system does not have the program in =
question.=20
Arrange to ignore an error from that command, and print a message before =
the=20
command to tell the user that failure of this command does not mean a =
problem.=20
(The Autoconf `<SAMP><SPAN class=3Dsamp>AC_PROG_RANLIB</SPAN></SAMP>' =
macro can=20
help with this.)=20
<P>If you use symbolic links, you should implement a fallback for =
systems that=20
don't have symbolic links.=20
<P>Additional utilities that can be used via Make variables are: <PRE =
class=3Dexample>     chgrp chmod chown mknod
</PRE>
<P>It is ok to use other utilities in Makefile portions (or scripts) =
intended=20
only for particular systems where you know those utilities exist.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DCommand-Variables></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#DESTDIR"=20
rel=3Dnext>DESTDIR</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Utilities-in-Mak=
efiles"=20
rel=3Dprevious>Utilities in Makefiles</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions"=20
rel=3Dup>Makefile Conventions</A> </DIV>
<H4 class=3Dsubsection>7.2.3 Variables for Specifying Commands</H4>
<P>Makefiles should provide variables for overriding certain commands, =
options,=20
and so on.=20
<P>In particular, you should run most utility programs via variables. =
Thus, if=20
you use Bison, have a variable named <CODE>BISON</CODE> whose default =
value is=20
set with `<SAMP><SPAN class=3Dsamp>BISON =3D bison</SPAN></SAMP>', and =
refer to it=20
with <CODE>$(BISON)</CODE> whenever you need to use Bison.=20
<P>File management utilities such as <CODE>ln</CODE>, <CODE>rm</CODE>,=20
<CODE>mv</CODE>, and so on, need not be referred to through variables in =
this=20
way, since users don't need to replace them with other programs.=20
<P>Each program-name variable should come with an options variable that =
is used=20
to supply options to the program. Append `<SAMP><SPAN=20
class=3Dsamp>FLAGS</SPAN></SAMP>' to the program-name variable name to =
get the=20
options variable name=97for example, <CODE>BISONFLAGS</CODE>. (The names =

<CODE>CFLAGS</CODE> for the C compiler, <CODE>YFLAGS</CODE> for yacc, =
and=20
<CODE>LFLAGS</CODE> for lex, are exceptions to this rule, but we keep =
them=20
because they are standard.) Use <CODE>CPPFLAGS</CODE> in any compilation =
command=20
that runs the preprocessor, and use <CODE>LDFLAGS</CODE> in any =
compilation=20
command that does linking as well as in any direct use of =
<CODE>ld</CODE>.=20
<P>If there are C compiler options that <EM>must</EM> be used for proper =

compilation of certain files, do not include them in =
<CODE>CFLAGS</CODE>. Users=20
expect to be able to specify <CODE>CFLAGS</CODE> freely themselves. =
Instead,=20
arrange to pass the necessary options to the C compiler independently of =

<CODE>CFLAGS</CODE>, by writing them explicitly in the compilation =
commands or=20
by defining an implicit rule, like this: <PRE class=3Dsmallexample>     =
CFLAGS =3D -g
     ALL_CFLAGS =3D -I. $(CFLAGS)
     .c.o:
             $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $&lt;
</PRE>
<P>Do include the `<SAMP><SPAN class=3Dsamp>-g</SPAN></SAMP>' option in=20
<CODE>CFLAGS</CODE>, because that is not <EM>required</EM> for proper=20
compilation. You can consider it a default that is only recommended. If =
the=20
package is set up so that it is compiled with GCC by default, then you =
might as=20
well include `<SAMP><SPAN class=3Dsamp>-O</SPAN></SAMP>' in the default =
value of=20
<CODE>CFLAGS</CODE> as well.=20
<P>Put <CODE>CFLAGS</CODE> last in the compilation command, after other=20
variables containing compiler options, so the user can use =
<CODE>CFLAGS</CODE>=20
to override the others.=20
<P><CODE>CFLAGS</CODE> should be used in every invocation of the C =
compiler,=20
both those which do compilation and those which do linking.=20
<P>Every Makefile should define the variable <CODE>INSTALL</CODE>, which =
is the=20
basic command for installing a file into the system.=20
<P>Every Makefile should also define the variables =
<CODE>INSTALL_PROGRAM</CODE>=20
and <CODE>INSTALL_DATA</CODE>. (The default for =
<CODE>INSTALL_PROGRAM</CODE>=20
should be <CODE>$(INSTALL)</CODE>; the default for =
<CODE>INSTALL_DATA</CODE>=20
should be <CODE>${INSTALL} -m 644</CODE>.) Then it should use those =
variables as=20
the commands for actual installation, for executables and =
non-executables=20
respectively. Minimal use of these variables is as follows: <PRE =
class=3Dexample>     $(INSTALL_PROGRAM) foo $(bindir)/foo
     $(INSTALL_DATA) libfoo.a $(libdir)/libfoo.a
</PRE>
<P>However, it is preferable to support a <CODE>DESTDIR</CODE> prefix on =
the=20
target files, as explained in the next section.=20
<P class=3Dnoindent>Always use a file name, not a directory name, as the =
second=20
argument of the installation commands. Use a separate command for each =
file to=20
be installed.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DDESTDIR></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Directory-Variab=
les"=20
rel=3Dnext>Directory Variables</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Command-Variable=
s"=20
rel=3Dprevious>Command Variables</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions"=20
rel=3Dup>Makefile Conventions</A> </DIV>
<H4 class=3Dsubsection>7.2.4 <CODE>DESTDIR</CODE>: support for staged=20
installs</H4>
<P><A name=3Dindex-DESTDIR-116></A><A =
name=3Dindex-staged-installs-117></A><A=20
name=3Dindex-installations_002c-staged-118></A><CODE>DESTDIR</CODE> is a =
variable=20
prepended to each installed target file, like this: <PRE =
class=3Dexample>     $(INSTALL_PROGRAM) foo $(DESTDIR)$(bindir)/foo
     $(INSTALL_DATA) libfoo.a $(DESTDIR)$(libdir)/libfoo.a
</PRE>
<P>The <CODE>DESTDIR</CODE> variable is specified by the user on the=20
<CODE>make</CODE> command line. For example: <PRE class=3Dexample>     =
make DESTDIR=3D/tmp/stage install
</PRE>
<P class=3Dnoindent><CODE>DESTDIR</CODE> should be supported only in the =

<CODE>install*</CODE> and <CODE>uninstall*</CODE> targets, as those are =
the only=20
targets where it is useful.=20
<P>If your installation step would normally install <SAMP><SPAN=20
class=3Dfile>/usr/local/bin/foo</SPAN></SAMP> and <SAMP><SPAN=20
class=3Dfile>/usr/local/lib/libfoo.a</SPAN></SAMP>, then an installation =
invoked=20
as in the example above would install <SAMP><SPAN=20
class=3Dfile>/tmp/stage/usr/local/bin/foo</SPAN></SAMP> and <SAMP><SPAN=20
class=3Dfile>/tmp/stage/usr/local/lib/libfoo.a</SPAN></SAMP> instead.=20
<P>Prepending the variable <CODE>DESTDIR</CODE> to each target in this =
way=20
provides for <DFN>staged installs</DFN>, where the installed files are =
not=20
placed directly into their expected location but are instead copied into =
a=20
temporary location (<CODE>DESTDIR</CODE>). However, installed files =
maintain=20
their relative directory structure and any embedded file names will not =
be=20
modified.=20
<P>You should not set the value of <CODE>DESTDIR</CODE> in your =
<SAMP><SPAN=20
class=3Dfile>Makefile</SPAN></SAMP> at all; then the files are installed =
into=20
their expected locations by default. Also, specifying =
<CODE>DESTDIR</CODE>=20
should not change the operation of the software in any way, so its value =
should=20
not be included in any file contents.=20
<P><CODE>DESTDIR</CODE> support is commonly used in package creation. It =
is also=20
helpful to users who want to understand what a given package will =
install where,=20
and to allow users who don't normally have permissions to install into =
protected=20
areas to build and install before gaining those permissions. Finally, it =
can be=20
useful with tools such as <CODE>stow</CODE>, where code is installed in =
one=20
place but made to appear to be installed somewhere else using symbolic =
links or=20
special mount operations. So, we strongly recommend GNU packages support =

<CODE>DESTDIR</CODE>, though it is not an absolute requirement.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DDirectory-Variables></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Standard-Targets=
"=20
rel=3Dnext>Standard Targets</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#DESTDIR"=20
rel=3Dprevious>DESTDIR</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions"=20
rel=3Dup>Makefile Conventions</A> </DIV>
<H4 class=3Dsubsection>7.2.5 Variables for Installation Directories</H4>
<P>Installation directories should always be named by variables, so it =
is easy=20
to install in a nonstandard place. The standard names for these =
variables and=20
the values they should have in GNU packages are described below. They =
are based=20
on a standard file system layout; variants of it are used in GNU/Linux =
and other=20
modern operating systems.=20
<P>Installers are expected to override these values when calling =
<SAMP><SPAN=20
class=3Dcommand>make</SPAN></SAMP> (e.g., <KBD>make prefix=3D/usr =
install</KBD> or=20
<SAMP><SPAN class=3Dcommand>configure</SPAN></SAMP> (e.g., =
<KBD>configure=20
--prefix=3D/usr</KBD>). GNU packages should not try to guess which value =
should be=20
appropriate for these variables on the system they are being installed =
onto: use=20
the default settings specified here so that all GNU packages behave =
identically,=20
allowing the installer to achieve any desired layout.=20
<P>These first two variables set the root for the installation. All the =
other=20
installation directories should be subdirectories of one of these two, =
and=20
nothing should be directly installed into these two directories.=20
<DL>
  <DT><CODE>prefix</CODE>
  <DD><A name=3Dindex-prefix-119></A>A prefix used in constructing the =
default=20
  values of the variables listed below. The default value of =
<CODE>prefix</CODE>=20
  should be <SAMP><SPAN class=3Dfile>/usr/local</SPAN></SAMP>. When =
building the=20
  complete GNU system, the prefix will be empty and <SAMP><SPAN=20
  class=3Dfile>/usr</SPAN></SAMP> will be a symbolic link to <SAMP><SPAN =

  class=3Dfile>/</SPAN></SAMP>. (If you are using Autoconf, write it as=20
  `<SAMP><SPAN class=3Dsamp>@prefix@</SPAN></SAMP>'.)=20
  <P>Running `<SAMP><SPAN class=3Dsamp>make install</SPAN></SAMP>' with =
a=20
  different value of <CODE>prefix</CODE> from the one used to build the =
program=20
  should <EM>not</EM> recompile the program. <BR></P>
  <DT><CODE>exec_prefix</CODE>
  <DD><A name=3Dindex-exec_005fprefix-120></A>A prefix used in =
constructing the=20
  default values of some of the variables listed below. The default =
value of=20
  <CODE>exec_prefix</CODE> should be <CODE>$(prefix)</CODE>. (If you are =
using=20
  Autoconf, write it as `<SAMP><SPAN =
class=3Dsamp>@exec_prefix@</SPAN></SAMP>'.)=20
  <P>Generally, <CODE>$(exec_prefix)</CODE> is used for directories that =
contain=20
  machine-specific files (such as executables and subroutine libraries), =
while=20
  <CODE>$(prefix)</CODE> is used directly for other directories.=20
  <P>Running `<SAMP><SPAN class=3Dsamp>make install</SPAN></SAMP>' with =
a=20
  different value of <CODE>exec_prefix</CODE> from the one used to build =
the=20
  program should <EM>not</EM> recompile the program. </P></DD></DL>
<P>Executable programs are installed in one of the following =
directories.=20
<DL>
  <DT><CODE>bindir</CODE>
  <DD><A name=3Dindex-bindir-121></A>The directory for installing =
executable=20
  programs that users can run. This should normally be <SAMP><SPAN=20
  class=3Dfile>/usr/local/bin</SPAN></SAMP>, but write it as <SAMP><SPAN =

  class=3Dfile>$(exec_prefix)/bin</SPAN></SAMP>. (If you are using =
Autoconf, write=20
  it as `<SAMP><SPAN class=3Dsamp>@bindir@</SPAN></SAMP>'.) <BR>
  <DT><CODE>sbindir</CODE>
  <DD><A name=3Dindex-sbindir-122></A>The directory for installing =
executable=20
  programs that can be run from the shell, but are only generally useful =
to=20
  system administrators. This should normally be <SAMP><SPAN=20
  class=3Dfile>/usr/local/sbin</SPAN></SAMP>, but write it as =
<SAMP><SPAN=20
  class=3Dfile>$(exec_prefix)/sbin</SPAN></SAMP>. (If you are using =
Autoconf,=20
  write it as `<SAMP><SPAN class=3Dsamp>@sbindir@</SPAN></SAMP>'.) <BR>
  <DT><CODE>libexecdir</CODE>
  <DD><A name=3Dindex-libexecdir-123></A><!-- This paragraph adjusted to =
avoid overfull hbox -roland 5jul94 -->The=20
  directory for installing executable programs to be run by other =
programs=20
  rather than by users. This directory should normally be <SAMP><SPAN=20
  class=3Dfile>/usr/local/libexec</SPAN></SAMP>, but write it as =
<SAMP><SPAN=20
  class=3Dfile>$(exec_prefix)/libexec</SPAN></SAMP>. (If you are using =
Autoconf,=20
  write it as `<SAMP><SPAN class=3Dsamp>@libexecdir@</SPAN></SAMP>'.)=20
  <P>The definition of `<SAMP><SPAN =
class=3Dsamp>libexecdir</SPAN></SAMP>' is the=20
  same for all packages, so you should install your data in a =
subdirectory=20
  thereof. Most packages install their data under <SAMP><SPAN=20
  class=3Dfile>$(libexecdir)/</SPAN><VAR>package-name</VAR><SPAN=20
  class=3Dfile>/</SPAN></SAMP>, possibly within additional =
subdirectories thereof,=20
  such as <SAMP><SPAN=20
  class=3Dfile>$(libexecdir)/</SPAN><VAR>package-name</VAR><SPAN=20
  class=3Dfile>/</SPAN><VAR>machine</VAR><SPAN=20
  class=3Dfile>/</SPAN><VAR>version</VAR></SAMP>. </P></DD></DL>
<P>Data files used by the program during its execution are divided into=20
categories in two ways.=20
<UL>
  <LI>Some files are normally modified by programs; others are never =
normally=20
  modified (though users may edit some of these).=20
  <LI>Some files are architecture-independent and can be shared by all =
machines=20
  at a site; some are architecture-dependent and can be shared only by =
machines=20
  of the same kind and operating system; others may never be shared =
between two=20
  machines. </LI></UL>
<P>This makes for six different possibilities. However, we want to =
discourage=20
the use of architecture-dependent files, aside from object files and =
libraries.=20
It is much cleaner to make other data files architecture-independent, =
and it is=20
generally not hard.=20
<P>Here are the variables Makefiles should use to specify directories to =
put=20
these various kinds of files in:=20
<DL>
  <DT>`<SAMP><SPAN class=3Dsamp>datarootdir</SPAN></SAMP>'
  <DD>The root of the directory tree for read-only =
architecture-independent data=20
  files. This should normally be <SAMP><SPAN=20
  class=3Dfile>/usr/local/share</SPAN></SAMP>, but write it as =
<SAMP><SPAN=20
  class=3Dfile>$(prefix)/share</SPAN></SAMP>. (If you are using =
Autoconf, write it=20
  as `<SAMP><SPAN class=3Dsamp>@datarootdir@</SPAN></SAMP>'.) =
`<SAMP><SPAN=20
  class=3Dsamp>datadir</SPAN></SAMP>''s default value is based on this =
variable;=20
  so are `<SAMP><SPAN class=3Dsamp>infodir</SPAN></SAMP>', `<SAMP><SPAN=20
  class=3Dsamp>mandir</SPAN></SAMP>', and others. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>datadir</SPAN></SAMP>'
  <DD>The directory for installing idiosyncratic read-only=20
  architecture-independent data files for this program. This is usually =
the same=20
  place as `<SAMP><SPAN class=3Dsamp>datarootdir</SPAN></SAMP>', but we =
use the=20
  two separate variables so that you can move these program-specific =
files=20
  without altering the location for Info files, man pages, etc.=20
  <P>This should normally be <SAMP><SPAN=20
  class=3Dfile>/usr/local/share</SPAN></SAMP>, but write it as =
<SAMP><SPAN=20
  class=3Dfile>$(datarootdir)</SPAN></SAMP>. (If you are using Autoconf, =
write it=20
  as `<SAMP><SPAN class=3Dsamp>@datadir@</SPAN></SAMP>'.)=20
  <P>The definition of `<SAMP><SPAN class=3Dsamp>datadir</SPAN></SAMP>' =
is the=20
  same for all packages, so you should install your data in a =
subdirectory=20
  thereof. Most packages install their data under <SAMP><SPAN=20
  class=3Dfile>$(datadir)/</SPAN><VAR>package-name</VAR><SPAN=20
  class=3Dfile>/</SPAN></SAMP>. <BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>sysconfdir</SPAN></SAMP>'
  <DD>The directory for installing read-only data files that pertain to =
a single=20
  machine=96that is to say, files for configuring a host. Mailer and =
network=20
  configuration files, <SAMP><SPAN =
class=3Dfile>/etc/passwd</SPAN></SAMP>, and so=20
  forth belong here. All the files in this directory should be ordinary =
ASCII=20
  text files. This directory should normally be <SAMP><SPAN=20
  class=3Dfile>/usr/local/etc</SPAN></SAMP>, but write it as <SAMP><SPAN =

  class=3Dfile>$(prefix)/etc</SPAN></SAMP>. (If you are using Autoconf, =
write it=20
  as `<SAMP><SPAN class=3Dsamp>@sysconfdir@</SPAN></SAMP>'.)=20
  <P>Do not install executables here in this directory (they probably =
belong in=20
  <SAMP><SPAN class=3Dfile>$(libexecdir)</SPAN></SAMP> or <SAMP><SPAN=20
  class=3Dfile>$(sbindir)</SPAN></SAMP>). Also do not install files that =
are=20
  modified in the normal course of their use (programs whose purpose is =
to=20
  change the configuration of the system excluded). Those probably =
belong in=20
  <SAMP><SPAN class=3Dfile>$(localstatedir)</SPAN></SAMP>. <BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>sharedstatedir</SPAN></SAMP>'
  <DD>The directory for installing architecture-independent data files =
which the=20
  programs modify while they run. This should normally be <SAMP><SPAN=20
  class=3Dfile>/usr/local/com</SPAN></SAMP>, but write it as <SAMP><SPAN =

  class=3Dfile>$(prefix)/com</SPAN></SAMP>. (If you are using Autoconf, =
write it=20
  as `<SAMP><SPAN class=3Dsamp>@sharedstatedir@</SPAN></SAMP>'.) <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>localstatedir</SPAN></SAMP>'
  <DD>The directory for installing data files which the programs modify =
while=20
  they run, and that pertain to one specific machine. Users should never =
need to=20
  modify files in this directory to configure the package's operation; =
put such=20
  configuration information in separate files that go in <SAMP><SPAN=20
  class=3Dfile>$(datadir)</SPAN></SAMP> or <SAMP><SPAN=20
  class=3Dfile>$(sysconfdir)</SPAN></SAMP>. <SAMP><SPAN=20
  class=3Dfile>$(localstatedir)</SPAN></SAMP> should normally be =
<SAMP><SPAN=20
  class=3Dfile>/usr/local/var</SPAN></SAMP>, but write it as <SAMP><SPAN =

  class=3Dfile>$(prefix)/var</SPAN></SAMP>. (If you are using Autoconf, =
write it=20
  as `<SAMP><SPAN class=3Dsamp>@localstatedir@</SPAN></SAMP>'.) =
</DD></DL>
<P>These variables specify the directory for installing certain specific =
types=20
of files, if your program has them. Every GNU package should have Info =
files, so=20
every program needs `<SAMP><SPAN class=3Dsamp>infodir</SPAN></SAMP>', =
but not all=20
need `<SAMP><SPAN class=3Dsamp>libdir</SPAN></SAMP>' or `<SAMP><SPAN=20
class=3Dsamp>lispdir</SPAN></SAMP>'.=20
<DL>
  <DT>`<SAMP><SPAN class=3Dsamp>includedir</SPAN></SAMP>'
  <DD><!-- rewritten to avoid overfull hbox -roland -->The directory for =

  installing header files to be included by user programs with the C=20
  `<SAMP><SPAN class=3Dsamp>#include</SPAN></SAMP>' preprocessor =
directive. This=20
  should normally be <SAMP><SPAN =
class=3Dfile>/usr/local/include</SPAN></SAMP>,=20
  but write it as <SAMP><SPAN =
class=3Dfile>$(prefix)/include</SPAN></SAMP>. (If=20
  you are using Autoconf, write it as `<SAMP><SPAN=20
  class=3Dsamp>@includedir@</SPAN></SAMP>'.)=20
  <P>Most compilers other than GCC do not look for header files in =
directory=20
  <SAMP><SPAN class=3Dfile>/usr/local/include</SPAN></SAMP>. So =
installing the=20
  header files this way is only useful with GCC. Sometimes this is not a =
problem=20
  because some libraries are only really intended to work with GCC. But =
some=20
  libraries are intended to work with other compilers. They should =
install their=20
  header files in two places, one specified by <CODE>includedir</CODE> =
and one=20
  specified by <CODE>oldincludedir</CODE>. <BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>oldincludedir</SPAN></SAMP>'
  <DD>The directory for installing `<SAMP><SPAN=20
  class=3Dsamp>#include</SPAN></SAMP>' header files for use with =
compilers other=20
  than GCC. This should normally be <SAMP><SPAN=20
  class=3Dfile>/usr/include</SPAN></SAMP>. (If you are using Autoconf, =
you can=20
  write it as `<SAMP><SPAN class=3Dsamp>@oldincludedir@</SPAN></SAMP>'.) =

  <P>The Makefile commands should check whether the value of=20
  <CODE>oldincludedir</CODE> is empty. If it is, they should not try to =
use it;=20
  they should cancel the second installation of the header files.=20
  <P>A package should not replace an existing header in this directory =
unless=20
  the header came from the same package. Thus, if your Foo package =
provides a=20
  header file <SAMP><SPAN class=3Dfile>foo.h</SPAN></SAMP>, then it =
should install=20
  the header file in the <CODE>oldincludedir</CODE> directory if either =
(1)=20
  there is no <SAMP><SPAN class=3Dfile>foo.h</SPAN></SAMP> there or (2) =
the=20
  <SAMP><SPAN class=3Dfile>foo.h</SPAN></SAMP> that exists came from the =
Foo=20
  package.=20
  <P>To tell whether <SAMP><SPAN class=3Dfile>foo.h</SPAN></SAMP> came =
from the=20
  Foo package, put a magic string in the file=97part of a comment=97and=20
  <CODE>grep</CODE> for that string. <BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>docdir</SPAN></SAMP>'
  <DD>The directory for installing documentation files (other than Info) =
for=20
  this package. By default, it should be <SAMP><SPAN=20
  class=3Dfile>/usr/local/share/doc/</SPAN><VAR>yourpkg</VAR></SAMP>, =
but it=20
  should be written as <SAMP><SPAN=20
  class=3Dfile>$(datarootdir)/doc/</SPAN><VAR>yourpkg</VAR></SAMP>. (If =
you are=20
  using Autoconf, write it as `<SAMP><SPAN =
class=3Dsamp>@docdir@</SPAN></SAMP>'.)=20
  The <VAR>yourpkg</VAR> subdirectory, which may include a version =
number,=20
  prevents collisions among files with common names, such as <SAMP><SPAN =

  class=3Dfile>README</SPAN></SAMP>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>infodir</SPAN></SAMP>'
  <DD>The directory for installing the Info files for this package. By =
default,=20
  it should be <SAMP><SPAN =
class=3Dfile>/usr/local/share/info</SPAN></SAMP>, but=20
  it should be written as <SAMP><SPAN=20
  class=3Dfile>$(datarootdir)/info</SPAN></SAMP>. (If you are using =
Autoconf,=20
  write it as `<SAMP><SPAN class=3Dsamp>@infodir@</SPAN></SAMP>'.)=20
  <CODE>infodir</CODE> is separate from <CODE>docdir</CODE> for =
compatibility=20
  with existing practice. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>htmldir</SPAN></SAMP>'
  <DT>`<SAMP><SPAN class=3Dsamp>dvidir</SPAN></SAMP>'
  <DT>`<SAMP><SPAN class=3Dsamp>pdfdir</SPAN></SAMP>'
  <DT>`<SAMP><SPAN class=3Dsamp>psdir</SPAN></SAMP>'
  <DD>Directories for installing documentation files in the particular =
format.=20
  They should all be set to <CODE>$(docdir)</CODE> by default. (If you =
are using=20
  Autoconf, write them as `<SAMP><SPAN =
class=3Dsamp>@htmldir@</SPAN></SAMP>',=20
  `<SAMP><SPAN class=3Dsamp>@dvidir@</SPAN></SAMP>', etc.) Packages =
which supply=20
  several translations of their documentation should install them in=20
  `<SAMP><SPAN class=3Dsamp>$(htmldir)/</SPAN></SAMP>'<VAR>ll</VAR>, =
`<SAMP><SPAN=20
  class=3Dsamp>$(pdfdir)/</SPAN></SAMP>'<VAR>ll</VAR>, etc. where =
<VAR>ll</VAR> is=20
  a locale abbreviation such as `<SAMP><SPAN =
class=3Dsamp>en</SPAN></SAMP>' or=20
  `<SAMP><SPAN class=3Dsamp>pt_BR</SPAN></SAMP>'. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>libdir</SPAN></SAMP>'
  <DD>The directory for object files and libraries of object code. Do =
not=20
  install executables here, they probably ought to go in <SAMP><SPAN=20
  class=3Dfile>$(libexecdir)</SPAN></SAMP> instead. The value of=20
  <CODE>libdir</CODE> should normally be <SAMP><SPAN=20
  class=3Dfile>/usr/local/lib</SPAN></SAMP>, but write it as <SAMP><SPAN =

  class=3Dfile>$(exec_prefix)/lib</SPAN></SAMP>. (If you are using =
Autoconf, write=20
  it as `<SAMP><SPAN class=3Dsamp>@libdir@</SPAN></SAMP>'.) <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>lispdir</SPAN></SAMP>'
  <DD>The directory for installing any Emacs Lisp files in this package. =
By=20
  default, it should be <SAMP><SPAN=20
  class=3Dfile>/usr/local/share/emacs/site-lisp</SPAN></SAMP>, but it =
should be=20
  written as <SAMP><SPAN=20
  class=3Dfile>$(datarootdir)/emacs/site-lisp</SPAN></SAMP>.=20
  <P>If you are using Autoconf, write the default as `<SAMP><SPAN=20
  class=3Dsamp>@lispdir@</SPAN></SAMP>'. In order to make `<SAMP><SPAN=20
  class=3Dsamp>@lispdir@</SPAN></SAMP>' work, you need the following =
lines in your=20
  <SAMP><SPAN class=3Dfile>configure.in</SPAN></SAMP> file: <PRE =
class=3Dexample>          lispdir=3D'${datarootdir}/emacs/site-lisp'
          AC_SUBST(lispdir)
     </PRE><BR>
  <DT>`<SAMP><SPAN class=3Dsamp>localedir</SPAN></SAMP>'
  <DD>The directory for installing locale-specific message catalogs for =
this=20
  package. By default, it should be <SAMP><SPAN=20
  class=3Dfile>/usr/local/share/locale</SPAN></SAMP>, but it should be =
written as=20
  <SAMP><SPAN class=3Dfile>$(datarootdir)/locale</SPAN></SAMP>. (If you =
are using=20
  Autoconf, write it as `<SAMP><SPAN =
class=3Dsamp>@localedir@</SPAN></SAMP>'.)=20
  This directory usually has a subdirectory per locale. </DD></DL>
<P>Unix-style man pages are installed in one of the following:=20
<DL>
  <DT>`<SAMP><SPAN class=3Dsamp>mandir</SPAN></SAMP>'
  <DD>The top-level directory for installing the man pages (if any) for =
this=20
  package. It will normally be <SAMP><SPAN=20
  class=3Dfile>/usr/local/share/man</SPAN></SAMP>, but you should write =
it as=20
  <SAMP><SPAN class=3Dfile>$(datarootdir)/man</SPAN></SAMP>. (If you are =
using=20
  Autoconf, write it as `<SAMP><SPAN =
class=3Dsamp>@mandir@</SPAN></SAMP>'.) <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>man1dir</SPAN></SAMP>'
  <DD>The directory for installing section 1 man pages. Write it as =
<SAMP><SPAN=20
  class=3Dfile>$(mandir)/man1</SPAN></SAMP>. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>man2dir</SPAN></SAMP>'
  <DD>The directory for installing section 2 man pages. Write it as =
<SAMP><SPAN=20
  class=3Dfile>$(mandir)/man2</SPAN></SAMP> <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>...</SPAN></SAMP>'
  <DD><STRONG>Don't make the primary documentation for any GNU software =
be a man=20
  page. Write a manual in Texinfo instead. Man pages are just for the =
sake of=20
  people running GNU software on Unix, which is a secondary application=20
  only.</STRONG> <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>manext</SPAN></SAMP>'
  <DD>The file name extension for the installed man page. This should =
contain a=20
  period followed by the appropriate digit; it should normally be =
`<SAMP><SPAN=20
  class=3Dsamp>.1</SPAN></SAMP>'. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>man1ext</SPAN></SAMP>'
  <DD>The file name extension for installed section 1 man pages. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>man2ext</SPAN></SAMP>'
  <DD>The file name extension for installed section 2 man pages. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>...</SPAN></SAMP>'
  <DD>Use these names instead of `<SAMP><SPAN =
class=3Dsamp>manext</SPAN></SAMP>'=20
  if the package needs to install man pages in more than one section of =
the=20
  manual. </DD></DL>
<P>And finally, you should set the following variable:=20
<DL>
  <DT>`<SAMP><SPAN class=3Dsamp>srcdir</SPAN></SAMP>'
  <DD>The directory for the sources being compiled. The value of this =
variable=20
  is normally inserted by the <CODE>configure</CODE> shell script. (If =
you are=20
  using Autoconf, use `<SAMP><SPAN class=3Dsamp>srcdir =3D =
@srcdir@</SPAN></SAMP>'.)=20
  </DD></DL>
<P>For example: <PRE class=3Dsmallexample>     <!-- I have changed some =
of the comments here slightly to fix an overfull -->
     <!-- hbox, so the make manual can format correctly. -roland -->
     # Common prefix for installation directories.
     # NOTE: This directory must exist when you start the install.
     prefix =3D /usr/local
     datarootdir =3D $(prefix)/share
     datadir =3D $(datarootdir)
     exec_prefix =3D $(prefix)
     # Where to put the executable for the command `gcc'.
     bindir =3D $(exec_prefix)/bin
     # Where to put the directories used by the compiler.
     libexecdir =3D $(exec_prefix)/libexec
     # Where to put the Info files.
     infodir =3D $(datarootdir)/info
</PRE>
<P>If your program installs a large number of files into one of the =
standard=20
user-specified directories, it might be useful to group them into a =
subdirectory=20
particular to that program. If you do this, you should write the=20
<CODE>install</CODE> rule to create these subdirectories.=20
<P>Do not expect the user to include the subdirectory name in the value =
of any=20
of the variables listed above. The idea of having a uniform set of =
variable=20
names for installation directories is to enable the user to specify the =
exact=20
same values for several different GNU packages. In order for this to be =
useful,=20
all the packages must be designed so that they will work sensibly when =
the user=20
does so.=20
<P>At times, not all of these variables may be implemented in the =
current=20
release of Autoconf and/or Automake; but as of Autoconf&nbsp;<!-- /@w =
-->2.60,=20
we believe all of them are. When any are missing, the descriptions here =
serve as=20
specifications for what Autoconf will implement. As a programmer, you =
can either=20
use a development version of Autoconf or avoid using these variables =
until a=20
stable release is made which supports them.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DStandard-Targets></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Install-Command-=
Categories"=20
rel=3Dnext>Install Command Categories</A>, Previous:&nbsp;<A =
accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Directory-Variab=
les"=20
rel=3Dprevious>Directory Variables</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions"=20
rel=3Dup>Makefile Conventions</A> </DIV>
<H4 class=3Dsubsection>7.2.6 Standard Targets for Users</H4>
<P>All GNU programs should have the following targets in their =
Makefiles:=20
<DL>
  <DT>`<SAMP><SPAN class=3Dsamp>all</SPAN></SAMP>'
  <DD>Compile the entire program. This should be the default target. =
This target=20
  need not rebuild any documentation files; Info files should normally =
be=20
  included in the distribution, and DVI (and other documentation format) =
files=20
  should be made only when explicitly asked for.=20
  <P>By default, the Make rules should compile and link with =
`<SAMP><SPAN=20
  class=3Dsamp>-g</SPAN></SAMP>', so that executable programs have =
debugging=20
  symbols. Users who don't mind being helpless can strip the executables =
later=20
  if they wish. <BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>install</SPAN></SAMP>'
  <DD>Compile the program and copy the executables, libraries, and so on =
to the=20
  file names where they should reside for actual use. If there is a =
simple test=20
  to verify that a program is properly installed, this target should run =
that=20
  test.=20
  <P>Do not strip executables when installing them. Devil-may-care users =
can use=20
  the <CODE>install-strip</CODE> target to do that.=20
  <P>If possible, write the <CODE>install</CODE> target rule so that it =
does not=20
  modify anything in the directory where the program was built, provided =

  `<SAMP><SPAN class=3Dsamp>make all</SPAN></SAMP>' has just been done. =
This is=20
  convenient for building the program under one user name and installing =
it=20
  under another.=20
  <P>The commands should create all the directories in which files are =
to be=20
  installed, if they don't already exist. This includes the directories=20
  specified as the values of the variables <CODE>prefix</CODE> and=20
  <CODE>exec_prefix</CODE>, as well as all subdirectories that are =
needed. One=20
  way to do this is by means of an <CODE>installdirs</CODE> target as =
described=20
  below.=20
  <P>Use `<SAMP><SPAN class=3Dsamp>-</SPAN></SAMP>' before any command =
for=20
  installing a man page, so that <CODE>make</CODE> will ignore any =
errors. This=20
  is in case there are systems that don't have the Unix man page =
documentation=20
  system installed.=20
  <P>The way to install Info files is to copy them into <SAMP><SPAN=20
  class=3Dfile>$(infodir)</SPAN></SAMP> with =
<CODE>$(INSTALL_DATA)</CODE> (see <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command-Variable=
s">Command=20
  Variables</A>), and then run the <CODE>install-info</CODE> program if =
it is=20
  present. <CODE>install-info</CODE> is a program that edits the Info=20
  <SAMP><SPAN class=3Dfile>dir</SPAN></SAMP> file to add or update the =
menu entry=20
  for the given Info file; it is part of the Texinfo package. Here is a =
sample=20
  rule to install an Info file: <!-- This example has been carefully =
formatted for the Make manual. --><!-- Please do not reformat it without =
talking to bug-make@gnu.org. --><PRE class=3Dsmallexample>          =
$(DESTDIR)$(infodir)/foo.info: foo.info
                  $(POST_INSTALL)
          # There may be a newer info file in . than in srcdir.
                  -if test -f foo.info; then d=3D.; \
                   else d=3D$(srcdir); fi; \
                  $(INSTALL_DATA) $$d/foo.info $(DESTDIR)$@; \
          # Run install-info only if it exists.
          # Use `if' instead of just prepending `-' to the
          # line so we notice real errors from install-info.
          # We use `$(SHELL) -c' because some shells do not
          # fail gracefully when there is an unknown command.
                  if $(SHELL) -c 'install-info --version' \
                     &gt;/dev/null 2&gt;&amp;1; then \
                    install-info --dir-file=3D$(DESTDIR)$(infodir)/dir \
                                 $(DESTDIR)$(infodir)/foo.info; \
                  else true; fi
     </PRE>
  <P>When writing the <CODE>install</CODE> target, you must classify all =
the=20
  commands into three categories: normal ones, =
<DFN>pre-installation</DFN>=20
  commands and <DFN>post-installation</DFN> commands. See <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Install-Command-=
Categories">Install=20
  Command Categories</A>. <BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>install-html</SPAN></SAMP>'
  <DT>`<SAMP><SPAN class=3Dsamp>install-dvi</SPAN></SAMP>'
  <DT>`<SAMP><SPAN class=3Dsamp>install-pdf</SPAN></SAMP>'
  <DT>`<SAMP><SPAN class=3Dsamp>install-ps</SPAN></SAMP>'
  <DD>These targets install documentation in formats other than Info; =
they're=20
  intended to be called explicitly by the person installing the package, =
if that=20
  format is desired. GNU prefers Info files, so these must be installed =
by the=20
  <CODE>install</CODE> target.=20
  <P>When you have many documentation files to install, we recommend =
that you=20
  avoid collisions and clutter by arranging for these targets to install =
in=20
  subdirectories of the appropriate installation directory, such as=20
  <CODE>htmldir</CODE>. As one example, if your package has multiple =
manuals,=20
  and you wish to install HTML documentation with many files (such as =
the=20
  =93split=94 mode output by <CODE>makeinfo --html</CODE>), you'll =
certainly want to=20
  use subdirectories, or two nodes with the same name in different =
manuals will=20
  overwrite each other.=20
  <P>Please make these <CODE>install-</CODE><VAR>format</VAR> targets =
invoke the=20
  commands for the <VAR>format</VAR> target, for example, by making=20
  <VAR>format</VAR> a dependency. <BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>uninstall</SPAN></SAMP>'
  <DD>Delete all the installed files=97the copies that the `<SAMP><SPAN=20
  class=3Dsamp>install</SPAN></SAMP>' and `<SAMP><SPAN=20
  class=3Dsamp>install-*</SPAN></SAMP>' targets create.=20
  <P>This rule should not modify the directories where compilation is =
done, only=20
  the directories where files are installed.=20
  <P>The uninstallation commands are divided into three categories, just =
like=20
  the installation commands. See <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Install-Command-=
Categories">Install=20
  Command Categories</A>. <BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>install-strip</SPAN></SAMP>'
  <DD>Like <CODE>install</CODE>, but strip the executable files while =
installing=20
  them. In simple cases, this target can use the <CODE>install</CODE> =
target in=20
  a simple way: <PRE class=3Dsmallexample>          install-strip:
                  $(MAKE) INSTALL_PROGRAM=3D'$(INSTALL_PROGRAM) -s' \
                          install
     </PRE>
  <P>But if the package installs scripts as well as real executables, =
the=20
  <CODE>install-strip</CODE> target can't just refer to the =
<CODE>install</CODE>=20
  target; it has to strip the executables but not the scripts.=20
  <P><CODE>install-strip</CODE> should not strip the executables in the =
build=20
  directory which are being copied for installation. It should only =
strip the=20
  copies that are installed.=20
  <P>Normally we do not recommend stripping an executable unless you are =
sure=20
  the program has no bugs. However, it can be reasonable to install a =
stripped=20
  executable for actual execution while saving the unstripped executable =

  elsewhere in case there is a bug. <!-- The gratuitous blank line here =
is to make the table look better --><!-- in the printed Make manual.  =
Please leave it in. --><BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>clean</SPAN></SAMP>'
  <DD>Delete all files in the current directory that are normally =
created by=20
  building the program. Also delete files in other directories if they =
are=20
  created by this makefile. However, don't delete the files that record =
the=20
  configuration. Also preserve files that could be made by building, but =

  normally aren't because the distribution comes with them. There is no =
need to=20
  delete parent directories that were created with `<SAMP><SPAN =
class=3Dsamp>mkdir=20
  -p</SPAN></SAMP>', since they could have existed anyway.=20
  <P>Delete <SAMP><SPAN class=3Dfile>.dvi</SPAN></SAMP> files here if =
they are not=20
  part of the distribution. <BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>distclean</SPAN></SAMP>'
  <DD>Delete all files in the current directory (or created by this =
makefile)=20
  that are created by configuring or building the program. If you have =
unpacked=20
  the source and built the program without creating any other files,=20
  `<SAMP><SPAN class=3Dsamp>make distclean</SPAN></SAMP>' should leave =
only the=20
  files that were in the distribution. However, there is no need to =
delete=20
  parent directories that were created with `<SAMP><SPAN =
class=3Dsamp>mkdir=20
  -p</SPAN></SAMP>', since they could have existed anyway. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>mostlyclean</SPAN></SAMP>'
  <DD>Like `<SAMP><SPAN class=3Dsamp>clean</SPAN></SAMP>', but may =
refrain from=20
  deleting a few files that people normally don't want to recompile. For =

  example, the `<SAMP><SPAN class=3Dsamp>mostlyclean</SPAN></SAMP>' =
target for GCC=20
  does not delete <SAMP><SPAN class=3Dfile>libgcc.a</SPAN></SAMP>, =
because=20
  recompiling it is rarely necessary and takes a lot of time. <BR>
  <DT>`<SAMP><SPAN class=3Dsamp>maintainer-clean</SPAN></SAMP>'
  <DD>Delete almost everything that can be reconstructed with this =
Makefile.=20
  This typically includes everything deleted by <CODE>distclean</CODE>, =
plus=20
  more: C source files produced by Bison, tags tables, Info files, and =
so on.=20
  <P>The reason we say =93almost everything=94 is that running the =
command=20
  `<SAMP><SPAN class=3Dsamp>make maintainer-clean</SPAN></SAMP>' should =
not delete=20
  <SAMP><SPAN class=3Dfile>configure</SPAN></SAMP> even if <SAMP><SPAN=20
  class=3Dfile>configure</SPAN></SAMP> can be remade using a rule in the =
Makefile.=20
  More generally, `<SAMP><SPAN class=3Dsamp>make =
maintainer-clean</SPAN></SAMP>'=20
  should not delete anything that needs to exist in order to run =
<SAMP><SPAN=20
  class=3Dfile>configure</SPAN></SAMP> and then begin to build the =
program. Also,=20
  there is no need to delete parent directories that were created with=20
  `<SAMP><SPAN class=3Dsamp>mkdir -p</SPAN></SAMP>', since they could =
have existed=20
  anyway. These are the only exceptions; <CODE>maintainer-clean</CODE> =
should=20
  delete everything else that can be rebuilt.=20
  <P>The `<SAMP><SPAN class=3Dsamp>maintainer-clean</SPAN></SAMP>' =
target is=20
  intended to be used by a maintainer of the package, not by ordinary =
users. You=20
  may need special tools to reconstruct some of the files that =
`<SAMP><SPAN=20
  class=3Dsamp>make maintainer-clean</SPAN></SAMP>' deletes. Since these =
files are=20
  normally included in the distribution, we don't take care to make them =
easy to=20
  reconstruct. If you find you need to unpack the full distribution =
again, don't=20
  blame us.=20
  <P>To help make users aware of this, the commands for the special=20
  <CODE>maintainer-clean</CODE> target should start with these two: <PRE =
class=3Dsmallexample>          @echo 'This command is intended for =
maintainers to use; it'
          @echo 'deletes files that may need special tools to rebuild.'
     </PRE><BR>
  <DT>`<SAMP><SPAN class=3Dsamp>TAGS</SPAN></SAMP>'
  <DD>Update a tags table for this program. <!-- ADR: how? --><BR>
  <DT>`<SAMP><SPAN class=3Dsamp>info</SPAN></SAMP>'
  <DD>Generate any Info files needed. The best way to write the rules is =
as=20
  follows: <PRE class=3Dsmallexample>          info: foo.info
         =20
          foo.info: foo.texi chap1.texi chap2.texi
                  $(MAKEINFO) $(srcdir)/foo.texi
     </PRE>
  <P class=3Dnoindent>You must define the variable <CODE>MAKEINFO</CODE> =
in the=20
  Makefile. It should run the <CODE>makeinfo</CODE> program, which is =
part of=20
  the Texinfo distribution.=20
  <P>Normally a GNU distribution comes with Info files, and that means =
the Info=20
  files are present in the source directory. Therefore, the Make rule =
for an=20
  info file should update it in the source directory. When users build =
the=20
  package, ordinarily Make will not update the Info files because they =
will=20
  already be up to date. <BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>dvi</SPAN></SAMP>'
  <DT>`<SAMP><SPAN class=3Dsamp>html</SPAN></SAMP>'
  <DT>`<SAMP><SPAN class=3Dsamp>pdf</SPAN></SAMP>'
  <DT>`<SAMP><SPAN class=3Dsamp>ps</SPAN></SAMP>'
  <DD>Generate documentation files in the given format. These targets =
should=20
  always exist, but any or all can be a no-op if the given output format =
cannot=20
  be generated. These targets should not be dependencies of the =
<CODE>all</CODE>=20
  target; the user must manually invoke them.=20
  <P>Here's an example rule for generating DVI files from Texinfo: <PRE =
class=3Dsmallexample>          dvi: foo.dvi
         =20
          foo.dvi: foo.texi chap1.texi chap2.texi
                  $(TEXI2DVI) $(srcdir)/foo.texi
     </PRE>
  <P class=3Dnoindent>You must define the variable <CODE>TEXI2DVI</CODE> =
in the=20
  Makefile. It should run the program <CODE>texi2dvi</CODE>, which is =
part of=20
  the Texinfo distribution.<A=20
  href=3D"http://www.gnu.org/prep/standards/standards.html#fn-1" =
rel=3Dfootnote=20
  name=3Dfnd-1><SUP>1</SUP></A> Alternatively, write just the =
dependencies, and=20
  allow GNU <CODE>make</CODE> to provide the command.=20
  <P>Here's another example, this one for generating HTML from Texinfo: =
<PRE class=3Dsmallexample>          html: foo.html
         =20
          foo.html: foo.texi chap1.texi chap2.texi
                  $(TEXI2HTML) $(srcdir)/foo.texi
     </PRE>
  <P class=3Dnoindent>Again, you would define the variable =
<CODE>TEXI2HTML</CODE>=20
  in the Makefile; for example, it might run <CODE>makeinfo --no-split=20
  --html</CODE> (<SAMP><SPAN class=3Dcommand>makeinfo</SPAN></SAMP> is =
part of the=20
  Texinfo distribution). <BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>dist</SPAN></SAMP>'
  <DD>Create a distribution tar file for this program. The tar file =
should be=20
  set up so that the file names in the tar file start with a =
subdirectory name=20
  which is the name of the package it is a distribution for. This name =
can=20
  include the version number.=20
  <P>For example, the distribution tar file of GCC version 1.40 unpacks =
into a=20
  subdirectory named <SAMP><SPAN class=3Dfile>gcc-1.40</SPAN></SAMP>.=20
  <P>The easiest way to do this is to create a subdirectory =
appropriately named,=20
  use <CODE>ln</CODE> or <CODE>cp</CODE> to install the proper files in =
it, and=20
  then <CODE>tar</CODE> that subdirectory.=20
  <P>Compress the tar file with <CODE>gzip</CODE>. For example, the =
actual=20
  distribution file for GCC version 1.40 is called <SAMP><SPAN=20
  class=3Dfile>gcc-1.40.tar.gz</SPAN></SAMP>.=20
  <P>The <CODE>dist</CODE> target should explicitly depend on all =
non-source=20
  files that are in the distribution, to make sure they are up to date =
in the=20
  distribution. See <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Releases">Making=
=20
  Releases</A>. <BR></P>
  <DT>`<SAMP><SPAN class=3Dsamp>check</SPAN></SAMP>'
  <DD>Perform self-tests (if any). The user must build the program =
before=20
  running the tests, but need not install the program; you should write =
the=20
  self-tests so that they work when the program is built but not =
installed.=20
</DD></DL>
<P>The following targets are suggested as conventional names, for =
programs in=20
which they are useful.=20
<DL>
  <DT><CODE>installcheck</CODE>
  <DD>Perform installation tests (if any). The user must build and =
install the=20
  program before running the tests. You should not assume that =
<SAMP><SPAN=20
  class=3Dfile>$(bindir)</SPAN></SAMP> is in the search path. <BR>
  <DT><CODE>installdirs</CODE>
  <DD>It's useful to add a target named `<SAMP><SPAN=20
  class=3Dsamp>installdirs</SPAN></SAMP>' to create the directories =
where files=20
  are installed, and their parent directories. There is a script called=20
  <SAMP><SPAN class=3Dfile>mkinstalldirs</SPAN></SAMP> which is =
convenient for=20
  this; you can find it in the Texinfo package. <!-- It's in =
/gd/gnu/lib/mkinstalldirs. -->You can use a rule like this: <!-- This =
has been carefully formatted to look decent in the Make manual. --><!-- =
Please be sure not to make it extend any further to the right.-roland =
--><PRE class=3Dsmallexample>          # Make sure all installation =
directories (e.g. $(bindir))
          # actually exist by making them if necessary.
          installdirs: mkinstalldirs
                  $(srcdir)/mkinstalldirs $(bindir) $(datadir) \
                                          $(libdir) $(infodir) \
                                          $(mandir)
     </PRE>
  <P class=3Dnoindent>or, if you wish to support <SAMP><SPAN=20
  class=3Denv>DESTDIR</SPAN></SAMP>, <PRE class=3Dsmallexample>          =
# Make sure all installation directories (e.g. $(bindir))
          # actually exist by making them if necessary.
          installdirs: mkinstalldirs
                  $(srcdir)/mkinstalldirs \
                      $(DESTDIR)$(bindir) $(DESTDIR)$(datadir) \
                      $(DESTDIR)$(libdir) $(DESTDIR)$(infodir) \
                      $(DESTDIR)$(mandir)
     </PRE>
  <P>This rule should not modify the directories where compilation is =
done. It=20
  should do nothing but create installation directories. </P></DD></DL>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DInstall-Command-Categories></A>Previous:&nbsp;<A accessKey=3Dp =

href=3D"http://www.gnu.org/prep/standards/standards.html#Standard-Targets=
"=20
rel=3Dprevious>Standard Targets</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions"=20
rel=3Dup>Makefile Conventions</A> </DIV>
<H4 class=3Dsubsection>7.2.7 Install Command Categories</H4>
<P><A name=3Dindex-pre_002dinstallation-commands-124></A><A=20
name=3Dindex-post_002dinstallation-commands-125></A>When writing the=20
<CODE>install</CODE> target, you must classify all the commands into =
three=20
categories: normal ones, <DFN>pre-installation</DFN> commands and=20
<DFN>post-installation</DFN> commands.=20
<P>Normal commands move files into their proper places, and set their =
modes.=20
They may not alter any files except the ones that come entirely from the =
package=20
they belong to.=20
<P>Pre-installation and post-installation commands may alter other =
files; in=20
particular, they can edit global configuration files or data bases.=20
<P>Pre-installation commands are typically executed before the normal =
commands,=20
and post-installation commands are typically run after the normal =
commands.=20
<P>The most common use for a post-installation command is to run=20
<CODE>install-info</CODE>. This cannot be done with a normal command, =
since it=20
alters a file (the Info directory) which does not come entirely and =
solely from=20
the package being installed. It is a post-installation command because =
it needs=20
to be done after the normal command which installs the package's Info =
files.=20
<P>Most programs don't need any pre-installation commands, but we have =
the=20
feature just in case it is needed.=20
<P>To classify the commands in the <CODE>install</CODE> rule into these =
three=20
categories, insert <DFN>category lines</DFN> among them. A category line =

specifies the category for the commands that follow.=20
<P>A category line consists of a tab and a reference to a special Make =
variable,=20
plus an optional comment at the end. There are three variables you can =
use, one=20
for each category; the variable name specifies the category. Category =
lines are=20
no-ops in ordinary execution because these three Make variables are =
normally=20
undefined (and you <EM>should not</EM> define them in the makefile).=20
<P>Here are the three possible category lines, each with a comment that =
explains=20
what it means: <PRE class=3Dsmallexample>             $(PRE_INSTALL)     =
# <SPAN class=3Droman>Pre-install commands follow.</SPAN>
             $(POST_INSTALL)    # <SPAN class=3Droman>Post-install =
commands follow.</SPAN>
             $(NORMAL_INSTALL)  # <SPAN class=3Droman>Normal commands =
follow.</SPAN>
</PRE>
<P>If you don't use a category line at the beginning of the =
<CODE>install</CODE>=20
rule, all the commands are classified as normal until the first category =
line.=20
If you don't use any category lines, all the commands are classified as =
normal.=20
<P>These are the category lines for <CODE>uninstall</CODE>: <PRE =
class=3Dsmallexample>             $(PRE_UNINSTALL)     # <SPAN =
class=3Droman>Pre-uninstall commands follow.</SPAN>
             $(POST_UNINSTALL)    # <SPAN class=3Droman>Post-uninstall =
commands follow.</SPAN>
             $(NORMAL_UNINSTALL)  # <SPAN class=3Droman>Normal commands =
follow.</SPAN>
</PRE>
<P>Typically, a pre-uninstall command would be used for deleting entries =
from=20
the Info directory.=20
<P>If the <CODE>install</CODE> or <CODE>uninstall</CODE> target has any=20
dependencies which act as subroutines of installation, then you should =
start=20
<EM>each</EM> dependency's commands with a category line, and start the =
main=20
target's commands with a category line also. This way, you can ensure =
that each=20
command is placed in the right category regardless of which of the =
dependencies=20
actually run.=20
<P>Pre-installation and post-installation commands should not run any =
programs=20
except for these: <PRE class=3Dexample>     [ basename bash cat chgrp =
chmod chown cmp cp dd diff echo
     egrep expand expr false fgrep find getopt grep gunzip gzip
     hostname install install-info kill ldconfig ln ls md5sum
     mkdir mkfifo mknod mv printenv pwd rm rmdir sed sort tee
     test touch true uname xargs yes
</PRE>
<P><A name=3Dindex-binary-packages-126></A>The reason for distinguishing =
the=20
commands in this way is for the sake of making binary packages. =
Typically a=20
binary package contains all the executables and other files that need to =
be=20
installed, and has its own method of installing them=97so it does not =
need to run=20
the normal installation commands. But installing the binary package does =
need to=20
execute the pre-installation and post-installation commands.=20
<P>Programs to build binary packages work by extracting the =
pre-installation and=20
post-installation commands. Here is one way of extracting the =
pre-installation=20
commands (the <SAMP><SPAN class=3Doption>-s</SPAN></SAMP> option to =
<SAMP><SPAN=20
class=3Dcommand>make</SPAN></SAMP> is needed to silence messages about =
entering=20
subdirectories): <PRE class=3Dsmallexample>     make -s -n install -o =
all \
           PRE_INSTALL=3Dpre-install \
           POST_INSTALL=3Dpost-install \
           NORMAL_INSTALL=3Dnormal-install \
       | gawk -f pre-install.awk
</PRE>
<P class=3Dnoindent>where the file <SAMP><SPAN=20
class=3Dfile>pre-install.awk</SPAN></SAMP> could contain this: <PRE =
class=3Dsmallexample>     $0 ~ /^(normal-install|post-install)[ \t]*$/ =
{on =3D 0}
     on {print $0}
     $0 ~ /^pre-install[ \t]*$/ {on =3D 1}
</PRE>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DReleases></A>Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions"=20
rel=3Dprevious>Makefile Conventions</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Managing-Release=
s"=20
rel=3Dup>Managing Releases</A> </DIV>
<H3 class=3Dsection>7.3 Making Releases</H3>
<P><A name=3Dindex-packaging-127></A>You should identify each release =
with a pair=20
of version numbers, a major version and a minor. We have no objection to =
using=20
more than two numbers, but it is very unlikely that you really need =
them.=20
<P>Package the distribution of <CODE>Foo version 69.96</CODE> up in a =
gzipped=20
tar file with the name <SAMP><SPAN =
class=3Dfile>foo-69.96.tar.gz</SPAN></SAMP>. It=20
should unpack into a subdirectory named <SAMP><SPAN=20
class=3Dfile>foo-69.96</SPAN></SAMP>.=20
<P>Building and installing the program should never modify any of the =
files=20
contained in the distribution. This means that all the files that form =
part of=20
the program in any way must be classified into <DFN>source files</DFN> =
and=20
<DFN>non-source files</DFN>. Source files are written by humans and =
never=20
changed automatically; non-source files are produced from source files =
by=20
programs under the control of the Makefile.=20
<P><A name=3Dindex-g_t_0040file_007bREADME_007d-file-128></A>The =
distribution=20
should contain a file named <SAMP><SPAN =
class=3Dfile>README</SPAN></SAMP> which=20
gives the name of the package, and a general description of what it =
does. It is=20
also good to explain the purpose of each of the first-level =
subdirectories in=20
the package, if there are any. The <SAMP><SPAN =
class=3Dfile>README</SPAN></SAMP>=20
file should either state the version number of the package, or refer to =
where in=20
the package it can be found.=20
<P>The <SAMP><SPAN class=3Dfile>README</SPAN></SAMP> file should refer =
to the file=20
<SAMP><SPAN class=3Dfile>INSTALL</SPAN></SAMP>, which should contain an=20
explanation of the installation procedure.=20
<P>The <SAMP><SPAN class=3Dfile>README</SPAN></SAMP> file should also =
refer to the=20
file which contains the copying conditions. The GNU GPL, if used, should =
be in a=20
file called <SAMP><SPAN class=3Dfile>COPYING</SPAN></SAMP>. If the GNU =
LGPL is=20
used, it should be in a file called <SAMP><SPAN=20
class=3Dfile>COPYING.LIB</SPAN></SAMP>.=20
<P>Naturally, all the source files must be in the distribution. It is =
okay to=20
include non-source files in the distribution, provided they are =
up-to-date and=20
machine-independent, so that building the distribution normally will =
never=20
modify them. We commonly include non-source files produced by Bison,=20
<CODE>lex</CODE>, TeX, and <CODE>makeinfo</CODE>; this helps avoid =
unnecessary=20
dependencies between our distributions, so that users can install =
whichever=20
packages they want to install.=20
<P>Non-source files that might actually be modified by building and =
installing=20
the program should <STRONG>never</STRONG> be included in the =
distribution. So if=20
you do distribute non-source files, always make sure they are up to date =
when=20
you make a new distribution.=20
<P>Make sure that the directory into which the distribution unpacks (as =
well as=20
any subdirectories) are all world-writable (octal mode 777). This is so =
that old=20
versions of <CODE>tar</CODE> which preserve the ownership and =
permissions of the=20
files from the tar archive will be able to extract all the files even if =
the=20
user is unprivileged.=20
<P>Make sure that all the files in the distribution are world-readable.=20
<P>Don't include any symbolic links in the distribution itself. If the =
tar file=20
contains symbolic links, then people cannot even unpack it on systems =
that don't=20
support symbolic links. Also, don't use multiple names for one file in =
different=20
directories, because certain file systems cannot handle this and that =
prevents=20
unpacking the distribution.=20
<P>Try to make sure that all the file names will be unique on MS-DOS. A =
name on=20
MS-DOS consists of up to 8 characters, optionally followed by a period =
and up to=20
three characters. MS-DOS will truncate extra characters both before and =
after=20
the period. Thus, <SAMP><SPAN class=3Dfile>foobarhacker.c</SPAN></SAMP> =
and=20
<SAMP><SPAN class=3Dfile>foobarhacker.o</SPAN></SAMP> are not ambiguous; =
they are=20
truncated to <SAMP><SPAN class=3Dfile>foobarha.c</SPAN></SAMP> and =
<SAMP><SPAN=20
class=3Dfile>foobarha.o</SPAN></SAMP>, which are distinct.=20
<P><A=20
name=3Dindex-g_t_0040file_007btexinfo_002etex_007d_002c-in-a-distribution=
-129></A>Include=20
in your distribution a copy of the <SAMP><SPAN=20
class=3Dfile>texinfo.tex</SPAN></SAMP> you used to test print any =
<SAMP><SPAN=20
class=3Dfile>*.texinfo</SPAN></SAMP> or <SAMP><SPAN=20
class=3Dfile>*.texi</SPAN></SAMP> files.=20
<P>Likewise, if your program uses small GNU software packages like =
regex,=20
getopt, obstack, or termcap, include them in the distribution file. =
Leaving them=20
out would make the distribution file a little smaller at the expense of =
possible=20
inconvenience to a user who doesn't know what other files to get.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DReferences></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Copying-This-Man=
ual"=20
rel=3Dnext>Copying This Manual</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Managing-Release=
s"=20
rel=3Dprevious>Managing Releases</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Top" =
rel=3Dup>Top</A>=20
</DIV>
<H2 class=3Dchapter>8 References to Non-Free Software and =
Documentation</H2>
<P><A name=3Dindex-references-to-non_002dfree-material-130></A>A GNU =
program=20
should not recommend use of any non-free program. We can't stop some =
people from=20
writing proprietary programs, or stop other people from using them, but =
we can=20
and should refuse to advertise them to new potential customers. =
Proprietary=20
software is a social and ethical problem, and the point of GNU is to =
solve that=20
problem.=20
<P>The GNU definition of free software is found on the GNU web site at =
<A=20
href=3D"http://www.gnu.org/philosophy/free-sw.html">http://www.gnu.org/ph=
ilosophy/free-sw.html</A>,=20
and the definition of free documentation is found at <A=20
href=3D"http://www.gnu.org/philosophy/free-doc.html">http://www.gnu.org/p=
hilosophy/free-doc.html</A>.=20
A list of important licenses and whether they qualify as free is in <A=20
href=3D"http://www.gnu.org/licenses/license-list.html">http://www.gnu.org=
/licenses/license-list.html</A>.=20
The terms =93free=94 and =93non-free=94, used in this document, refer to =
that=20
definition. If it is not clear whether a license qualifies as free under =
this=20
definition, please ask the GNU Project by writing to <A=20
href=3D"mailto:licensing@gnu.org">licensing@gnu.org</A>. We will answer, =
and if=20
the license is an important one, we will add it to the list.=20
<P>When a non-free program or system is well known, you can mention it =
in=20
passing=97that is harmless, since users who might want to use it =
probably already=20
know about it. For instance, it is fine to explain how to build your =
package on=20
top of some widely used non-free operating system, or how to use it =
together=20
with some widely used non-free program.=20
<P>However, you should give only the necessary information to help those =
who=20
already use the non-free program to use your program with it=97don't =
give, or=20
refer to, any further information about the proprietary program, and =
don't imply=20
that the proprietary program enhances your program, or that its =
existence is in=20
any way a good thing. The goal should be that people already using the=20
proprietary program will get the advice they need about how to use your =
free=20
program with it, while people who don't already use the proprietary =
program will=20
not see anything to lead them to take an interest in it.=20
<P>If a non-free program or system is obscure in your program's domain, =
your=20
program should not mention or support it at all, since doing so would =
tend to=20
popularize the non-free program more than it popularizes your program. =
(You=20
cannot hope to find many additional users among the users of Foobar if =
the users=20
of Foobar are few.)=20
<P>Sometimes a program is free software in itself but depends on a =
non-free=20
platform in order to run. For instance, many Java programs depend on the =
parts=20
of Sun's Java implementation which are not yet free software, and won't =
run on=20
the GNU Java Compiler (which does not yet have all the features) or =
won't run=20
with the GNU Java libraries. We hope this particular problem will be =
gone in a=20
few months, when Sun makes the standard Java libraries free software, =
but of=20
course the general principle remains: you should not recommend programs =
that=20
depend on non-free software to run.=20
<P>Some free programs encourage the use of non-free software. A typical =
example=20
is <SAMP><SPAN class=3Dcommand>mplayer</SPAN></SAMP>. It is free =
software in=20
itself, and the free code can handle some kinds of files. However, =
<SAMP><SPAN=20
class=3Dcommand>mplayer</SPAN></SAMP> recommends use of non-free codecs =
for other=20
kinds of files, and users that install <SAMP><SPAN=20
class=3Dcommand>mplayer</SPAN></SAMP> are very likely to install those =
codecs=20
along with it. To recommend <SAMP><SPAN =
class=3Dcommand>mplayer</SPAN></SAMP> is,=20
in effect, to recommend the non-free codecs. We must not do that, so we =
cannot=20
recommend <SAMP><SPAN class=3Dcommand>mplayer</SPAN></SAMP> either.=20
<P>In general, you should also not recommend programs that themselves =
strongly=20
recommend the use of non-free software.=20
<P>A GNU package should not refer the user to any non-free documentation =
for=20
free software. Free documentation that can be included in free operating =
systems=20
is essential for completing the GNU system, or any free operating =
system, so it=20
is a major focus of the GNU Project; to recommend use of documentation =
that we=20
are not allowed to use in GNU would weaken the impetus for the community =
to=20
produce documentation that we can include. So GNU packages should never=20
recommend non-free documentation.=20
<P>By contrast, it is ok to refer to journal articles and textbooks in =
the=20
comments of a program for explanation of how it functions, even though =
they be=20
non-free. This is because we don't include such things in the GNU system =
even if=20
we are allowed to=97they are outside the scope of an operating system =
project.=20
<P>Referring to a web site that describes or recommends a non-free =
program is in=20
effect promoting that software, so please do not make links (or mention =
by name)=20
web sites that contain such material. This policy is relevant =
particularly for=20
the web pages for a GNU package.=20
<P>Following links from nearly any web site can lead to non-free =
software; this=20
is an inescapable aspect of the nature of the web, and in itself is no =
objection=20
to linking to a site. As long as the site does not itself recommend a =
non-free=20
program, there is no need be concerned about the sites it links to for =
other=20
reasons.=20
<P>Thus, for example, you should not make a link to AT&amp;T's web site, =
because=20
that recommends AT&amp;T's non-free software packages; you should not =
make a=20
link to a site that links to AT&amp;T's site saying it is a place to get =
a=20
non-free program; but if a site you want to link to refers to AT&amp;T's =
web=20
site in some other context (such as long-distance telephone service), =
that is=20
not a problem.=20
<DIV class=3Dnode>
<P>
<HR>
<A name=3DCopying-This-Manual></A>Next:&nbsp;<A accessKey=3Dn=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Index"=20
rel=3Dnext>Index</A>, Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#References"=20
rel=3Dprevious>References</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Top" =
rel=3Dup>Top</A>=20
</DIV>
<H2 class=3Dappendix>Appendix A Copying This Manual</H2>
<UL class=3Dmenu>
  <LI><A accessKey=3D1=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#GNU-Free-Documen=
tation-License">GNU=20
  Free Documentation License</A>: License for copying this manual =
</LI></UL>
<DIV class=3Dnode>
<P>
<HR>
<A name=3DGNU-Free-Documentation-License></A>Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Copying-This-Man=
ual"=20
rel=3Dup>Copying This Manual</A> </DIV>
<H3 class=3Dappendixsec>A.1 GNU Free Documentation License</H3>
<P><A name=3Dindex-FDL_002c-GNU-Free-Documentation-License-131></A>
<DIV align=3Dcenter>Version 1.2, November 2002</DIV><PRE =
class=3Ddisplay>     Copyright =A9 2000,2001,2002 Free Software =
Foundation, Inc.
     51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA
    =20
     Everyone is permitted to copy and distribute verbatim copies
     of this license document, but changing it is not allowed.
</PRE>
<OL type=3D1 start=3D0>
  <LI>PREAMBLE=20
  <P>The purpose of this License is to make a manual, textbook, or other =

  functional and useful document <DFN>free</DFN> in the sense of =
freedom: to=20
  assure everyone the effective freedom to copy and redistribute it, =
with or=20
  without modifying it, either commercially or noncommercially. =
Secondarily,=20
  this License preserves for the author and publisher a way to get =
credit for=20
  their work, while not being considered responsible for modifications =
made by=20
  others.=20
  <P>This License is a kind of =93copyleft=94, which means that =
derivative works of=20
  the document must themselves be free in the same sense. It complements =
the GNU=20
  General Public License, which is a copyleft license designed for free=20
  software.=20
  <P>We have designed this License in order to use it for manuals for =
free=20
  software, because free software needs free documentation: a free =
program=20
  should come with manuals providing the same freedoms that the software =
does.=20
  But this License is not limited to software manuals; it can be used =
for any=20
  textual work, regardless of subject matter or whether it is published =
as a=20
  printed book. We recommend this License principally for works whose =
purpose is=20
  instruction or reference. </P>
  <LI>APPLICABILITY AND DEFINITIONS=20
  <P>This License applies to any manual or other work, in any medium, =
that=20
  contains a notice placed by the copyright holder saying it can be =
distributed=20
  under the terms of this License. Such a notice grants a world-wide,=20
  royalty-free license, unlimited in duration, to use that work under =
the=20
  conditions stated herein. The =93Document=94, below, refers to any =
such manual or=20
  work. Any member of the public is a licensee, and is addressed as =
=93you=94. You=20
  accept the license if you copy, modify or distribute the work in a way =

  requiring permission under copyright law.=20
  <P>A =93Modified Version=94 of the Document means any work containing =
the Document=20
  or a portion of it, either copied verbatim, or with modifications =
and/or=20
  translated into another language.=20
  <P>A =93Secondary Section=94 is a named appendix or a front-matter =
section of the=20
  Document that deals exclusively with the relationship of the =
publishers or=20
  authors of the Document to the Document's overall subject (or to =
related=20
  matters) and contains nothing that could fall directly within that =
overall=20
  subject. (Thus, if the Document is in part a textbook of mathematics, =
a=20
  Secondary Section may not explain any mathematics.) The relationship =
could be=20
  a matter of historical connection with the subject or with related =
matters, or=20
  of legal, commercial, philosophical, ethical or political position =
regarding=20
  them.=20
  <P>The =93Invariant Sections=94 are certain Secondary Sections whose =
titles are=20
  designated, as being those of Invariant Sections, in the notice that =
says that=20
  the Document is released under this License. If a section does not fit =
the=20
  above definition of Secondary then it is not allowed to be designated =
as=20
  Invariant. The Document may contain zero Invariant Sections. If the =
Document=20
  does not identify any Invariant Sections then there are none.=20
  <P>The =93Cover Texts=94 are certain short passages of text that are =
listed, as=20
  Front-Cover Texts or Back-Cover Texts, in the notice that says that =
the=20
  Document is released under this License. A Front-Cover Text may be at =
most 5=20
  words, and a Back-Cover Text may be at most 25 words.=20
  <P>A =93Transparent=94 copy of the Document means a machine-readable =
copy,=20
  represented in a format whose specification is available to the =
general=20
  public, that is suitable for revising the document straightforwardly =
with=20
  generic text editors or (for images composed of pixels) generic paint =
programs=20
  or (for drawings) some widely available drawing editor, and that is =
suitable=20
  for input to text formatters or for automatic translation to a variety =
of=20
  formats suitable for input to text formatters. A copy made in an =
otherwise=20
  Transparent file format whose markup, or absence of markup, has been =
arranged=20
  to thwart or discourage subsequent modification by readers is not =
Transparent.=20
  An image format is not Transparent if used for any substantial amount =
of text.=20
  A copy that is not =93Transparent=94 is called =93Opaque=94.=20
  <P>Examples of suitable formats for Transparent copies include plain =
<SPAN=20
  class=3Dsc>ascii</SPAN> without markup, Texinfo input format, LaTeX =
input=20
  format, <ACRONYM>SGML</ACRONYM> or <ACRONYM>XML</ACRONYM> using a =
publicly=20
  available <ACRONYM>DTD</ACRONYM>, and standard-conforming simple=20
  <ACRONYM>HTML</ACRONYM>, PostScript or <ACRONYM>PDF</ACRONYM> designed =
for=20
  human modification. Examples of transparent image formats include=20
  <ACRONYM>PNG</ACRONYM>, <ACRONYM>XCF</ACRONYM> and =
<ACRONYM>JPG</ACRONYM>.=20
  Opaque formats include proprietary formats that can be read and edited =
only by=20
  proprietary word processors, <ACRONYM>SGML</ACRONYM> or =
<ACRONYM>XML</ACRONYM>=20
  for which the <ACRONYM>DTD</ACRONYM> and/or processing tools are not =
generally=20
  available, and the machine-generated <ACRONYM>HTML</ACRONYM>, =
PostScript or=20
  <ACRONYM>PDF</ACRONYM> produced by some word processors for output =
purposes=20
  only.=20
  <P>The =93Title Page=94 means, for a printed book, the title page =
itself, plus=20
  such following pages as are needed to hold, legibly, the material this =
License=20
  requires to appear in the title page. For works in formats which do =
not have=20
  any title page as such, =93Title Page=94 means the text near the most =
prominent=20
  appearance of the work's title, preceding the beginning of the body of =
the=20
  text.=20
  <P>A section =93Entitled XYZ=94 means a named subunit of the Document =
whose title=20
  either is precisely XYZ or contains XYZ in parentheses following text =
that=20
  translates XYZ in another language. (Here XYZ stands for a specific =
section=20
  name mentioned below, such as =93Acknowledgements=94, =
=93Dedications=94,=20
  =93Endorsements=94, or =93History=94.) To =93Preserve the Title=94 of =
such a section when=20
  you modify the Document means that it remains a section =93Entitled =
XYZ=94=20
  according to this definition.=20
  <P>The Document may include Warranty Disclaimers next to the notice =
which=20
  states that this License applies to the Document. These Warranty =
Disclaimers=20
  are considered to be included by reference in this License, but only =
as=20
  regards disclaiming warranties: any other implication that these =
Warranty=20
  Disclaimers may have is void and has no effect on the meaning of this =
License.=20
  </P>
  <LI>VERBATIM COPYING=20
  <P>You may copy and distribute the Document in any medium, either =
commercially=20
  or noncommercially, provided that this License, the copyright notices, =
and the=20
  license notice saying this License applies to the Document are =
reproduced in=20
  all copies, and that you add no other conditions whatsoever to those =
of this=20
  License. You may not use technical measures to obstruct or control the =
reading=20
  or further copying of the copies you make or distribute. However, you =
may=20
  accept compensation in exchange for copies. If you distribute a large =
enough=20
  number of copies you must also follow the conditions in section 3.=20
  <P>You may also lend copies, under the same conditions stated above, =
and you=20
  may publicly display copies. </P>
  <LI>COPYING IN QUANTITY=20
  <P>If you publish printed copies (or copies in media that commonly =
have=20
  printed covers) of the Document, numbering more than 100, and the =
Document's=20
  license notice requires Cover Texts, you must enclose the copies in =
covers=20
  that carry, clearly and legibly, all these Cover Texts: Front-Cover =
Texts on=20
  the front cover, and Back-Cover Texts on the back cover. Both covers =
must also=20
  clearly and legibly identify you as the publisher of these copies. The =
front=20
  cover must present the full title with all words of the title equally=20
  prominent and visible. You may add other material on the covers in =
addition.=20
  Copying with changes limited to the covers, as long as they preserve =
the title=20
  of the Document and satisfy these conditions, can be treated as =
verbatim=20
  copying in other respects.=20
  <P>If the required texts for either cover are too voluminous to fit =
legibly,=20
  you should put the first ones listed (as many as fit reasonably) on =
the actual=20
  cover, and continue the rest onto adjacent pages.=20
  <P>If you publish or distribute Opaque copies of the Document =
numbering more=20
  than 100, you must either include a machine-readable Transparent copy =
along=20
  with each Opaque copy, or state in or with each Opaque copy a =
computer-network=20
  location from which the general network-using public has access to =
download=20
  using public-standard network protocols a complete Transparent copy of =
the=20
  Document, free of added material. If you use the latter option, you =
must take=20
  reasonably prudent steps, when you begin distribution of Opaque copies =
in=20
  quantity, to ensure that this Transparent copy will remain thus =
accessible at=20
  the stated location until at least one year after the last time you =
distribute=20
  an Opaque copy (directly or through your agents or retailers) of that =
edition=20
  to the public.=20
  <P>It is requested, but not required, that you contact the authors of =
the=20
  Document well before redistributing any large number of copies, to =
give them a=20
  chance to provide you with an updated version of the Document. </P>
  <LI>MODIFICATIONS=20
  <P>You may copy and distribute a Modified Version of the Document =
under the=20
  conditions of sections 2 and 3 above, provided that you release the =
Modified=20
  Version under precisely this License, with the Modified Version =
filling the=20
  role of the Document, thus licensing distribution and modification of =
the=20
  Modified Version to whoever possesses a copy of it. In addition, you =
must do=20
  these things in the Modified Version:=20
  <OL type=3DA>
    <LI>Use in the Title Page (and on the covers, if any) a title =
distinct from=20
    that of the Document, and from those of previous versions (which =
should, if=20
    there were any, be listed in the History section of the Document). =
You may=20
    use the same title as a previous version if the original publisher =
of that=20
    version gives permission.=20
    <LI>List on the Title Page, as authors, one or more persons or =
entities=20
    responsible for authorship of the modifications in the Modified =
Version,=20
    together with at least five of the principal authors of the Document =
(all of=20
    its principal authors, if it has fewer than five), unless they =
release you=20
    from this requirement.=20
    <LI>State on the Title page the name of the publisher of the =
Modified=20
    Version, as the publisher.=20
    <LI>Preserve all the copyright notices of the Document.=20
    <LI>Add an appropriate copyright notice for your modifications =
adjacent to=20
    the other copyright notices.=20
    <LI>Include, immediately after the copyright notices, a license =
notice=20
    giving the public permission to use the Modified Version under the =
terms of=20
    this License, in the form shown in the Addendum below.=20
    <LI>Preserve in that license notice the full lists of Invariant =
Sections and=20
    required Cover Texts given in the Document's license notice.=20
    <LI>Include an unaltered copy of this License.=20
    <LI>Preserve the section Entitled =93History=94, Preserve its Title, =
and add to=20
    it an item stating at least the title, year, new authors, and =
publisher of=20
    the Modified Version as given on the Title Page. If there is no =
section=20
    Entitled =93History=94 in the Document, create one stating the =
title, year,=20
    authors, and publisher of the Document as given on its Title Page, =
then add=20
    an item describing the Modified Version as stated in the previous =
sentence.=20
    <LI>Preserve the network location, if any, given in the Document for =
public=20
    access to a Transparent copy of the Document, and likewise the =
network=20
    locations given in the Document for previous versions it was based =
on. These=20
    may be placed in the =93History=94 section. You may omit a network =
location for=20
    a work that was published at least four years before the Document =
itself, or=20
    if the original publisher of the version it refers to gives =
permission.=20
    <LI>For any section Entitled =93Acknowledgements=94 or =
=93Dedications=94, Preserve=20
    the Title of the section, and preserve in the section all the =
substance and=20
    tone of each of the contributor acknowledgements and/or dedications =
given=20
    therein.=20
    <LI>Preserve all the Invariant Sections of the Document, unaltered =
in their=20
    text and in their titles. Section numbers or the equivalent are not=20
    considered part of the section titles.=20
    <LI>Delete any section Entitled =93Endorsements=94. Such a section =
may not be=20
    included in the Modified Version.=20
    <LI>Do not retitle any existing section to be Entitled =
=93Endorsements=94 or to=20
    conflict in title with any Invariant Section.=20
    <LI>Preserve any Warranty Disclaimers. </LI></OL>
  <P>If the Modified Version includes new front-matter sections or =
appendices=20
  that qualify as Secondary Sections and contain no material copied from =
the=20
  Document, you may at your option designate some or all of these =
sections as=20
  invariant. To do this, add their titles to the list of Invariant =
Sections in=20
  the Modified Version's license notice. These titles must be distinct =
from any=20
  other section titles.=20
  <P>You may add a section Entitled =93Endorsements=94, provided it =
contains nothing=20
  but endorsements of your Modified Version by various parties=97for =
example,=20
  statements of peer review or that the text has been approved by an=20
  organization as the authoritative definition of a standard.=20
  <P>You may add a passage of up to five words as a Front-Cover Text, =
and a=20
  passage of up to 25 words as a Back-Cover Text, to the end of the list =
of=20
  Cover Texts in the Modified Version. Only one passage of Front-Cover =
Text and=20
  one of Back-Cover Text may be added by (or through arrangements made =
by) any=20
  one entity. If the Document already includes a cover text for the same =
cover,=20
  previously added by you or by arrangement made by the same entity you =
are=20
  acting on behalf of, you may not add another; but you may replace the =
old one,=20
  on explicit permission from the previous publisher that added the old =
one.=20
  <P>The author(s) and publisher(s) of the Document do not by this =
License give=20
  permission to use their names for publicity for or to assert or imply=20
  endorsement of any Modified Version. </P>
  <LI>COMBINING DOCUMENTS=20
  <P>You may combine the Document with other documents released under =
this=20
  License, under the terms defined in section 4 above for modified =
versions,=20
  provided that you include in the combination all of the Invariant =
Sections of=20
  all of the original documents, unmodified, and list them all as =
Invariant=20
  Sections of your combined work in its license notice, and that you =
preserve=20
  all their Warranty Disclaimers.=20
  <P>The combined work need only contain one copy of this License, and =
multiple=20
  identical Invariant Sections may be replaced with a single copy. If =
there are=20
  multiple Invariant Sections with the same name but different contents, =
make=20
  the title of each such section unique by adding at the end of it, in=20
  parentheses, the name of the original author or publisher of that =
section if=20
  known, or else a unique number. Make the same adjustment to the =
section titles=20
  in the list of Invariant Sections in the license notice of the =
combined work.=20
  <P>In the combination, you must combine any sections Entitled =
=93History=94 in the=20
  various original documents, forming one section Entitled =
=93History=94; likewise=20
  combine any sections Entitled =93Acknowledgements=94, and any sections =
Entitled=20
  =93Dedications=94. You must delete all sections Entitled =
=93Endorsements.=94 </P>
  <LI>COLLECTIONS OF DOCUMENTS=20
  <P>You may make a collection consisting of the Document and other =
documents=20
  released under this License, and replace the individual copies of this =
License=20
  in the various documents with a single copy that is included in the=20
  collection, provided that you follow the rules of this License for =
verbatim=20
  copying of each of the documents in all other respects.=20
  <P>You may extract a single document from such a collection, and =
distribute it=20
  individually under this License, provided you insert a copy of this =
License=20
  into the extracted document, and follow this License in all other =
respects=20
  regarding verbatim copying of that document. </P>
  <LI>AGGREGATION WITH INDEPENDENT WORKS=20
  <P>A compilation of the Document or its derivatives with other =
separate and=20
  independent documents or works, in or on a volume of a storage or =
distribution=20
  medium, is called an =93aggregate=94 if the copyright resulting from =
the=20
  compilation is not used to limit the legal rights of the compilation's =
users=20
  beyond what the individual works permit. When the Document is included =
in an=20
  aggregate, this License does not apply to the other works in the =
aggregate=20
  which are not themselves derivative works of the Document.=20
  <P>If the Cover Text requirement of section 3 is applicable to these =
copies of=20
  the Document, then if the Document is less than one half of the entire =

  aggregate, the Document's Cover Texts may be placed on covers that =
bracket the=20
  Document within the aggregate, or the electronic equivalent of covers =
if the=20
  Document is in electronic form. Otherwise they must appear on printed =
covers=20
  that bracket the whole aggregate. </P>
  <LI>TRANSLATION=20
  <P>Translation is considered a kind of modification, so you may =
distribute=20
  translations of the Document under the terms of section 4. Replacing =
Invariant=20
  Sections with translations requires special permission from their =
copyright=20
  holders, but you may include translations of some or all Invariant =
Sections in=20
  addition to the original versions of these Invariant Sections. You may =
include=20
  a translation of this License, and all the license notices in the =
Document,=20
  and any Warranty Disclaimers, provided that you also include the =
original=20
  English version of this License and the original versions of those =
notices and=20
  disclaimers. In case of a disagreement between the translation and the =

  original version of this License or a notice or disclaimer, the =
original=20
  version will prevail.=20
  <P>If a section in the Document is Entitled =93Acknowledgements=94, =
=93Dedications=94,=20
  or =93History=94, the requirement (section 4) to Preserve its Title =
(section 1)=20
  will typically require changing the actual title. </P>
  <LI>TERMINATION=20
  <P>You may not copy, modify, sublicense, or distribute the Document =
except as=20
  expressly provided for under this License. Any other attempt to copy, =
modify,=20
  sublicense or distribute the Document is void, and will automatically=20
  terminate your rights under this License. However, parties who have =
received=20
  copies, or rights, from you under this License will not have their =
licenses=20
  terminated so long as such parties remain in full compliance. </P>
  <LI>FUTURE REVISIONS OF THIS LICENSE=20
  <P>The Free Software Foundation may publish new, revised versions of =
the GNU=20
  Free Documentation License from time to time. Such new versions will =
be=20
  similar in spirit to the present version, but may differ in detail to =
address=20
  new problems or concerns. See <A=20
  =
href=3D"http://www.gnu.org/copyleft/">http://www.gnu.org/copyleft/</A>.=20
  <P>Each version of the License is given a distinguishing version =
number. If=20
  the Document specifies that a particular numbered version of this =
License =93or=20
  any later version=94 applies to it, you have the option of following =
the terms=20
  and conditions either of that specified version or of any later =
version that=20
  has been published (not as a draft) by the Free Software Foundation. =
If the=20
  Document does not specify a version number of this License, you may =
choose any=20
  version ever published (not as a draft) by the Free Software =
Foundation.=20
  </P></LI></OL>
<H4 class=3Dappendixsubsec>A.1.1 ADDENDUM: How to use this License for =
your=20
documents</H4>
<P>To use this License in a document you have written, include a copy of =
the=20
License in the document and put the following copyright and license =
notices just=20
after the title page: <PRE class=3Dsmallexample>       Copyright (C)  =
<VAR>year</VAR>  <VAR>your name</VAR>.
       Permission is granted to copy, distribute and/or modify this =
document
       under the terms of the GNU Free Documentation License, Version =
1.2
       or any later version published by the Free Software Foundation;
       with no Invariant Sections, no Front-Cover Texts, and no =
Back-Cover
       Texts.  A copy of the license is included in the section entitled =
``GNU
       Free Documentation License''.
</PRE>
<P>If you have Invariant Sections, Front-Cover Texts and Back-Cover =
Texts,=20
replace the =93with...Texts.=94 line with this: <PRE =
class=3Dsmallexample>         with the Invariant Sections being =
<VAR>list their titles</VAR>, with
         the Front-Cover Texts being <VAR>list</VAR>, and with the =
Back-Cover Texts
         being <VAR>list</VAR>.
</PRE>
<P>If you have Invariant Sections without Cover Texts, or some other =
combination=20
of the three, merge those two alternatives to suit the situation.=20
<P>If your document contains nontrivial examples of program code, we =
recommend=20
releasing these examples in parallel under your choice of free software =
license,=20
such as the GNU General Public License, to permit their use in free =
software. <!-- Local Variables: --><!-- ispell-local-pdict: =
"ispell-dict" --><!-- End: -->
<DIV class=3Dnode>
<P>
<HR>
<A name=3DIndex></A>Previous:&nbsp;<A accessKey=3Dp=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Copying-This-Man=
ual"=20
rel=3Dprevious>Copying This Manual</A>, Up:&nbsp;<A accessKey=3Du=20
href=3D"http://www.gnu.org/prep/standards/standards.html#Top" =
rel=3Dup>Top</A>=20
</DIV>
<H2 class=3Dunnumbered>Index</H2>
<UL class=3Dindex-cp compact>
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-g_t_0040co=
de_007b_0023endif_007d_002c-commenting-65"><CODE>#endif</CODE>,=20
  commenting</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Comments">Commen=
ts</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-g_t_0040sa=
mp_007b_002d_002dhelp_007d-option-49">`<SAMP><SPAN=20
  class=3Dsamp>--help</SPAN></SAMP>' option</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-g_t_0040sa=
mp_007b_002d_002dversion_007d-option-46">`<SAMP><SPAN=20
  class=3Dsamp>--version</SPAN></SAMP>' option</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-g_t_0040sa=
mp_007b_002dWall_007d-compiler-option-70">`<SAMP><SPAN=20
  class=3Dsamp>-Wall</SPAN></SAMP>' compiler option</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Syntactic-Conven=
tions">Syntactic=20
  Conventions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-accepting-=
contributions-7">accepting=20
  contributions</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Contributions">C=
ontributions</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-address-fo=
r-bug-reports-50">address=20
  for bug reports</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-g_t_0040sc=
_007bansi_007d-C-standard-17"><SPAN=20
  class=3Dsc>ansi</SPAN> C standard</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Standard-C">Stan=
dard=20
  C</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-arbitrary-=
limits-on-data-19">arbitrary=20
  limits on data</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics">Seman=
tics</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-ASCII-char=
acters-92">ASCII=20
  characters</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Character-Set">C=
haracter=20
  Set</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-autoconf-7=
8"><CODE>autoconf</CODE></A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Portabili=
ty">System=20
  Portability</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-avoiding-p=
roprietary-code-5">avoiding=20
  proprietary code</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Reading-Non_002d=
Free-Code">Reading=20
  Non-Free Code</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-behavior_0=
02c-dependent-on-program_0027s-name-33">behavior,=20
  dependent on program's name</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#User-Interfaces"=
>User=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-binary-pac=
kages-126">binary=20
  packages</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Install-Command-=
Categories">Install=20
  Command Categories</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-bindir-121=
"><CODE>bindir</CODE></A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Directory-Variab=
les">Directory=20
  Variables</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-braces_002=
c-in-C-source-58">braces,=20
  in C source</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Formatting">Form=
atting</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-bug-report=
s-51">bug=20
  reports</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-canonical-=
name-of-a-program-47">canonical=20
  name of a program</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-casting-po=
inters-to-integers-82">casting=20
  pointers to integers</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#CPU-Portability"=
>CPU=20
  Portability</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-CGI-progra=
ms_002c-standard-options-for-44">CGI=20
  programs, standard options for</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-change-log=
s-104">change=20
  logs</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Change-Logs">Cha=
nge=20
  Logs</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-change-log=
s_002c-conditional-changes-107">change=20
  logs, conditional changes</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Conditional-Chan=
ges">Conditional=20
  Changes</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-change-log=
s_002c-style-105">change=20
  logs, style</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Style-of-Change-=
Logs">Style=20
  of Change Logs</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-character-=
set-90">character=20
  set</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Character-Set">C=
haracter=20
  Set</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-command_00=
2dline-arguments_002c-decoding-24">command-line=20
  arguments, decoding</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics">Seman=
tics</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-command_00=
2dline-interface-39">command-line=20
  interface</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-commenting=
-63">commenting</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Comments">Commen=
ts</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-compatibil=
ity-with-C-and-_0040sc_007bposix_007d-standards-12">compatibility=20
  with C and <SPAN class=3Dsc>posix</SPAN> standards</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Compatibility">C=
ompatibility</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-compiler-w=
arnings-69">compiler=20
  warnings</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Syntactic-Conven=
tions">Syntactic=20
  Conventions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-conditiona=
l-changes_002c-and-change-logs-106">conditional=20
  changes, and change logs</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Conditional-Chan=
ges">Conditional=20
  Changes</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-conditiona=
ls_002c-comments-for-64">conditionals,=20
  comments for</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Comments">Commen=
ts</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-configure-=
111"><CODE>configure</CODE></A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Configuration">C=
onfiguration</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-control_00=
2dL-62">control-L</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Formatting">Form=
atting</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-convention=
s-for-makefiles-114">conventions=20
  for makefiles</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions">Makefile=20
  Conventions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-corba-37">=
corba</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Graphical-Interf=
aces">Graphical=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-credits-fo=
r-manuals-102">credits=20
  for manuals</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Manual-Credits">=
Manual=20
  Credits</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-data-types=
_002c-and-portability-80">data=20
  types, and portability</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#CPU-Portability"=
>CPU=20
  Portability</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-declaratio=
n-for-system-functions-85">declaration=20
  for system functions</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Functions=
">System=20
  Functions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-DESTDIR-11=
6"><CODE>DESTDIR</CODE></A>:=20
  <A =
href=3D"http://www.gnu.org/prep/standards/standards.html#DESTDIR">DESTDIR=
</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-documentat=
ion-99">documentation</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Documentation">D=
ocumentation</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-doschk-76"=
><CODE>doschk</CODE></A>:=20
  <A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Names">Names</A>=
=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-downloadin=
g-this-manual-2">downloading=20
  this manual</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Preface">Preface=
</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-encodings-=
91">encodings</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Character-Set">C=
haracter=20
  Set</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-error-mess=
ages-21">error=20
  messages</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics">Seman=
tics</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-error-mess=
ages_002c-formatting-31">error=20
  messages, formatting</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Errors">Errors</=
A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-exec_005fp=
refix-120"><CODE>exec_prefix</CODE></A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Directory-Variab=
les">Directory=20
  Variables</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-expression=
s_002c-splitting-60">expressions,=20
  splitting</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Formatting">Form=
atting</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-FDL_002c-G=
NU-Free-Documentation-License-131">FDL,=20
  GNU Free Documentation License</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#GNU-Free-Documen=
tation-License">GNU=20
  Free Documentation License</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-file-usage=
-55">file=20
  usage</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#File-Usage">File=
=20
  Usage</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-file_002dn=
ame-limitations-75">file-name=20
  limitations</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Names">Names</A>=
=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-formatting=
-error-messages-30">formatting=20
  error messages</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Errors">Errors</=
A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-formatting=
-source-code-56">formatting=20
  source code</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Formatting">Form=
atting</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-formfeed-6=
1">formfeed</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Formatting">Form=
atting</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-function-a=
rgument_002c-declaring-68">function=20
  argument, declaring</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Syntactic-Conven=
tions">Syntactic=20
  Conventions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-function-p=
rototypes-18">function=20
  prototypes</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Standard-C">Stan=
dard=20
  C</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-getopt-40"=
><CODE>getopt</CODE></A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-gettext-88=
"><CODE>gettext</CODE></A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Internationaliza=
tion">Internationalization</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-gnome-38">=
gnome</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Graphical-Interf=
aces">Graphical=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-graphical-=
user-interface-35">graphical=20
  user interface</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Graphical-Interf=
aces">Graphical=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-grave-acce=
nt-97">grave=20
  accent</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Quote-Characters=
">Quote=20
  Characters</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-gtk_002b-3=
6">gtk+</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Graphical-Interf=
aces">Graphical=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-GUILE-11">=
GUILE</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Source-Language"=
>Source=20
  Language</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-implicit-_=
0040code_007bint_007d-67">implicit=20
  <CODE>int</CODE></A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Syntactic-Conven=
tions">Syntactic=20
  Conventions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-impossible=
-conditions-26">impossible=20
  conditions</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics">Seman=
tics</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-installati=
ons_002c-staged-118">installations,=20
  staged</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#DESTDIR">DESTDIR=
</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-internatio=
nalization-87">internationalization</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Internationaliza=
tion">Internationalization</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-left-quote=
-96">left=20
  quote</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Quote-Characters=
">Quote=20
  Characters</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-legal-aspe=
cts-3">legal=20
  aspects</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Legal-Issues">Le=
gal=20
  Issues</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-legal-pape=
rs-6">legal=20
  papers</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Contributions">C=
ontributions</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-libexecdir=
-123"><CODE>libexecdir</CODE></A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Directory-Variab=
les">Directory=20
  Variables</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-libraries-=
29">libraries</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Libraries">Libra=
ries</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-library-fu=
nctions_002c-and-portability-83">library=20
  functions, and portability</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Functions=
">System=20
  Functions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-license-fo=
r-manuals-101">license=20
  for manuals</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#License-for-Manu=
als">License=20
  for Manuals</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-lint-73"><=
CODE>lint</CODE></A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Syntactic-Conven=
tions">Syntactic=20
  Conventions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-locale_002=
dspecific-quote-characters-95">locale-specific=20
  quote characters</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Quote-Characters=
">Quote=20
  Characters</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-long-optio=
n-names-52">long=20
  option names</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Option-Table">Op=
tion=20
  Table</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-long_002dn=
amed-options-41">long-named=20
  options</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-makefile_0=
02c-conventions-for-113">makefile,=20
  conventions for</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions">Makefile=20
  Conventions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-g_t_0040co=
de_007bmalloc_007d-return-value-22"><CODE>malloc</CODE>=20
  return value</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics">Seman=
tics</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-man-pages-=
108">man=20
  pages</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Man-Pages">Man=20
  Pages</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-manual-str=
ucture-100">manual=20
  structure</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Manual-Structure=
-Details">Manual=20
  Structure Details</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-memory-all=
ocation-failure-23">memory=20
  allocation failure</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics">Seman=
tics</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-memory-usa=
ge-54">memory=20
  usage</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Memory-Usage">Me=
mory=20
  Usage</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-message-te=
xt_002c-and-internationalization-89">message=20
  text, and internationalization</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Internationaliza=
tion">Internationalization</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-mmap-98"><=
CODE>mmap</CODE></A>:=20
  <A =
href=3D"http://www.gnu.org/prep/standards/standards.html#Mmap">Mmap</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-multiple-v=
ariables-in-a-line-72">multiple=20
  variables in a line</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Syntactic-Conven=
tions">Syntactic=20
  Conventions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-names-of-v=
ariables_002c-functions_002c-and-files-74">names=20
  of variables, functions, and files</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Names">Names</A>=
=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-g_t_0040fi=
le_007bNEWS_007d-file-103"><SAMP><SPAN=20
  class=3Dfile>NEWS</SPAN></SAMP> file</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#NEWS-File">NEWS =

  File</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-non_002dAS=
CII-characters-93">non-ASCII=20
  characters</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Character-Set">C=
haracter=20
  Set</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-non_002d_0=
040sc_007bposix_007d-systems_002c-and-portability-79">non-<SPAN=20
  class=3Dsc>posix</SPAN> systems, and portability</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Portabili=
ty">System=20
  Portability</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-non_002dst=
andard-extensions-16">non-standard=20
  extensions</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Using-Extensions=
">Using=20
  Extensions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-g_t_0040co=
de_007bNUL_007d-characters-20"><CODE>NUL</CODE>=20
  characters</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics">Seman=
tics</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-open-brace=
-57">open=20
  brace</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Formatting">Form=
atting</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-optional-f=
eatures_002c-configure_002dtime-112">optional=20
  features, configure-time</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Configuration">C=
onfiguration</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-options-fo=
r-compatibility-14">options=20
  for compatibility</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Compatibility">C=
ompatibility</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-options_00=
2c-standard-command_002dline-43">options,=20
  standard command-line</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-output-dev=
ice-and-program_0027s-behavior-34">output=20
  device and program's behavior</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#User-Interfaces"=
>User=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-packaging-=
127">packaging</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Releases">Releas=
es</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-PATH_005fI=
NFO_002c-specifying-standard-options-as-45">PATH_INFO,=20
  specifying standard options as</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-portabilit=
y_002c-and-data-types-81">portability,=20
  and data types</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#CPU-Portability"=
>CPU=20
  Portability</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-portabilit=
y_002c-and-library-functions-84">portability,=20
  and library functions</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Functions=
">System=20
  Functions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-portabilit=
y_002c-between-system-types-77">portability,=20
  between system types</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Portabili=
ty">System=20
  Portability</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-g_t_0040sc=
_007bposix_007d-compatibility-13"><SPAN=20
  class=3Dsc>posix</SPAN> compatibility</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Compatibility">C=
ompatibility</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-g_t_0040co=
de_007bPOSIXLY_005fCORRECT_007d_002c-environment-variable-15"><CODE>POSIX=
LY_CORRECT</CODE>,=20
  environment variable</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Compatibility">C=
ompatibility</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-post_002di=
nstallation-commands-125">post-installation=20
  commands</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Install-Command-=
Categories">Install=20
  Command Categories</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-pre_002din=
stallation-commands-124">pre-installation=20
  commands</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Install-Command-=
Categories">Install=20
  Command Categories</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-prefix-119=
"><CODE>prefix</CODE></A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Directory-Variab=
les">Directory=20
  Variables</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-program-co=
nfiguration-110">program=20
  configuration</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Configuration">C=
onfiguration</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-program-de=
sign-9">program=20
  design</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Design-Advice">D=
esign=20
  Advice</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-program-na=
me-and-its-behavior-32">program=20
  name and its behavior</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#User-Interfaces"=
>User=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-program_00=
27s-canonical-name-48">program's=20
  canonical name</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-programmin=
g-languages-10">programming=20
  languages</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Source-Language"=
>Source=20
  Language</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-proprietar=
y-programs-4">proprietary=20
  programs</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Reading-Non_002d=
Free-Code">Reading=20
  Non-Free Code</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-quote-char=
acters-94">quote=20
  characters</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Quote-Characters=
">Quote=20
  Characters</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-g_t_0040fi=
le_007bREADME_007d-file-128"><SAMP><SPAN=20
  class=3Dfile>README</SPAN></SAMP> file</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Releases">Releas=
es</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-references=
-to-non_002dfree-material-130">references=20
  to non-free material</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#References">Refe=
rences</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-releasing-=
109">releasing</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Managing-Release=
s">Managing=20
  Releases</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-sbindir-12=
2"><CODE>sbindir</CODE></A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Directory-Variab=
les">Directory=20
  Variables</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-signal-han=
dling-25">signal=20
  handling</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics">Seman=
tics</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-spaces-bef=
ore-open_002dparen-59">spaces=20
  before open-paren</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Formatting">Form=
atting</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-staged-ins=
talls-117">staged=20
  installs</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#DESTDIR">DESTDIR=
</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-standard-c=
ommand_002dline-options-42">standard=20
  command-line options</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Command_002dLine=
-Interfaces">Command-Line=20
  Interfaces</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-standards-=
for-makefiles-115">standards=20
  for makefiles</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Makefile-Convent=
ions">Makefile=20
  Conventions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-string-lib=
rary-functions-86">string=20
  library functions</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#System-Functions=
">System=20
  Functions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-syntactic-=
conventions-66">syntactic=20
  conventions</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Syntactic-Conven=
tions">Syntactic=20
  Conventions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-table-of-l=
ong-options-53">table=20
  of long options</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Option-Table">Op=
tion=20
  Table</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-temporary-=
files-27">temporary=20
  files</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics">Seman=
tics</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-temporary-=
variables-71">temporary=20
  variables</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Syntactic-Conven=
tions">Syntactic=20
  Conventions</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-g_t_0040fi=
le_007btexinfo_002etex_007d_002c-in-a-distribution-129"><SAMP><SPAN=20
  class=3Dfile>texinfo.tex</SPAN></SAMP>, in a distribution</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Releases">Releas=
es</A>=20
  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-g_t_0040co=
de_007bTMPDIR_007d-environment-variable-28"><CODE>TMPDIR</CODE>=20
  environment variable</A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Semantics">Seman=
tics</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-trademarks=
-8">trademarks</A>:=20
  <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Trademarks">Trad=
emarks</A>=20

  <LI><A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#index-where-to-o=
btain-_0040code_007bstandards_002etexi_007d-1">where=20
  to obtain <CODE>standards.texi</CODE></A>: <A=20
  =
href=3D"http://www.gnu.org/prep/standards/standards.html#Preface">Preface=
</A>=20
  </LI></UL>
<DIV class=3Dfootnote>
<HR>
<A name=3Dtexinfo-footnotes-in-document></A>
<H4>Footnotes</H4>
<P class=3Dfootnote><SMALL>[<A=20
href=3D"http://www.gnu.org/prep/standards/standards.html#fnd-1"=20
name=3Dfn-1>1</A>]</SMALL> <CODE>texi2dvi</CODE> uses TeX to do the real =
work of=20
formatting. TeX is not distributed with Texinfo.</P>
<P>
<HR>
</DIV></BODY></HTML>
