Re: NTFS-like streams?

From: Linus Torvalds (torvalds@transmeta.com)
Date: Fri Aug 11 2000 - 23:31:52 EST


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 :)

Exactly.

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..

                Linus

-
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/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:26 EST