Home
last modified time | relevance | path

Searched refs:fp_ (Results 1 – 4 of 4) 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.cpp116 MountHandler::MountHandler(Epoll* epoll) : epoll_(epoll), fp_(fopen("/proc/mounts", "re"), fclose) { in MountHandler()
117 if (!fp_) PLOG(FATAL) << "Could not open /proc/mounts"; in MountHandler()
119 fileno(fp_.get()), [this]() { this->MountHandlerFunction(); }, EPOLLERR | EPOLLPRI); in MountHandler()
124 if (fp_) epoll_->UnregisterHandler(fileno(fp_.get())).IgnoreError(); in ~MountHandler()
128 rewind(fp_.get()); in MountHandlerFunction()
133 while (getline(&buf, &len, fp_.get()) != -1) { in MountHandlerFunction()
Dmount_handler.h54 std::unique_ptr<FILE, decltype(&fclose)> fp_; variable
/system/extras/simpleperf/
Denvironment.cpp53 explicit LineReader(FILE* fp) : fp_(fp), buf_(nullptr), bufsize_(0) { in LineReader()
58 fclose(fp_); in ~LineReader()
62 if (getline(&buf_, &bufsize_, fp_) != -1) { in ReadLine()
73 FILE* fp_; member in LineReader