Messages in this thread | | | From | (H. Peter Anvin) | Subject | Re: /dev/fd semantics | Date | 29 Feb 2000 13:13:03 -0800 |
| |
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/
| |