public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ulrich Drepper <drepper@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: torvalds@osdl.org
Subject: Re: openat()
Date: Wed, 09 Nov 2005 13:27:22 -0800	[thread overview]
Message-ID: <437269BA.7030105@redhat.com> (raw)
In-Reply-To: <E1EZx6Q-0002zw-00@dorka.pomaz.szeredi.hu>

Miklos Szeredi wrote:
> What's wrong with using '/proc/self/fd/N' to implement it?

I thought the intention was to have file descriptors referring to files, 
not directories, to represent the directories they are in.  In those 
cases simply using /proc/PID/fd/N/some/more/dirs wouldn't work and 
neither does /proc/PID/fd/N/../some/more/dirs.

Looking at the Sol man page again it seems they don't allow this case 
but this has to be guessed from the error codes, not the description. 
In this case the /rpco approach should be OK.

But there are always people questioning the use of /proc.  We already 
have quite a few such cases and adding more is no issue for me, but not 
relying on /proc would appease some people.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

  reply	other threads:[~2005-11-09 21:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-09 19:14 openat() Ulrich Drepper
2005-11-09 21:03 ` openat() Miklos Szeredi
2005-11-09 21:27   ` Ulrich Drepper [this message]
2005-11-27 22:06   ` another reason to add openat in the kernel: efficiency Jim Meyering
2005-11-09 21:42 ` openat() dean gaudet
2005-11-09 21:55   ` openat() Nicholas Miell
2005-11-10  7:40   ` openat() Jeff Garzik
2005-11-10  7:48     ` openat() Ulrich Drepper
2005-11-10 10:01     ` openat() Jeff Garzik

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=437269BA.7030105@redhat.com \
    --to=drepper@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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