c-io-0.1.0: C IO.

Portabilityportable (FFI)
Stabilityexperimental
MaintainerMatt Morrow <mjm2002@gmail.com>

System.C.IO

Description

FFI bindings to read(2), write(2), open(2), and close(2).

Synopsis

Documentation

cread :: Int -> Ptr Word8 -> Int -> IO IntSource

read(2)

cwrite :: Int -> Ptr Word8 -> Int -> IO IntSource

write(2)

copen :: FilePath -> [OFlag] -> IO IntSource

open(2)

cclose :: Int -> IO BoolSource

close(2)

oflags :: [OFlag] -> IntSource

Bitwise or of the flags.