bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] freopen SEGFAULT on win32 with filename == NULL


From: Bruno Haible
Subject: Re: [PATCH] freopen SEGFAULT on win32 with filename == NULL
Date: Wed, 31 Aug 2011 21:54:18 +0200
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

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.

> - /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].

Bruno

[1] http://vigilance.fr/vulnerability/OpenBSD-file-re-opening-with-dev-fd-5471
-- 
In memoriam Magomed Yevloyev <http://en.wikipedia.org/wiki/Magomed_Yevloyev>



reply via email to

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