lkml.org 
[lkml]   [2005]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: openat()
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 ❖
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-09 22:31    [W:0.065 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site