Searched refs:aio (Results 1 – 3 of 3) sorted by relevance
54 struct aiocb aio; in TEST_F() local55 struct aiocb *aiol[] = {&aio}; in TEST_F()56 aio.aio_fildes = dummy_file.fd; in TEST_F()57 aio.aio_buf = buf; in TEST_F()58 aio.aio_offset = 0; in TEST_F()59 aio.aio_nbytes = TEST_PACKET_SIZE; in TEST_F()61 EXPECT_EQ(aio_read(&aio), 0); in TEST_F()63 EXPECT_EQ(aio_return(&aio), TEST_PACKET_SIZE); in TEST_F()70 struct aiocb aio; in TEST_F() local71 struct aiocb *aiol[] = {&aio}; in TEST_F()[all …]
170 struct aiocb aio; in receiveFile() local171 aio.aio_fildes = mfr.fd; in receiveFile()172 aio.aio_buf = nullptr; in receiveFile()173 struct aiocb *aiol[] = {&aio}; in receiveFile()200 int written = aio_return(&aio); in receiveFile()202 errno = aio_error(&aio); in receiveFile()205 if (static_cast<size_t>(written) < aio.aio_nbytes) { in receiveFile()227 aio_prepare(&aio, data, length, offset); in receiveFile()228 aio_write(&aio); in receiveFile()263 struct aiocb aio; in sendFile() local[all …]
444 struct aiocb aio; in receiveFile() local445 aio.aio_fildes = mfr.fd; in receiveFile()446 aio.aio_buf = nullptr; in receiveFile()447 struct aiocb *aiol[] = {&aio}; in receiveFile()472 int written = aio_return(&aio); in receiveFile()473 if (static_cast<size_t>(written) < aio.aio_nbytes) { in receiveFile()474 errno = written == -1 ? aio_error(&aio) : EIO; in receiveFile()539 aio_prepare(&aio, mIobuf[i].bufs.data(), ret, offset); in receiveFile()540 aio_write(&aio); in receiveFile()571 struct aiocb aio; in sendFile() local[all …]