Article View: news.software.nntp
Article #18465INN man pages (was Re: very large path line crashes innd)
From: Forrest J. Cavalier III
Date: Fri, 13 Jun 1997 00:00
Date: Fri, 13 Jun 1997 00:00
85 lines
4950 bytes
4950 bytes
In article <yy3yb8hc4nc.fsf@velo.pp.vix.com>, brister@vix.com wrote...
>
>Dale Ghent <daleg-hatesspam@maximum.net> writes:
>
>> Just curious... when is the next release slated to be released and could
>> you provide any insight as to what it will incorporate?
>
>I've been saying "soon" for too long now, so I'm not going to hazard a
>guess as to when. As for what it will have, here's the changes portion of
>the README. It's not finished yet though.
>
[snip]
> - a lot of minor documentation cleanups
[snip]
(I've been meaning to mention this for a while....)
The standard INN man pages are subst victim files. I think this is a poor
design for the following reasons:
- When reading the man page, the config value which affects the
behavior is not documented: only its value appears.
- Some man pages have conditional sections based on config variables.
(So in addition to not being good documentation, it makes everyone's
man page different, depending on their config.data.
Let show by example. Which of the following is better documentation?
------------------------------------------------------------------------------
Excerpt from http://www.mibsoftware.com/userkt/inn/doc/innd.8.htm
DESCRIPTION
Innd, the InterNetNews daemon, handles all incoming NNTP feeds. It reads
the active(5) , newsfeeds(5) , and hosts.nntp(5) files into memory. It
then opens the NNTP port to receive articles from remote sites (see the
``-p'' option), When <config$HAVE_UNIX_DOMAIN> == DO, a Unix-domain
stream socket to receive articles from local processes such as nnrpd(8)
and rnews(1) , and a Unix-domain datagram socket for use by ctlinnd(8) .
When <config$HAVE_UNIX_DOMAIN> is not DO named pipes are used instead.
ctlinnd(8) is used to direct the server to perform certain actions. It
also opens the history(5) database and two log files to replace its
standard output and standard error.
Once the files and sockets have been opened, innd waits for connections
and data to be ready on its ports by using select(2) and non-blocking
I/O. If no data is available, then it will flush its in-core data
structures. The default number of seconds to timeout before flushing is
set as <config$DEFAULT_TIMEOUT> (typically 300) seconds.
-------------------------------------------------------------------------------
Compare to an excerpt from the standard innd(8) man page:
-------------------------------------------------------------------------------
DESCRIPTION
Innd, the InterNetNews daemon, handles all incoming NNTP feeds. It reads
the active(5), newsfeeds(5), and hosts.nntp(5) files into memory. It
then opens the NNTP port to receive articles from remote sites (see the
``-p'' option), a Unix-domain stream socket to receive articles from
local processes such as nnrpd(8) and rnews(1), and a Unix-domain datagram
socket for use by ctlinnd(8) to direct the server to perform certain
actions. It also opens the history(5) database and two log files to
replace its standard output and standard error.
Once the files and sockets have been opened, innd waits for connections
and data to be ready on its ports by using select(2) and non-blocking
I/O. If no data is available, then it will flush its in-core data
structures. The default number of seconds to timeout before flushing is
300 seconds.
------------------------------------------------------------------------------
There is a lot of useful information that gets hidden in the standard man
pages, (even if they are much easier to read than my version.)
It must have taken a great deal of work to write all the conditional roff
statements. I wonder why the choice was made that way.
(Apologies for long line lengths...)
Forrest Cavalier, Mib Software, INN customization and consulting.
Searchable Hypertext docs (INN man pages, FAQ, etc)
http://www.mibsoftware.com/userkt/forprov.htm
Technical Details
Message-ID:
<5nsbmg$7uh$2@news1.epix.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<5l93pr$3jm$1@towncrier.cc.monash.edu.au> <5l9jsk$t45$1@news1.epix.net> <yy3enaaw593.fsf@velo.pp.vix.com> <339EB2C2.794BDF32@maximum.net> <yy3yb8hc4nc.fsf@velo.pp.vix.com>Show Full Headers
Complete Article Headers
Message-ID: <5nsbmg$7uh$2@news1.epix.net> Subject: INN man pages (was Re: very large path line crashes innd) Date: Fri, 13 Jun 1997 00:00:00 +0000 From: mibsoft@epix.net (Forrest J. Cavalier III) References: <5l93pr$3jm$1@towncrier.cc.monash.edu.au> <5l9jsk$t45$1@news1.epix.net> <yy3enaaw593.fsf@velo.pp.vix.com> <339EB2C2.794BDF32@maximum.net> <yy3yb8hc4nc.fsf@velo.pp.vix.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 248207719 Distribution: inet Organization: Mib Software Newsgroups: news.software.nntp