lkml.org 
[lkml]   [2000]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: /dev/fd semantics
Date
Followup to:  <20000228161258.A17596@ead37>
By author: "Bill Rugolsky Jr." <rugolsky@ead.dsa.com>
In newsgroup: linux.dev.kernel
>
> Here "PLAN9 semantics" means that the following are equivalent:
> fd = open("/dev/fd/n",mode);
> fd = dup(n);
> the point being that permissions are not checked on the open, and
> the two descriptors share the same file pointer.
>
> In Linux we have /dev/fd -> /proc/self/fd/, but the semantics are
> very different: permissions are checked, and the file pointers are
> different.
>

I'm hoping to fix this in 2.5. The problem is that the way open() is
done in the VFS *requires* the creation of a new filestructure.

-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."

-
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:56    [W:0.038 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site