Searched refs:fd_ (Results 1 – 10 of 10) sorted by relevance
/ndk/sources/android/crazy_linker/src/ |
D | crazy_linker_ashmem.h | 15 AshmemRegion() : fd_(-1) {} in AshmemRegion() 19 int fd() const { return fd_; } in fd() 22 int ret = fd_; in Release() 23 fd_ = -1; in Release() 28 if (fd_ != -1) { in Reset() 29 ::close(fd_); in Reset() 31 fd_ = fd; in Reset() 59 int fd_; variable
|
D | crazy_linker_system.cpp | 23 fd_ = TEMP_FAILURE_RETRY(::open(path, O_RDONLY)); in OpenReadOnly() 24 return (fd_ != -1); in OpenReadOnly() 29 fd_ = TEMP_FAILURE_RETRY(::open(path, O_RDWR)); in OpenReadWrite() 30 return (fd_ != -1); in OpenReadWrite() 34 return TEMP_FAILURE_RETRY(::read(fd_, buffer, buffer_size)); in Read() 38 return ::lseek(fd_, offset, SEEK_SET); in SeekTo() 46 return ::mmap(address, length, prot, flags, fd_, offset); in Map() 50 if (fd_ != -1) { in Close() 52 TEMP_FAILURE_RETRY(close(fd_)); in Close() 54 fd_ = -1; in Close()
|
D | crazy_linker_system.h | 43 FileDescriptor() : fd_(kEmptyFD) {} in FileDescriptor() 45 FileDescriptor(const char* path) : fd_(kEmptyFD) { OpenReadOnly(path); } in FileDescriptor() 49 bool IsOk() const { return fd_ != kEmptyFD; } in IsOk() 50 HandleType Get() const { return fd_; } in Get() 63 HandleType fd_;
|
D | crazy_linker_system_mock.cpp | 306 fd_ = NewMockFileHandle(path, FILE_OPEN_READ_ONLY); in OpenReadOnly() 307 return fd_ != NULL; in OpenReadOnly() 316 if (fd_) { in Close() 317 MockFileHandle* handle = reinterpret_cast<MockFileHandle*>(fd_); in Close() 319 fd_ = NULL; in Close() 324 if (!fd_) { in Read() 328 MockFileHandle* handle = reinterpret_cast<MockFileHandle*>(fd_); in Read() 333 if (!fd_) { in SeekTo() 337 MockFileHandle* handle = reinterpret_cast<MockFileHandle*>(fd_); in SeekTo() 346 if (!fd_ || (offset & 4095) != 0) { in Map() [all …]
|
D | crazy_linker_line_reader.cpp | 16 LineReader::LineReader() : fd_(), buff_(buff0_) { in LineReader() 21 LineReader::LineReader(const char* path) : fd_(), buff_(buff0_) { Open(path); } in LineReader() 27 eof_ = !fd_.OpenReadOnly(path); in Open() 117 int ret = fd_.Read(buff_ + buff_size_, avail); in GetNextLine()
|
D | crazy_linker_elf_loader.cpp | 25 : fd_(), in ElfLoader() 73 if (!fd_.OpenReadOnly(lib_path)) { in LoadAt() 78 if (file_offset && fd_.SeekTo(file_offset) < 0) { in LoadAt() 104 int ret = fd_.Read(&header_, sizeof(header_)); in ReadElfHeader() 167 void* mmap_result = fd_.Map( in ReadProgramHeader() 303 void* seg_addr = fd_.Map((void*)seg_page_start, in LoadSegments()
|
D | crazy_linker_line_reader.h | 48 FileDescriptor fd_; variable
|
D | crazy_linker_ashmem.cpp | 45 return ioctl(fd_, ASHMEM_SET_PROT_MASK, prot) == 0; in SetProtectionFlags()
|
D | crazy_linker_elf_loader.h | 56 FileDescriptor fd_;
|
/ndk/sources/third_party/googletest/googletest/src/ |
D | gtest-port.cc | 516 explicit CapturedStream(int fd) : fd_(fd), uncaptured_fd_(dup(fd)) { in CapturedStream() 560 dup2(captured_fd, fd_); in CapturedStream() 572 dup2(uncaptured_fd_, fd_); in GetCapturedString() 590 const int fd_; // A stream to capture. member in testing::internal::CapturedStream
|