Lines Matching refs:fd_
39 if (fd_ < 0) { in Read()
43 ssize_t rc = TEMP_FAILURE_RETRY(read(fd_, buf, count)); in Read()
51 if (fd_ < 0) { in Write()
55 ssize_t rc = TEMP_FAILURE_RETRY(write(fd_, buf, count)); in Write()
63 if (fd_ < 0) { in Seek()
72 off_t newpos = lseek(fd_, pos, SEEK_SET); in Seek()
83 if (fd_ < 0) { in Close()
87 bool success = close(fd_) == 0; in Close()
90 fd_ = -1; in Close()
96 if (fstat(fd_, &stbuf) == -1) in GetSize()
104 return ioctl(fd_, BLKGETSIZE64, size); in GetSize()
107 if (ioctl(fd_, DKIOCGETBLOCKCOUNT, §ors) == 0) { in GetSize()
114 off_t pos = lseek(fd_, 0, SEEK_CUR); in GetSize()
117 off_t end_pos = lseek(fd_, 0, SEEK_END); in GetSize()
121 lseek(fd_, 0, SEEK_END); in GetSize()
129 : fd_(fd) {} in File()