[lkml]   [2000]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: NTFS-like streams?

On Fri, 11 Aug 2000, dean gaudet wrote:
> On 11 Aug 2000, Linus Torvalds wrote:
> > fd = fd_open(fd, "Icon", O_RDWR | O_CREATE, 0666);
> >
> > which would essentially be the same as "open()", except it would start
> > from "fd" instead of "cwd" like a regular open. There have been reasons
> > to have something like this before (you can emulate it in a ugly manner
> > by doing something like
> yeah you want fd_open mostly in threaded programs i'd bet -- which your
> example code wouldn't help with :)


The Linux threads model does allow having separate "cwd"s per thread, but
many other threads models (ie pthreads) do not. So fd_open() would solve
the issue regardless of what the threading model in use is.

> also need fd_stat, fd_opendir, ...

Both might as well be done with "fd_open" + fstat/fopendir (fopendir is a
purely user-mode thing). Maybe fd_lstat(), who knows..


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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