Searched refs:fd_ (Results 1 – 9 of 9) sorted by relevance
/art/libartbase/base/unix_file/ |
D | fd_file.cc | 40 : guard_state_(GuardState::kClosed), fd_(-1), auto_close_(true), read_only_mode_(false) { in FdFile() 45 fd_(fd), auto_close_(true), read_only_mode_(false) { in FdFile() 54 fd_(fd), file_path_(path), auto_close_(true), read_only_mode_(read_only_mode) { in FdFile() 58 : fd_(-1), auto_close_(true) { in FdFile() 75 if (auto_close_ && fd_ != -1) { in Destroy() 77 PLOG(WARNING) << "Failed to close file with fd=" << fd_ << " path=" << file_path_; in Destroy() 87 if (this->fd_ != other.fd_) { in operator =() 92 fd_ = other.fd_; in operator =() 138 DCHECK_EQ(fd_, -1) << path; in Open() 140 fd_ = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode)); in Open() [all …]
|
D | fd_file.h | 51 fd_(other.fd_), in FdFile() 64 int tmp_fd = fd_; in Release() 65 fd_ = -1; in Release() 72 if (fd_ != -1 && fd_ != fd) { in Reset() 75 fd_ = fd; in Reset() 183 int fd_; variable
|
/art/compiler/utils/ |
D | swap_space.cc | 63 : fd_(fd), in SwapSpace() 81 close(fd_); in ~SwapSpace() 165 int result = TEMP_FAILURE_RETRY(ftruncate64(fd_, size_ + next_part)); in NewFileChunk() 170 mmap(nullptr, next_part, PROT_READ | PROT_WRITE, MAP_SHARED, fd_, size_)); in NewFileChunk()
|
D | swap_space.h | 97 int fd_; variable
|
/art/dt_fd_forward/ |
D | dt_fd_forward.cc | 236 explicit ScopedEventFdLock(const android::base::unique_fd& fd) : fd_(fd), data_(0) { in ScopedEventFdLock() 237 TEMP_FAILURE_RETRY(read(fd_, &data_, sizeof(data_))); in ScopedEventFdLock() 241 TEMP_FAILURE_RETRY(write(fd_, &data_, sizeof(data_))); in ~ScopedEventFdLock() 245 const android::base::unique_fd& fd_; member in dt_fd_forward::ScopedEventFdLock
|
/art/runtime/jit/ |
D | profile_compilation_info.h | 664 : fd_(fd), mem_map_(std::move(mem_map)), mem_map_cur_(0) {} in ProfileSource() 666 bool IsMemMap() const { return fd_ == -1; } in IsMemMap() 668 int32_t fd_; // The fd is not owned by this class. variable
|
D | profile_compilation_info.cc | 1225 int bytes_read = TEMP_FAILURE_RETRY(read(fd_, buffer, byte_count));; in Read() 1243 : (testEOF(fd_) == 0); in HasConsumedAllData() 1251 if (fstat(fd_, &stat_buffer) != 0) { in HasEmptyContent()
|
/art/adbconnection/ |
D | adbconnection.cc | 112 explicit ScopedEventFdLock(int fd) : fd_(fd), data_(0) { in ScopedEventFdLock() 113 TEMP_FAILURE_RETRY(read(fd_, &data_, sizeof(data_))); in ScopedEventFdLock() 117 TEMP_FAILURE_RETRY(write(fd_, &data_, sizeof(data_))); in ~ScopedEventFdLock() 121 int fd_; member in adbconnection::ScopedEventFdLock
|
/art/runtime/hprof/ |
D | hprof.cc | 439 fd_(fd), in Hprof() 763 if (fd_ >= 0) { in DumpToFile() 764 out_fd = dup(fd_); in DumpToFile() 766 ThrowRuntimeException("Couldn't dump heap; dup(%d) failed: %s", fd_, strerror(errno)); in DumpToFile() 877 int fd_; member in art::hprof::Hprof
|