[project @ 2004-06-02 16:17:20 by simonmar]
authorsimonmar <unknown>
Wed, 2 Jun 2004 16:17:20 +0000 (16:17 +0000)
committersimonmar <unknown>
Wed, 2 Jun 2004 16:17:20 +0000 (16:17 +0000)
Add a comment about fdGetMode, which doesn't work properly on Windows

System/Posix/Internals.hs

index e5dbaaf..b1fe4f7 100644 (file)
@@ -143,6 +143,7 @@ foreign import stdcall unsafe "HsBase.h closesocket"
 fdGetMode :: Int -> IO IOMode
 fdGetMode fd = do
 #if defined(mingw32_TARGET_OS) || defined(__MINGW32__)
+    -- XXX: this code is *BROKEN*, _setmode only deals with O_TEXT/O_BINARY
     flags1 <- throwErrnoIfMinus1Retry "fdGetMode" 
                 (c__setmode (fromIntegral fd) (fromIntegral o_WRONLY))
     flags  <- throwErrnoIfMinus1Retry "fdGetMode"