Portability | non-portable (requires POSIX) |
---|---|
Stability | provisional |
Maintainer | William N. Halchin (vigalchin@gmail.com) |
Safe Haskell | None |
POSIX 1003.1b POSIX Asynchronous I/O
- type AIOCB = ForeignPtr AIOCBStruct
- makeAIOCB :: Fd -> Int -> Int -> FileOffset -> Ptr Word8 -> ByteCount -> Sigevent -> IO AIOCB
- aioRead :: AIOCB -> IO ()
- aioWrite :: AIOCB -> IO ()
- aioReturn :: AIOCB -> IO ByteCount
- aioError :: AIOCB -> IO Errno
- aioCancel :: Fd -> AIOCB -> IO ()
- data SyncOp
- aioFsync :: SyncOp -> AIOCB -> IO ()
- aioSuspend :: [AIOCB] -> TimeSpec -> IO ()
- type ListIOMode = Int
- lioListIO :: ListIOMode -> [AIOCB] -> Sigevent -> IO ()
Documentation
makeAIOCB :: Fd -> Int -> Int -> FileOffset -> Ptr Word8 -> ByteCount -> Sigevent -> IO AIOCBSource
makeAIOCB is a helper function that builds an aiocb from all its fields
aioSuspend :: [AIOCB] -> TimeSpec -> IO ()Source
Posix AIO suspend
type ListIOMode = IntSource
Posix AIO lio_listio
lioListIO :: ListIOMode -> [AIOCB] -> Sigevent -> IO ()Source