Lines Matching refs:aio
449 struct aiocb aio; in receiveFile() local
450 aio.aio_fildes = mfr.fd; in receiveFile()
451 aio.aio_buf = nullptr; in receiveFile()
452 struct aiocb *aiol[] = {&aio}; in receiveFile()
477 int written = aio_return(&aio); in receiveFile()
478 if (static_cast<size_t>(written) < aio.aio_nbytes) { in receiveFile()
479 errno = written == -1 ? aio_error(&aio) : EIO; in receiveFile()
546 aio_prepare(&aio, mIobuf[i].bufs.data(), ret, offset); in receiveFile()
547 aio_write(&aio); in receiveFile()
578 struct aiocb aio; in sendFile() local
579 aio.aio_fildes = mfr.fd; in sendFile()
580 struct aiocb *aiol[] = {&aio}; in sendFile()
612 aio_prepare(&aio, mIobuf[i].bufs.data(), length, offset); in sendFile()
613 aio_read(&aio); in sendFile()
631 num_read = aio_return(&aio); in sendFile()
632 if (static_cast<size_t>(num_read) < aio.aio_nbytes) { in sendFile()
633 errno = num_read == -1 ? aio_error(&aio) : EIO; in sendFile()