From: "Eli Zaretskii" <eliz@is.elta.co.il>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFA]: File-I/O patch, Documentation
Date: Mon, 25 Nov 2002 11:01:00 -0000 [thread overview]
Message-ID: <2110-Mon25Nov2002210126+0200-eliz@is.elta.co.il> (raw)
In-Reply-To: <20021125115158.C27250@cygbert.vinschen.de> (message from Corinna Vinschen on Mon, 25 Nov 2002 11:51:58 +0100)
> Date: Mon, 25 Nov 2002 11:51:58 +0100
> From: Corinna Vinschen <vinschen@redhat.com>
>
> > > +* The @code{F} request packet::
> > > +* The @code{F} reply packet::
>
> I changed that and the corresponding @node-s to
>
> * The `F' request packet::
> * The `F' reply packet::
>
> Is that ok?
Yes. To be absolutely sure, generate an Info manual from the Texinfo
sources, then fire up an Info reader of your choice, go to these menu
lines and press [Enter]. If this works, everything's okay.
> > > +* The isatty(3) call::
> > > +* The system(3) call::
>
> Here I just dropped the "(3)" part.
Fine, thanks.
> > > +@smallexample
> > > +(gdb) continue
> > ^^^^^
> > This should be @value{GDBP}...
>
> Should it? That's the GDB prompt. It's used plain text in other
> examples in the text as well so I assumed that being correct here.
Well, gdbint.texinfo indeed didn't use @value{GDBN} and @value{GDBP}
until very recently, unlike gdb.texinfo. I think the decision was to
use them in both manuals, but I might be mistaken. Andrew?
> > > +@item @code{F}@var{retcode}@code{,}@var{errno}@code{,}@var{Ctrl-C flag}@code{;}@var{call specific attachment}
> >
> > This is okay, but you don't need to repeat @code all that much, just
> > include everything in a @code to begin with. I think the following
> > will produce the same effect as what you did:
> >
> > @item @code{F@var{retcode},@var{errno},@var{Ctrl-C flag};@var{call-specific attachment}}
> >
>
> No, the effect is different:
>
> `F'RETCODE`,'ERRNO`,'CTRL-C FLAG`;'CALL SPECIFIC ATTACHMENT
>
> Your version:
>
> `FRETCODE,ERRNO,CTRL-C FLAG;CALL SPECIFIC ATTACHMENT'
Well, I think my result is more accurate ;-) Those `' around F and
such are not really there in the packet, right?
But if you think your result is better, I won't insist.
> What about all the constants used in the descriptions of the calls?
> Should I rewrite all
>
> Request: Fopen,pathptr/len,flags,mode
>
> `flags' is the bitwise or of the following values:
>
> O_CREAT If the file does not exist it will be created. The host
> rules apply as far as file ownership and time stamps
> are concerned.
> [...]
> Errors:
>
> EEXIST pathname already exists and O_CREAT and O_EXCL were used.
>
> to
>
> Request: Fopen,pathptr/len,flags,mode
>
> `flags' is the bitwise or of the following values:
>
> @code{O_CREAT} If the file does not exist it will be created. The host
No, you don't need to do that, since @smallexample already typesets
everything in the same typeface as @code.
Btw, theere's a disadvantage of using @smallexample here: the other
text, such as the verbal descriptions of the O_* flags and errno
values, is also typeset in fixed-size typewriter face, so the flag and
errno names don't stand out. For that reason, I generally recommend
to use a @table instead of @smallexample, like this:
@node open
@unnumberedsubsubsec open
@smallexample
Synopsis: int open(const char *pathname, int flags);
int open(const char *pathname, int flags, mode_t mode);
Request: Fopen,pathptr/len,flags,mode
@end smallexample
@noindent
where @code{flags} is the bitwise or of the following values:
@table @code
@item O_CREAT
If the file does not exist it will be created. The host
rules apply as far as file ownership and time stamps
are concerned.
@item O_EXCL
When used with O_CREAT, if the file already exists it is
an error and open() fails.
...
@end table
This typesets the flag names in fixed font, but the rest of the text
is typeset in the usual roman typeface.
> What about prepending the hex numbers with a leading '0x', the octals
> with a leading '0'?
This is IMHO better than having '0' in both.
> > Finally, please add @cindex entries to allow for efficient searches
> > of relevant issues. As a minimum, please consider adding a @cindex
> > for section/subsection whose name is the same as the section name,
>
> Section name? Not node name?
Section name is usually better, since its language is more natural
(node name is just a label, and is not generally meant for humans to
read), and since index entries do allow @-commands such as @code while
node names don't.
> What about
>
> @node The `F' request packet
> @subsection The @code{F} request packet
>
> Especially the Uppercase F? Wouldn't
>
> @cindex the file-i/o request package
>
> be the way to go?
Either will do, so in this case it's up to you. Actually, I could
make an argument for having both ;-)
When writing @cindex entries, what I generally do is pretend to be a
person who is looking for some material described in this section, and
then ask myself: what phrase would I try to look for in the index?
However, if you do use the latter, please leave the "the" part out:
index entries should not have them, just the terms themselves.
(Otherwise, many entries will begin with "the".)
> Again, thanks for reviewing,
And thank _you_ for doing the actual work.
next prev parent reply other threads:[~2002-11-25 19:01 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-21 1:04 Corinna Vinschen
2002-11-21 1:22 ` Corinna Vinschen
2002-11-23 3:04 ` Eli Zaretskii
2002-11-23 3:02 ` Eli Zaretskii
2002-11-23 8:12 ` Andrew Cagney
2002-11-25 2:52 ` Corinna Vinschen
2002-11-25 11:01 ` Eli Zaretskii [this message]
2002-11-26 6:07 ` Corinna Vinschen
2002-11-26 10:02 ` Eli Zaretskii
2002-11-27 9:08 ` Corinna Vinschen
2003-02-26 23:20 ` Andrew Cagney
2003-02-27 8:37 ` Corinna Vinschen
2003-02-27 23:05 ` Andrew Cagney
2003-02-28 8:33 ` Corinna Vinschen
2003-02-28 15:25 ` Daniel Jacobowitz
2003-02-28 15:49 ` Corinna Vinschen
2003-02-28 16:37 ` Daniel Jacobowitz
2003-02-28 15:27 ` Andrew Cagney
2003-02-28 15:47 ` Corinna Vinschen
2003-03-02 3:03 ` Andrew Cagney
2003-03-03 12:12 ` Corinna Vinschen
2003-03-04 18:53 ` Andrew Cagney
2003-03-04 19:46 ` Eli Zaretskii
2003-03-06 21:19 ` Andrew Cagney
2003-03-06 21:26 ` Andrew Cagney
2003-03-07 14:29 ` Corinna Vinschen
2003-03-07 14:55 ` Andrew Cagney
2003-03-01 12:36 ` Eli Zaretskii
2003-03-01 15:43 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2110-Mon25Nov2002210126+0200-eliz@is.elta.co.il \
--to=eliz@is.elta.co.il \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox