X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FHandle.hs;h=fd06fc6a5b2898e59c359f2ae45e73fbb77c3c24;hb=26d2805a6e58822d246cf9601fb226b0861e7f65;hp=e826c1ffd3132fdb33aa00e51e54385294686141;hpb=c235995340ba0900871e2c31245eb6006d22d5a0;p=haskell-directory.git diff --git a/GHC/Handle.hs b/GHC/Handle.hs index e826c1f..fd06fc6 100644 --- a/GHC/Handle.hs +++ b/GHC/Handle.hs @@ -560,10 +560,10 @@ writeRawBufferPtr loc fd is_stream buf off len = (threadWaitWrite (fromIntegral fd)) foreign import ccall unsafe "__hscore_PrelHandle_read" - read_rawBuffer :: FD -> RawBuffer -> Int -> CInt -> IO CInt + read_rawBuffer :: CInt -> RawBuffer -> Int -> CInt -> IO CInt foreign import ccall unsafe "__hscore_PrelHandle_read" - read_off :: FD -> Ptr CChar -> Int -> CInt -> IO CInt + read_off :: CInt -> Ptr CChar -> Int -> CInt -> IO CInt foreign import ccall unsafe "__hscore_PrelHandle_write" write_rawBuffer :: CInt -> RawBuffer -> Int -> CInt -> IO CInt @@ -665,10 +665,10 @@ blockingWriteRawBufferPtr loc fd False buf off len = -- These calls may block, but that's ok. foreign import ccall safe "__hscore_PrelHandle_read" - read_rawBuffer :: FD -> RawBuffer -> Int -> CInt -> IO CInt + read_rawBuffer :: CInt -> RawBuffer -> Int -> CInt -> IO CInt foreign import ccall safe "__hscore_PrelHandle_read" - read_off :: FD -> Ptr CChar -> Int -> CInt -> IO CInt + read_off :: CInt -> Ptr CChar -> Int -> CInt -> IO CInt foreign import ccall safe "__hscore_PrelHandle_write" write_rawBuffer :: CInt -> RawBuffer -> Int -> CInt -> IO CInt @@ -677,10 +677,10 @@ foreign import ccall safe "__hscore_PrelHandle_write" write_off :: CInt -> Ptr CChar -> Int -> CInt -> IO CInt foreign import ccall safe "__hscore_PrelHandle_recv" - recv_rawBuffer :: FD -> RawBuffer -> Int -> CInt -> IO CInt + recv_rawBuffer :: CInt -> RawBuffer -> Int -> CInt -> IO CInt foreign import ccall safe "__hscore_PrelHandle_recv" - recv_off :: FD -> Ptr CChar -> Int -> CInt -> IO CInt + recv_off :: CInt -> Ptr CChar -> Int -> CInt -> IO CInt foreign import ccall safe "__hscore_PrelHandle_send" send_rawBuffer :: CInt -> RawBuffer -> Int -> CInt -> IO CInt