patch applied (packages/unix): add fdReadBuf, fdWriteBuf
Simon Marlow
marlowsd at gmail.com
Fri May 29 09:23:09 EDT 2009
Fri May 29 05:19:41 PDT 2009 Simon Marlow <marlowsd at gmail.com>
* add fdReadBuf, fdWriteBuf
Ignore-this: f949d995f04cd0d5f35a6fd101db2885
-- | Read data from an 'Fd' into memory. This is exactly equivalent
-- to the POSIX @read@ function.
fdReadBuf :: Fd
-> Ptr Word8 -- ^ Memory in which to put the data
-> ByteCount -- ^ Maximum number of bytes to read
-> IO Bytecount -- ^ Number of bytes read (zero for EOF)
-- | Write data from memory to an 'Fd'. This is exactly equivalent
-- to the POSIX @write@ function.
fdWriteBuf :: Fd
-> Ptr Word8 -- ^ Memory containing the data to write
-> ByteCount -- ^ Maximum number of bytes to write
-> IO ByteCount -- ^ Number of bytes written
M ./System/Posix/IO.hsc -8 +42
View patch online:
http://darcs.haskell.org/packages/unix/_darcs/patches/20090529121941-12142-c7288fb0f706c1294efce1769a794a7b3c9538db.gz
More information about the Cvs-libraries
mailing list