This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: Symlinks under /proc
On Mon, 31 Jan 2005, Corinna Vinschen wrote:
> On Jan 29 18:05, Chris January wrote:
> > > I'm also planning to implement /proc/<pid>/fd/, a directory
> > > containing symlinks pointing to the files opened by that
> > > process, like this:
> > >
> > > 0 -> /dev/tty0
> > > 1 -> /home/corinna/foo
> > > 2 -> /dev/tty0
> > >
> > > If somebody's interested to do that, feel free.
> >
> > This is great Corinna, thanks!
>
> Thank you. I've also implemented /proc/<pid>/fd/ now. Give it a try.
That's cool. Don't want to seem pushy, but how hard would it be to go
from the above to /dev/std{in,out,err}? Come to think of it, it may even
be as easy as "ln -s /proc/self/fd/0 /dev/stdin", etc... That would
really help some apps, especially those that don't understand the "-"
filename argument.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT