Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type FilePath = String
- type FileDescriptor = Int
- data IOMode
- fdOpen :: FilePath -> IOMode -> IO FileDescriptor
- fdClose :: FileDescriptor -> IO ()
- fdPutBuf :: FileDescriptor -> Ptr a -> Int -> IO ()
- fdGetBuf :: FileDescriptor -> Ptr a -> Int -> IO ()
Documentation
type FileDescriptor = Int Source #
File descriptor numbers are values of type Int
fdOpen :: FilePath -> IOMode -> IO FileDescriptor Source #
Computation fdOpen
file
mode
allocates and returns a new, open
descriptor to manage the file file
. It manages input if mode
is ReadMode
, output if mode
is WriteMode
,
and both input and output if mode is ReadWriteMode
.