Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- fsync :: Fd -> EIO ()
- fsyncExn :: Fd -> IO ()
- fdatasync :: Fd -> EIO ()
- fdatasyncExn :: Fd -> IO ()
- ftruncate :: Fd -> COff -> EIO ()
- ftruncateExn :: Fd -> COff -> IO ()
- mkdir :: CString -> CMode -> EIO ()
- mkdirExn :: CString -> CMode -> IO ()
- preadBuf :: Fd -> Ptr Word8 -> CSize -> COff -> EIO CSsize
- preadBufExn :: Fd -> Ptr Word8 -> CSize -> COff -> IO CSsize
- pread :: Fd -> CSize -> COff -> EIO ByteString
- preadExn :: Fd -> CSize -> COff -> IO ByteString
- pwriteBuf :: Fd -> Ptr Word8 -> CSize -> COff -> EIO CSsize
- pwriteBufExn :: Fd -> Ptr Word8 -> CSize -> COff -> IO CSsize
- pwrite :: Fd -> ByteString -> COff -> EIO CSsize
- pwriteExn :: Fd -> ByteString -> COff -> IO CSsize
- pwriteFull :: Fd -> ByteString -> COff -> EIO ()
- pwriteFullExn :: Fd -> ByteString -> COff -> IO ()
- readBuf :: Fd -> Ptr Word8 -> CSize -> EIO CSsize
- readBufExn :: Fd -> Ptr Word8 -> CSize -> IO CSsize
- writeBuf :: Fd -> Ptr Word8 -> CSize -> EIO CSsize
- writeBufExn :: Fd -> Ptr Word8 -> CSize -> IO CSsize
- read :: Fd -> Int -> EIO ByteString
- readExn :: Fd -> Int -> IO ByteString
- remove :: CString -> EIO ()
- removeExn :: CString -> IO ()
- rmdir :: CString -> EIO ()
- rmdirExn :: CString -> IO ()
- write :: Fd -> ByteString -> EIO CSsize
- writeExn :: Fd -> ByteString -> IO CSsize
- writeFull :: Fd -> ByteString -> EIO ()
- writeFullExn :: Fd -> ByteString -> IO ()
- newtype OpenFlag = OpenFlag CInt
- open :: CString -> OpenFlag -> CMode -> EIO Fd
- openExn :: CString -> OpenFlag -> CMode -> IO Fd
- openat :: Fd -> CString -> OpenFlag -> CMode -> EIO Fd
- openatExn :: Fd -> CString -> OpenFlag -> CMode -> IO Fd
- o_APPEND :: OpenFlag
- o_CLOEXEC :: OpenFlag
- o_CREAT :: OpenFlag
- o_DIRECTORY :: OpenFlag
- o_EXCL :: OpenFlag
- o_NOFOLLOW :: OpenFlag
- o_NONBLOCK :: OpenFlag
- o_NDELAY :: OpenFlag
- o_TRUNC :: OpenFlag
- o_RDONLY :: OpenFlag
- o_WRONLY :: OpenFlag
- o_RDWR :: OpenFlag
- close :: Fd -> EIO ()
- closeExn :: Fd -> IO ()
- data CString
Documentation
fdatasyncExn :: Fd -> IO () Source #
pwriteFull :: Fd -> ByteString -> COff -> EIO () Source #
pwriteFullExn :: Fd -> ByteString -> COff -> IO () Source #
writeFull :: Fd -> ByteString -> EIO () Source #
Wrapper around write that makes sure the full bytestring is written, handling short writes from the underlying system call.
writeFullExn :: Fd -> ByteString -> IO () Source #
Re-exported for convenience
A string for passing to C api functions. The C-compatible form is computed
lazily; it will not be forced until the string is passed to a C API function.
Internally, this is stored as a Builder
with no trailing nul, so
performance characteristics are mostly the same, only requiring a copy when
first passing the string to an API function.