aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/fileexist01.hs
diff options
context:
space:
mode:
authorGravatar Simon Marlow <marlowsd@gmail.com>2009-05-29 12:19:41 +0000
committerGravatar Simon Marlow <marlowsd@gmail.com>2009-05-29 12:19:41 +0000
commita67dfb0a448100fefea33e58bbf77eaafdeb0c05 (patch)
tree08bab44a2e922a8d8641479a63f88b89b6827363 /tests/fileexist01.hs
parentec5d783e4e338bd4052b685185bd4657dd7ced00 (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