bug-gnulib
[Top][All Lists]
Advanced

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

Re: fcntl module


From: Paolo Bonzini
Subject: Re: fcntl module
Date: Sun, 23 Aug 2009 10:50:01 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3

On 08/22/2009 06:36 PM, Bruno Haible wrote:
Paolo Bonzini wrote:
Also, actually the flags can be accessed; it's undocumented but it can
be found.  See for example these files, taken from Perl and Ruby
respectively:

http://downloads.activestate.com/contrib.old/ntsock.cpp
http://www.google.com/codesearch/p#-ImLthoNrik/ruby-1.8.6/win32/win32.c

(search for _osfile).

In this code, _osfile() is defined as a macro that makes a lot of assumptions
about the internal structure of an MSVCRT internal array. Additionally you
see code that indicates that in certain newer versions of Windows, they have
to *search* for a handle in memory in order to correct these assumptions.

To me, this means: Poisoned! Don't touch!

You're right. However, after seeing that all three of Perl, Python (see http://bugs.python.org/file12950/__pioinfo.patch -- it's for different reasons) and Ruby do it, I'm starting to think that it is almost a necessity. :-(

Paolo




reply via email to

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