Re: Fdescfs updates--coming to a devfs near you!

[ Available lists | Index of freebsd-hackers | Month of Sep 2000 | Week of 14 Sep 2000 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
John Baldwin <jhb@pike.osd.bsdi.com>
Date
14 Sep 2000 11:47:45
Subject
Re: Fdescfs updates--coming to a devfs near you!
Message-ID
200009141843.LAA83370@pike.osd.bsdi.com


[ Hide this part ]
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 <jhb@bsdi.com> -- 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



Elapsed time: 0.074 seconds