|
From: | Paolo Bonzini |
Subject: | Re: fcntl module |
Date: | Sat, 22 Aug 2009 17:57:36 +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 01:59 PM, Bruno Haible wrote:
But the flags stored inside MSVCRT for fd cannot be directly accessed.
Ah okay now I understand the other message. I think we're safe if we only support _setting_ the flag, and not clearing it. Most of the use cases are like this.
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). Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |