Re: devfs and /dev/fd/3
From: David P. Reese Jr. (daver_at_gomerbud.com)
Date: 06/04/03
- Previous message: Marc Olzheim: "devfs and /dev/fd/3"
- In reply to: Marc Olzheim: "devfs and /dev/fd/3"
- Next in thread: Harti Brandt: "Re: devfs and /dev/fd/3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 4 Jun 2003 06:43:56 -0700 To: Marc Olzheim <marcolz@stack.nl>
On Wed, Jun 04, 2003 at 03:30:19PM +0200, Marc Olzheim wrote:
> Hi.
>
> I've seen the question once before, but it was not answered (on-list ?),
> so now that I run in on it, I'd like to know what to do:
>
> On FreeBSD 4.x, without devfs, the following worked:
> ( echo foo | tee /dev/fd/3 | tr f F ) 3>&1
>
> It should produce both "foo" and "Foo"
>
> FreeBSD 5 with devfs, however, does not create a /dev/fd/3 upon opening
> filedescriptor 3 by the shell, so there's no device to write to...
>
> How can I fix or circumvent this, aside from mounting a ufs partition
> with mknod-ed files over /dev/fd ?
You want fdescfs(5).
--
David P. Reese Jr. daver@gomerbud.com
--------------------------------------------------------------------------
It can be argued that returning a NULL pointer when asked to allocate
zero bytes is a silly response to a silly question.
-- FreeBSD manual page for malloc(3)
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
- Previous message: Marc Olzheim: "devfs and /dev/fd/3"
- In reply to: Marc Olzheim: "devfs and /dev/fd/3"
- Next in thread: Harti Brandt: "Re: devfs and /dev/fd/3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|