| Copyright | (c) The University of Glasgow 2002 | 
|---|---|
| License | BSD-style (see the file libraries/base/LICENSE) | 
| Maintainer | William N. Halchin (vigalchin@gmail.com) | 
| Stability | provisional | 
| Portability | non-portable (requires POSIX) | 
| Safe Haskell | None | 
| Language | Haskell98 | 
System.Posix.Realtime.Aio
Description
POSIX 1003.1b POSIX Asynchronous I/O. See http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/aio.h.html.
- 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
type AIOCB = ForeignPtr AIOCBStruct Source
makeAIOCB :: Fd -> Int -> Int -> FileOffset -> Ptr Word8 -> ByteCount -> Sigevent -> IO AIOCB Source
a helper function that builds an AIOCB from all its fields
aioSuspend :: [AIOCB] -> TimeSpec -> IO () Source
Posix AIO suspend
type ListIOMode = Int Source
Posix AIO lio_listio