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 Sun, 13 Aug 2000, Andi Kleen wrote:

> It is already implemented I think:
>
> sprintf(buf, "/proc/self/fd/%d", fd);
> readlink(buf, yourbuf, size);

That has some problems:
* expects procfs in place
* no reliable way to tell the unlinked files from the normal ones.
Basically, the same problems as with procfs-based getcwd (readlink on
/proc/self/cwd)...


-
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.224 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site