From owner-freebsd-hackers Thu Sep 14 11:47:45 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id D949737B423 for ; Thu, 14 Sep 2000 11:47:42 -0700 (PDT) Received: (from jhb@localhost) by pike.osd.bsdi.com (8.9.3/8.9.3) id LAA83370; Thu, 14 Sep 2000 11:43:49 -0700 (PDT) (envelope-from jhb) From: John Baldwin Message-Id: <200009141843.LAA83370@pike.osd.bsdi.com> Subject: Re: Fdescfs updates--coming to a devfs near you! In-Reply-To: <56076.968924938@critter> from Poul-Henning Kamp at "Sep 14, 2000 11:48:58 am" To: Poul-Henning Kamp Date: Thu, 14 Sep 2000 11:43:49 -0700 (PDT) Cc: Peter Pentchev , Julian Elischer , Chris Costello , hackers@FreeBSD.ORG, current@FreeBSD.ORGG X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Poul-Henning Kamp wrote: > In message <20000914123945.A32524@ringwraith.office1.bg>, Peter Pentchev writes > : > >On Thu, Sep 14, 2000 at 01:12:10AM -0700, Julian Elischer wrote: > >> I've never thought of a use for fdescfs... > > > >Well.. just a trivial example - imagine a program which takes a filename > >as an argument; imagine yourself trying to pipe something into it - > >passing /dev/fd/0 as a filename to process would do the trick. > > I must admit that I think in general that /dev/std{in,out,err} and /dev/fd > is bogus. It looks like something which happened "because we can" more > than something which has a legitimate need. How about the fact that the printing chapter in the Handbook uses /dev/fd/0 in its example of setting up a print filter using ghostscript since gs doesn't read from stdin by default or use '-' for that purpose. Hmmm?? > If anything I would propose we ditch it... Tools, not policy, as you are so fond of saying. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message