bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /proc/self/fd support on Hurd


From: Svante Signell
Subject: Re: /proc/self/fd support on Hurd
Date: Tue, 11 Feb 2020 17:59:12 +0100
User-agent: Evolution 3.30.5-1.1

On Tue, 2020-02-11 at 08:46 -0800, Samuel Thibault wrote:
> Svante Signell, le mar. 11 févr. 2020 17:42:18 +0100, a ecrit:
> > On Tue, 2020-02-11 at 06:16 -0800, Samuel Thibault wrote:
> > > Florian Weimer, le mar. 11 févr. 2020 15:06:43 +0100, a ecrit:
> > > > > Samuel Thibault, le mar. 11 févr. 2020 05:47:30 -0800, a ecrit:
> > > > > > Florian Weimer, le mar. 11 févr. 2020 14:39:23 +0100, a ecrit:
> > > > > > > Does Hurd support /proc/self/fd, in the sense that the POSIX
> > > > > > > functions
> > > > > > > in glibc (such as openat) can deal with such paths?
> > > > > > 
> > > > > > Not yet but that could be added quite easily with some magic
> > > > > > translation.
> > > > > 
> > > > > Ah, actually it's already supported in /dev/fd (but we can add a
> > > > > symlink
> > > > > in /proc/self for compatibility).
> > > > 
> > > > Does this mean if we generate paths starting with /dev/fd/, we already
> > > > have this functionality today?
> > 
> > There are already symlinks there:
> 
> Are you really looking at a hurd system?
> 
> > ls -l /dev/pts/
> > total 0
> > crw--w---- 1 srs  tty  136, 0 Feb 11 14:38 0
> > crw--w---- 1 srs  tty  136, 1 Feb 11 17:39 1
> > c--------- 1 root root   5, 2 Dec 13 11:55 ptmx
> 
> There is no ptmx support on GNU/Hurd yet.

Sorry, that was a Linux system. On hurd:
ls -l /proc/self/fd/
total 0
ls -l /dev/fd
total 0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]