diff options
author | 2009-05-29 12:19:41 +0000 | |
---|---|---|
committer | 2009-05-29 12:19:41 +0000 | |
commit | a67dfb0a448100fefea33e58bbf77eaafdeb0c05 (patch) | |
tree | 08bab44a2e922a8d8641479a63f88b89b6827363 /tests/fileexist01.hs | |
parent | ec5d783e4e338bd4052b685185bd4657dd7ced00 (diff) |
add fdReadBuf, fdWriteBuf
-- | 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
Diffstat (limited to 'tests/fileexist01.hs')
0 files changed, 0 insertions, 0 deletions