Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2006 15:52:53 -0500
From:      "Rick C. Petty" <rick-freebsd@kiwi-computer.com>
To:        Jaye Mathisen <mrcpu@mathisen.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: fdescfs functional in 6.1?
Message-ID:  <20060729205253.GA69105@megan.kiwi-computer.com>
In-Reply-To: <20060729061653.GM15569@main.mathisen.org>
References:  <20060729034359.GL15569@main.mathisen.org> <20060729041848.GC15827@dan.emsphone.com> <20060729061653.GM15569@main.mathisen.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 28, 2006 at 11:16:53PM -0700, Jaye Mathisen wrote:
> I guess I just expected it to print all character device entries for the
> file descriptors open by my process.

It did-- well it printed all the file descriptors open by your process,
which in this case was "ls".  0, 1, and 2 are stdin, stdout, and stderr
(respectfully) and they point to the device you logged into.  Try doing
"ls -la /dev/fd | less" and I'll bet 1 will be a pipe?  This seems like
the correct operation;  I'm not sure I understand what you expected and
why that's different than what you've observed.

> Kind of like the old /dev/fd/1 /dev/fd/2 directories used to be under MAKEDEV...

How is that the same?  MAKEDEV was in the day before devfs, so the device
entries needed to be created by the underlying filesystem.  In devfs,
things are only present if they represent an active device.

-- Rick C. Petty



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060729205253.GA69105>