Copyright | (c) 2019 Composewell Technologies |
---|---|
License | BSD3 |
Maintainer | streamly@composewell.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Low level IO routines interfacing the operating system.
Documentation
write :: FD -> Ptr Word8 -> Int -> CSize -> IO CInt Source #
write FD buffer offset length
tries to write data on the given
filesystem fd (cannot be a socket) up to sepcified length starting from the
given offset in the buffer. The write will not block the OS thread, it may
suspend the Haskell thread until write can proceed. Returns the actual
amount of data written.
writeAll :: FD -> Ptr Word8 -> Int -> IO () Source #
Keep writing in a loop until all data in the buffer has been written.
Instances
Eq IOVec Source # | |
Show IOVec Source # | |
Storable IOVec Source # | |
writev :: FD -> Ptr IOVec -> Int -> IO CInt Source #
write FD iovec count
tries to write data on the given filesystem fd
(cannot be a socket) from an iovec with specified number of entries. The
write will not block the OS thread, it may suspend the Haskell thread until
write can proceed. Returns the actual amount of data written.