Lines Matching defs:fd
146 static int read_all(int fd, uint8_t* data, size_t size) { in read_all()
160 static int read_all(int fd, std::vector<uint8_t>& buffer, size_t size) { in read_all()
164 static int write_all(int fd, const uint8_t* data, size_t size) { in write_all()
179 static int write_all(int fd, const std::vector<uint8_t>& buffer, size_t size) { in write_all()
183 static bool discard_blocks(int fd, off64_t offset, uint64_t size) { in discard_blocks()
198 static bool check_lseek(int fd, off64_t offset, int whence) { in check_lseek()
218 int fd; member
345 static int ReadBlocks(const RangeSet& src, std::vector<uint8_t>& buffer, int fd) { in ReadBlocks()
366 static int WriteBlocks(const RangeSet& tgt, const std::vector<uint8_t>& buffer, int fd) { in WriteBlocks()
401 int fd; member
422 std::vector<uint8_t>& buffer, int fd) { in LoadSrcTgtVersion1()
611 int fd = TEMP_FAILURE_RETRY(open(fn.c_str(), O_RDONLY)); in LoadStash() local
668 int fd = TEMP_FAILURE_RETRY(open(fn.c_str(), O_WRONLY | O_CREAT | O_TRUNC, STASH_FILE_MODE)); in WriteStash() local
775 std::vector<uint8_t>& buffer, int fd, bool usehash) { in SaveStash()
867 std::vector<uint8_t>& buffer, int fd, const std::string& stashbase, bool* overlap) { in LoadSrcTgtVersion2()
1742 int fd = open(blockdev_filename->data, O_RDWR); in RangeSha1Fn() local
1798 int fd = open(arg_filename->data, O_RDONLY); in CheckFirstBlockFn() local