Lines Matching defs:fd
74 static int read_all(int fd, uint8_t* data, size_t size) { in read_all()
92 static int read_all(int fd, std::vector<uint8_t>& buffer, size_t size) { in read_all()
96 static int write_all(int fd, const uint8_t* data, size_t size) { in write_all()
111 static int write_all(int fd, const std::vector<uint8_t>& buffer, size_t size) { in write_all()
115 static bool discard_blocks(int fd, off64_t offset, uint64_t size) { in discard_blocks()
129 static bool check_lseek(int fd, off64_t offset, int whence) { in check_lseek()
152 RangeSinkWriter(int fd, const RangeSet& tgt) in RangeSinkWriter()
387 static int ReadBlocks(const RangeSet& src, std::vector<uint8_t>& buffer, int fd) { in ReadBlocks()
405 static int WriteBlocks(const RangeSet& tgt, const std::vector<uint8_t>& buffer, int fd) { in WriteBlocks()
438 android::base::unique_fd fd; member
533 static void PrintHashForMissingStashedBlocks(const std::string& id, int fd) { in PrintHashForMissingStashedBlocks()
676 android::base::unique_fd fd(TEMP_FAILURE_RETRY(ota_open(fn.c_str(), O_RDONLY))); in LoadStash() local
738 android::base::unique_fd fd( in WriteStash() local
1743 android::base::unique_fd fd(ota_open(blockdev_filename->data.c_str(), O_RDWR)); in RangeSha1Fn() local
1804 android::base::unique_fd fd(ota_open(arg_filename->data.c_str(), O_RDONLY)); in CheckFirstBlockFn() local