Using aiowrite
()
The aiowrite
()
command routine is the asynchronous version of
write
(). In addition to the normal write arguments,
aiowrite
()
command takes arguments that specify a file
position and the address of an aio_result_t
structure. The
resulting information about the operation is stored in the
aio_result_t
structure.
The file position specifies that a seek operation is to be performed within the file before the operation. If the call succeeds, the file pointer is updated to the position that would have resulted in a successful seek and write. The file pointer is also updated when a write fails to allow for subsequent write requests.