Home
last modified time | relevance | path

Searched refs:fp_ (Results 1 – 6 of 6) sorted by relevance

/system/update_engine/update_manager/
Dreal_random_provider.cc48 : Variable<uint64_t>(name, kVariableModeConst), fp_(fp) {} in RandomSeedVariable()
60 int rd = fread(buf + buf_rd, 1, sizeof(result) - buf_rd, fp_.get()); in GetValue()
61 if (rd == 0 || ferror(fp_.get())) { in GetValue()
76 base::ScopedFILE fp_; member in chromeos_update_manager::RandomSeedVariable
/system/extras/simpleperf/
DMapRecordReader.cpp101 : map_record_reader_(map_record_reader), fp_(nullptr, fclose) { in MapRecordThread()
104 fp_.reset(fdopen(tmpfile_->release(), "r+")); in MapRecordThread()
116 if (!fp_) { in RunThread()
134 if (fwrite(record->Binary(), record->size(), 1, fp_.get()) != 1) { in WriteRecordToFile()
150 off_t offset = ftello(fp_.get()); in ReadMapRecords()
156 if (fseek(fp_.get(), 0, SEEK_SET) != 0) { in ReadMapRecords()
163 if (fread(buffer.data(), Record::header_size(), 1, fp_.get()) != 1) { in ReadMapRecords()
172 fp_.get()) != 1) { in ReadMapRecords()
DMapRecordReader.h71 std::unique_ptr<FILE, decltype(&fclose)> fp_; variable
DJITDebugReader.cpp221 if (fwrite(data, size, 1, fp_.get()) != 1) { in WriteEntry()
232 if (fflush(fp_.get()) != 0) { in Flush()
245 TempSymFile(std::string&& path, FILE* fp) : path_(std::move(path)), fp_(fp, fclose) {} in TempSymFile()
248 std::unique_ptr<FILE, decltype(&fclose)> fp_; member in simpleperf::TempSymFile
/system/core/init/
Dmount_handler.cpp115 MountHandler::MountHandler(Epoll* epoll) : epoll_(epoll), fp_(fopen("/proc/mounts", "re"), fclose) { in MountHandler()
116 if (!fp_) PLOG(FATAL) << "Could not open /proc/mounts"; in MountHandler()
118 fileno(fp_.get()), [this]() { this->MountHandlerFunction(); }, EPOLLERR | EPOLLPRI); in MountHandler()
123 if (fp_) epoll_->UnregisterHandler(fileno(fp_.get())); in ~MountHandler()
127 rewind(fp_.get()); in MountHandlerFunction()
132 while (getline(&buf, &len, fp_.get()) != -1) { in MountHandlerFunction()
Dmount_handler.h54 std::unique_ptr<FILE, decltype(&fclose)> fp_; variable