Lines Matching refs:fd_
24 fd_ = open(filename.c_str(), O_RDONLY); in ElfFile()
25 if (fd_ != -1) { in ElfFile()
27 if (fstat(fd_, &sb) == -1) { in ElfFile()
31 mmap_ = mmap(0, sb.st_size, PROT_READ, MAP_PRIVATE, fd_, 0); in ElfFile()
49 if (fd_ != -1) { in ~ElfFile()
50 close(fd_); in ~ElfFile()
51 fd_ = -1; in ~ElfFile()
75 ssize_t ret = lseek(fd_, 0, SEEK_SET); in ParseElfHeader()
91 int64_t ret = lseek(fd_, phdrOffset, SEEK_SET); in ParsePrgHeaders()
127 int64_t ret = lseek(fd_, shdrOffset, SEEK_SET); in ParseSecNamesStr()
155 ret = lseek(fd_, secOffset, SEEK_SET); in ParseSecNamesStr()
178 int64_t ret = lseek(fd_, shdrOffset, SEEK_SET); in ParseSecHeaders()