#undef DEBUG
-- -----------------------------------------------------------------------------
--- $Id: Handle.hsc,v 1.5 2001/07/31 13:03:28 simonmar Exp $
+-- $Id: Handle.hsc,v 1.6 2001/09/14 11:25:24 simonmar Exp $
--
-- (c) The University of Glasgow, 1994-2001
--
foreign import "write_wrap" unsafe
write_off :: CInt -> RawBuffer -> Int -> CInt -> IO CInt
-#def inline \
-int write_wrap(int fd, void *ptr, HsInt off, int size) \
-{ return write(fd, ptr + off, size); }
fillReadBuffer :: FD -> Bool -> Buffer -> IO Buffer
foreign import "read_wrap" unsafe
read_off :: FD -> RawBuffer -> Int -> CInt -> IO CInt
-#def inline \
-int read_wrap(int fd, void *ptr, HsInt off, int size) \
-{ return read(fd, ptr + off, size); }
-- ---------------------------------------------------------------------------
-- Standard Handles