Lines Matching defs:Fd
42 FdFile::FdFile(int fd, bool check_usage)
44 fd_(fd), auto_close_(true), read_only_mode_(false) {
47 FdFile::FdFile(int fd, const std::string& path, bool check_usage)
48 : FdFile(fd, path, check_usage, false) {
51 FdFile::FdFile(int fd, const std::string& path, bool check_usage, bool read_only_mode)
53 fd_(fd), file_path_(path), auto_close_(true), read_only_mode_(read_only_mode) {
191 int FdFile::Fd() const {
207 static ssize_t ReadIgnoreOffset(int fd, void *buf, size_t count, off_t offset) {
209 return read(fd, buf, count);
213 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) {
216 ssize_t bytes_read = TEMP_FAILURE_RETRY(read_func(fd, ptr, byte_count, offset));
283 sendfile(Fd(), input_file->Fd(), &off, end - off));
290 if (lseek(input_file->Fd(), off, SEEK_SET) != off) {