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