lkml.org 
[lkml]   [2000]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: NTFS-like streams?
On Sat, Aug 12, 2000 at 06:34:32PM -0400, Alexander Viro wrote:
> Basically, it's about exposing d_path() to userland. Patch below should do
> the job, modulo actual adding sys_fd2path into the tables. BTW, I suspect
> that we really ought to stop this " (removed)" thing, even in procfs
> symlinks - too ambiguos and can be done better (e.g. something in ->i_mode
> of the link). Comments?

It is already implemented I think:

sprintf(buf, "/proc/self/fd/%d", fd);
readlink(buf, yourbuf, size);

Just for sockets and pipes it does do stupid things currently.

-Andi


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.174 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site