Date: Wed, 7 Aug 2002 10:20:39 -0400 (EDT) From: Robert Watson <rwatson@FreeBSD.org> To: Chris Costello <chris@FreeBSD.org> Cc: Christian Weisgerber <naddy@mips.inka.de>, freebsd-current@FreeBSD.org Subject: Re: devfs, fdescfs: /dev/fd problems Message-ID: <Pine.NEB.3.96L.1020807101904.9441C-100000@fledge.watson.org> In-Reply-To: <20020806185240.GA3138@holly.calldei.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 6 Aug 2002, Chris Costello wrote:
> > The descriptor used by readdir() is there, but the pipe on 63 is
> > still missing, although open()ing it obviously works.
>
> I can't explain why there's even a pipe open on fd #63, but the
> reason you're only going to see 0, 1 and 2 is because that's just how
> devfs's implementation of /dev/fd works. The last time we (phk and I)
> looked at duplicating the fdescfs code in devfs it was obvious it would
> require ugly hacks to get it to work, so it was decided that devfs would
> only provide support for /dev/fd/[0-2] so we can have
> /dev/std{in,out,err} as symlinks to them. fdescfs (should) just export
> the calling process's file table as a set of vnodes.
Many things found attached to the file table are not vnodes, making the
notion of a vnode from them a little odd. In particular, pipes are not
vnodes, and sockets are not vnodes. :-)
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Network Associates Laboratories
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1020807101904.9441C-100000>
