add fdReadBuf, fdWriteBuf
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

rimmington/unix,thomie/unix,rimmington/unix,rimmington/unix,rimmington/unix,jimenezrick/unix,jimenezrick/unix,thomie/unix