[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] freopen SEGFAULT on win32 with filename == NULL
From: |
Bastien ROUCARIES |
Subject: |
Re: [PATCH] freopen SEGFAULT on win32 with filename == NULL |
Date: |
Wed, 31 Aug 2011 23:10:08 +0200 |
On Wed, Aug 31, 2011 at 9:54 PM, Bruno Haible <address@hidden> 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