On this page
GHC.IO.FD
| Copyright | (c) The University of Glasgow 1994-2008 |
|---|---|
| License | see libraries/base/LICENSE |
| Maintainer | libraries@haskell.org |
| Stability | internal |
| Portability | non-portable |
| Safe Haskell | Trustworthy |
| Language | Haskell2010 |
Description
Raw read/write operations on file descriptors
Constructors
| FD | |
Fields
|
|
Instances
Arguments
Open a file and make an FD for it. Truncates the file to zero size when the IOMode is WriteMode.
Arguments
Make a FD from an existing file descriptor. Fails if the FD refers to a directory. If the FD refers to a file, mkFD locks the file according to the Haskell 2010 single writer/multiple reader locking semantics (this is why we need the IOMode argument too).
setNonBlockingMode :: FD -> Bool -> IO FD Source
readRawBufferPtr :: String -> FD -> Ptr Word8 -> Int -> CSize -> IO Int Source
readRawBufferPtrNoBlock :: String -> FD -> Ptr Word8 -> Int -> CSize -> IO Int Source
writeRawBufferPtr :: String -> FD -> Ptr Word8 -> Int -> CSize -> IO CInt Source
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.10.2/docs/html/libraries/base-4.14.1.0/GHC-IO-FD.html