Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dcmd_stat.cpp539 std::unique_ptr<FILE, decltype(&fclose)> fp_holder(nullptr, fclose); in Run() local
541 fp_holder.reset(fopen(output_filename_.c_str(), "we")); in Run()
542 if (fp_holder == nullptr) { in Run()
547 fp_holder.reset(fdopen(out_fd_.release(), "we")); in Run()
548 if (fp_holder == nullptr) { in Run()
553 FILE* fp = fp_holder ? fp_holder.get() : stdout; in Run()