public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Florian Weimer <fw@deneb.enyo.de>
Cc: libc-alpha <libc-alpha@sourceware.org>
Subject: Re: [PATCH] manual: Add Descriptor-Relative Access section
Date: Tue, 12 May 2020 09:33:57 +0200	[thread overview]
Message-ID: <CAKgNAkjhE+LHTzUVvhmDSkcGb=E6o_3FUApVcDV=y+K=Nan+vw@mail.gmail.com> (raw)
In-Reply-To: <87mu6dzkm1.fsf@mid.deneb.enyo.de>

Hi Florian,

[Just by the way, I'm always happy to have you CC me directly on any
patch to the glibc manual. It increases the chances that I'll see the
mail and be able to take a look and comment. And I often I learn new
things from you patches :-).]

On Tue, 12 May 2020 at 09:19, Florian Weimer <fw@deneb.enyo.de> wrote:
>
> * Michael Kerrisk:
>
> > One more thought...
> >
> >> +@itemize @bullet
> >> +@item
> >> +It can be a file descriptor referring to a directory.  Such a descriptor
> >> +can be created explicitly using the @code{open} function, with or
> >> +without the @code{O_DIRECTORY} flag.
> >
> > Is it worth mentioning O_PATH here?
>
> Do you mean like this?
>
> +It can be a file descriptor referring to a directory.  Such a descriptor
> +can be created explicitly using the @code{open} function, with or
> +without the @code{O_DIRECTORY} amd @code{O_PATH} flags.

(s/amd/and/)

I'd be inclined to separate out the discussion of O_PATH and
O_DIRECTORY, which latter is I think is largely irrelevant to the
discussion of dirfds (correct me if I'm wrong) so that I'm not sure
it's even necessary to mention O_DIRECTORY.

And then in the discussion of O_PATH, you could more explicitly say
that the directory can be opened with either O_RDONLY or O_PATH.

> And also mention that the file name argument must be non-empty in this
> case?

Yes, I suppose that would also be helpful.

Thanks,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

  reply	other threads:[~2020-05-12  7:34 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30  9:30 Florian Weimer
2020-04-30  9:39 ` Andreas Schwab
2020-04-30 10:21   ` Florian Weimer
2020-04-30 10:32     ` Andreas Schwab
2020-04-30 11:01     ` Michael Kerrisk
2020-04-30 11:15 ` Michael Kerrisk
2020-04-30 11:35   ` Michael Kerrisk (man-pages)
2020-05-04  5:37   ` Florian Weimer
2020-05-04  8:38     ` Michael Kerrisk (man-pages)
2020-05-04  9:10       ` Florian Weimer
2020-05-04 10:02         ` Michael Kerrisk (man-pages)
2020-05-04 11:16           ` Florian Weimer
2020-05-06 15:48             ` Florian Weimer
2020-05-12  3:05             ` Carlos O'Donell
2020-05-12  3:10             ` Carlos O'Donell
2020-05-12  3:22             ` Carlos O'Donell
2020-05-12  3:35             ` Carlos O'Donell
2020-05-12  6:02 ` Michael Kerrisk
2020-05-12  7:19   ` Florian Weimer
2020-05-12  7:33     ` Michael Kerrisk (man-pages) [this message]
2020-04-30  9:32 Florian Weimer

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='CAKgNAkjhE+LHTzUVvhmDSkcGb=E6o_3FUApVcDV=y+K=Nan+vw@mail.gmail.com' \
    --to=mtk.manpages@gmail.com \
    --cc=fw@deneb.enyo.de \
    --cc=libc-alpha@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).