On Wed, Aug 31, 2011 at 9:54 PM, Bruno Haible <br...@clisp.org> wrote: > Bastien ROUCARIES wrote: >> More means to retrieve file name >> - linux /proc/self/fd >> - windows FileInformation of GetFileInformationByHandleEx >> - freebsd using FDESCFS /dev/fd or proc >> - solaris using FDESCFS or proc >> - osx as /dev/fd >> - irix has /dev/fd > > Interesting, yes. That would work. > >> - hpux has pstat > > More details, please? pstat_getfiledetails does not return a file name.
See pstat_getpathname() > >> - /proc/pid/fd/ under Aix (no self) > > Doesn't exist on AIX 5.1, it was introduced in AIX 5.2. > > And without a working emulation on OpenBSD, it still makes no sense to use > this API, IMO. At some point, OpenBSD had /dev/fd/ apparently [1]. According to documentation it has one http://nixdoc.net/man-pages/openbsd/man8/mount_fdesc.8.html It is even mentionned in porting documentation see http://www.openbsd.org/porting.html Bastien