Home
last modified time | relevance | path

Searched refs:fd_ (Results 1 – 8 of 8) sorted by relevance

/art/libartbase/base/unix_file/
Dfd_file.cc154 fd_(fd), in FdFile()
182 if (fd_ != kInvalidFd) { in Destroy()
184 PLOG(WARNING) << "Failed to close file with fd=" << fd_ << " path=" << file_path_; in Destroy()
191 fd_(other.fd_), in FdFile()
195 if (fd_ >= 0) { in FdFile()
196 android_fdsan_exchange_owner_tag(fd_, GetFdFileOwnerTag(&other), GetFdFileOwnerTag(this)); in FdFile()
200 other.fd_ = kInvalidFd; in FdFile()
208 if (this->fd_ != other.fd_) { in operator =()
213 fd_ = other.fd_; in operator =()
218 if (fd_ >= 0) { in operator =()
[all …]
Dfd_file.h103 bool IsValid() const { return fd_ != kInvalidFd; } in IsValid()
170 int fd_ = kInvalidFd; variable
/art/compiler/utils/
Dswap_space.cc63 : fd_(fd), in SwapSpace()
81 close(fd_); in ~SwapSpace()
150 int result = TEMP_FAILURE_RETRY(ftruncate64(fd_, size_ + next_part)); in NewFileChunk()
155 mmap(nullptr, next_part, PROT_READ | PROT_WRITE, MAP_SHARED, fd_, size_)); in NewFileChunk()
Dswap_space.h98 int fd_; variable
/art/adbconnection/
Dadbconnection.cc137 explicit ScopedEventFdLock(int fd) : fd_(fd), data_(0) { in ScopedEventFdLock()
138 TEMP_FAILURE_RETRY(read(fd_, &data_, sizeof(data_))); in ScopedEventFdLock()
142 TEMP_FAILURE_RETRY(write(fd_, &data_, sizeof(data_))); in ~ScopedEventFdLock()
146 int fd_; member in adbconnection::ScopedEventFdLock
/art/dt_fd_forward/
Ddt_fd_forward.cc249 explicit ScopedEventFdLock(const android::base::unique_fd& fd) : fd_(fd), data_(0) { in ScopedEventFdLock()
250 TEMP_FAILURE_RETRY(read(fd_, &data_, sizeof(data_))); in ScopedEventFdLock()
254 TEMP_FAILURE_RETRY(write(fd_, &data_, sizeof(data_))); in ~ScopedEventFdLock()
258 const android::base::unique_fd& fd_; member in dt_fd_forward::ScopedEventFdLock
/art/runtime/hprof/
Dhprof.cc439 fd_(fd), in Hprof()
763 if (fd_ >= 0) { in DumpToFile()
764 out_fd = DupCloexec(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
/art/libprofile/profile/
Dprofile_compilation_info.cc395 : fd_(fd), mem_map_(std::move(mem_map)), mem_map_cur_(0) {} in ProfileSource()
398 return fd_ == -1; in IsMemMap()
401 int32_t fd_; // The fd is not owned by this class. member in art::ProfileCompilationInfo::ProfileSource
1415 if (lseek64(fd_, offset, SEEK_SET) != offset) { in Seek()
1436 int bytes_read = TEMP_FAILURE_RETRY(read(fd_, buffer, byte_count));; in Read()
1457 if (fstat(fd_, &stat_buffer) != 0) { in HasEmptyContent()