Home
last modified time | relevance | path

Searched refs:fp_ (Results 1 – 5 of 5) 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/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
/system/extras/simpleperf/
DJITDebugReader.cpp229 if (fwrite(data, size, 1, fp_.get()) != 1) { in WriteEntry()
238 if (fflush(fp_.get()) != 0) { in Flush()
250 : path_(std::move(path)), fp_(fp, fclose) {} in TempSymFile()
253 std::unique_ptr<FILE, decltype(&fclose)> fp_; member in simpleperf::TempSymFile
Denvironment.cpp56 explicit LineReader(FILE* fp) : fp_(fp), buf_(nullptr), bufsize_(0) { in LineReader()
61 fclose(fp_); in ~LineReader()
65 if (getline(&buf_, &bufsize_, fp_) != -1) { in ReadLine()
76 FILE* fp_; member in LineReader