Searched refs:wfd (Results 1 – 1 of 1) sorted by relevance
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 141 static int write_at_offset(unsigned char* buffer, size_t size, int wfd, off64_t offset) { in write_at_offset() argument 142 if (TEMP_FAILURE_RETRY(lseek64(wfd, offset, SEEK_SET)) == -1) { in write_at_offset() 146 if (!android::base::WriteFully(wfd, buffer, size)) { in write_at_offset() 301 android::base::unique_fd wfd; in produce_block_map() local 303 wfd.reset(open(blk_dev, O_WRONLY)); in produce_block_map() 304 if (wfd == -1) { in produce_block_map() 338 if (write_at_offset(buffers[head].data(), sb.st_blksize, wfd, in produce_block_map() 383 if (write_at_offset(buffers[head].data(), sb.st_blksize, wfd, in produce_block_map() 415 if (fsync(wfd) == -1) { in produce_block_map() 419 if (close(wfd.release()) == -1) { in produce_block_map()
|