/dev/fd/3

Stephen Montgomery-Smith stephen at math.missouri.edu
Sun Oct 24 12:39:14 PDT 2004


Robert Watson wrote:
> On Sun, 24 Oct 2004, Stephen Montgomery-Smith wrote:
> 
> 
>>I have a program that needs to write to file descriptor 3 via /dev/fd/3. 
>>  But FreeBSD-5.3 doesn't let me do that, since only fd/0-2 exist.  How
>>do I do this?  "man fd" didn't help me. 
> 
> 
> You can mount fdescfs on top of /dev/fd using the following command as
> root:
> 
>     mount -t fdescfs fdescfs /dev/fd
> 

Thanks - it works.

How about adding fdescfs(5) to the "SEE ALSO" section of "man fd"?

Stephen


More information about the freebsd-stable mailing list