From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 29 20:52:55 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEF2716A4DA for ; Sat, 29 Jul 2006 20:52:55 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (megan.kiwi-computer.com [63.224.10.3]) by mx1.FreeBSD.org (Postfix) with SMTP id D11A543D6B for ; Sat, 29 Jul 2006 20:52:54 +0000 (GMT) (envelope-from rick@kiwi-computer.com) Received: (qmail 69144 invoked by uid 2001); 29 Jul 2006 20:52:53 -0000 Date: Sat, 29 Jul 2006 15:52:53 -0500 From: "Rick C. Petty" To: Jaye Mathisen Message-ID: <20060729205253.GA69105@megan.kiwi-computer.com> References: <20060729034359.GL15569@main.mathisen.org> <20060729041848.GC15827@dan.emsphone.com> <20060729061653.GM15569@main.mathisen.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060729061653.GM15569@main.mathisen.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: fdescfs functional in 6.1? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jul 2006 20:52:56 -0000 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