Home
last modified time | relevance | path

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

/art/libartbase/base/unix_file/
Dfd_file.cc154 fd_(fd), in FdFile()
182 if (fd_ != -1) { 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_ = -1; 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.h158 int fd_ = -1; 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.h97 int fd_; variable
/art/dt_fd_forward/
Ddt_fd_forward.cc247 explicit ScopedEventFdLock(const android::base::unique_fd& fd) : fd_(fd), data_(0) { in ScopedEventFdLock()
248 TEMP_FAILURE_RETRY(read(fd_, &data_, sizeof(data_))); in ScopedEventFdLock()
252 TEMP_FAILURE_RETRY(write(fd_, &data_, sizeof(data_))); in ~ScopedEventFdLock()
256 const android::base::unique_fd& fd_; member in dt_fd_forward::ScopedEventFdLock
/art/adbconnection/
Dadbconnection.cc135 explicit ScopedEventFdLock(int fd) : fd_(fd), data_(0) { in ScopedEventFdLock()
136 TEMP_FAILURE_RETRY(read(fd_, &data_, sizeof(data_))); in ScopedEventFdLock()
140 TEMP_FAILURE_RETRY(write(fd_, &data_, sizeof(data_))); in ~ScopedEventFdLock()
144 int fd_; member in adbconnection::ScopedEventFdLock
/art/libprofile/profile/
Dprofile_compilation_info.h792 : fd_(fd), mem_map_(std::move(mem_map)), mem_map_cur_(0) {} in ProfileSource()
794 bool IsMemMap() const { return fd_ == -1; } in IsMemMap()
796 int32_t fd_; // The fd is not owned by this class. variable
Dprofile_compilation_info.cc1257 int bytes_read = TEMP_FAILURE_RETRY(read(fd_, buffer, byte_count));; in Read()
1275 : (testEOF(fd_) == 0); in HasConsumedAllData()
1283 if (fstat(fd_, &stat_buffer) != 0) { in HasEmptyContent()
/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