Home
last modified time | relevance | path

Searched refs:fclose (Results 1 – 25 of 110) sorted by relevance

12345

/system/core/libunwindstack/tools/
Dunwind_for_offline.cpp77 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen("regs.txt", "w+"), &fclose); in SaveRegs()
110 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(file_name.c_str(), "w+"), &fclose); in SaveStack()
150 std::unique_ptr<FILE, decltype(&fclose)> output(fopen(cur_name.c_str(), "w+"), &fclose); in CreateElfFromMemory()
175 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen(info->name.c_str(), "r"), &fclose); in CopyElfFromFile()
181 std::unique_ptr<FILE, decltype(&fclose)> output(fopen(cur_name.c_str(), "w+"), &fclose); in CopyElfFromFile()
309 std::unique_ptr<FILE, decltype(&fclose)> fp(fopen("maps.txt", "w+"), &fclose); in SaveData()
/system/core/libnativebridge/tests/
DPreInitializeNativeBridge_test.cpp45 fclose(cpuinfo); in TEST_F()
54 fclose(proc_cpuinfo); in TEST_F()
/system/core/libmeminfo/libdmabufinfo/
Ddmabufinfo.cpp49 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(fdinfo.c_str(), "re"), fclose}; in ReadDmaBufFdInfo()
169 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(mapspath.c_str(), "re"), fclose}; in ReadDmaBufMapRefs()
212 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(path.c_str(), "re"), fclose}; in ReadDmaBufInfo()
/system/libufdt/tests/src/
Dutil.c56 fclose(fp); in load_file()
77 if (fout) fclose(fout); in write_buf_to_file()
/system/extras/perfprofd/
Dcpuconfig.cc76 fclose(fp); in GetNumCores()
88 fclose(fp); in OnlineCore()
Dperfprofd_cmdline.cc131 fclose(fp); in post_process()
143 fclose(fp); in post_process()
161 fclose(fp); in post_process()
/system/extras/ext4_utils/
Dblk_alloc_to_base_fs.cpp84 fclose(blk_alloc_file); in main()
85 fclose(base_fs_file); in main()
/system/core/libmeminfo/
Dlibmeminfo_benchmark.cpp246 fclose(f); in get_zram_mem_used()
258 fclose(f); in get_zram_mem_used()
414 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(vm_file.c_str(), "re"), fclose}; in get_allocated_vmalloc_memory()
467 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(path.c_str(), "re"), fclose}; in get_smaps_rollup()
Dsysmeminfo.cpp211 auto mmstat_fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(mmstat.c_str(), "re"), fclose}; in MemZramDevice()
241 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(path.c_str(), "re"), fclose}; in ReadVmallocInfo()
Dprocmeminfo.cpp368 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(path.c_str(), "re"), fclose}; in ForEachVmaFromFile()
447 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(path.c_str(), "re"), fclose}; in SmapsOrRollupFromFile()
494 auto fp = std::unique_ptr<FILE, decltype(&fclose)>{fopen(path.c_str(), "re"), fclose}; in SmapsOrRollupPssFromFile()
/system/netd/libnetdutils/
DUniqueFile.cpp27 sys.fclose(file).ignoreError(); in operator ()()
/system/core/init/
Dbootchart.cpp60 static std::unique_ptr<FILE, decltype(&fclose)> fopen_unique(const char* filename, in fopen_unique()
62 std::unique_ptr<FILE, decltype(&fclose)> result(fopen(filename, mode), fclose); in fopen_unique()
Dmount_handler.h54 std::unique_ptr<FILE, decltype(&fclose)> fp_;
/system/core/libprocinfo/
Dprocess.cpp77 std::unique_ptr<FILE, decltype(&fclose)> fp(fdopen(status_fd, "r"), fclose); in GetProcessInfoFromProcPidFd()
/system/extras/latencytop/
Dlatencytop.c184 fclose(f); in read_global_stats()
195 fclose(f); in read_global_stats()
249 fclose(f); in read_thread_stats()
265 fclose(f); in read_thread_stats()
312 fclose(f); in set_latencytop()
/system/extras/verity/
Dgenerate_verity_key.c106 fclose(f); in convert_x509()
158 fclose(f); in generate_key()
/system/vold/
DProcess.cpp49 auto file = std::unique_ptr<FILE, decltype(&fclose)>{fopen(path.c_str(), "re"), fclose}; in checkMaps()
/system/libufdt/utils/src/
Dmkdtimg_cfg_create.c153 fclose(img_fp); in process_command_cfg_create()
156 if (cfg_fp) fclose(cfg_fp); in process_command_cfg_create()
Dmkdtimg_dump.c76 if (out_fp) fclose(out_fp); in write_fdt_to_file()
232 if (img_fp) fclose(img_fp); in process_command_dump()
233 if (out_fp) fclose(out_fp); in process_command_dump()
/system/sepolicy/tests/
Dsepol_wrap.cpp205 fclose(fp); in load_policy()
217 fclose(fp); in load_policy()
227 fclose(fp); in load_policy()
239 fclose(fp); in load_policy()
247 fclose(fp); in load_policy()
/system/extras/boottime_tools/bootio/
Dbootio_collector.cpp48 fclose(file); in PopulateCpu()
81 fclose(file); in ReadIo()
98 fclose(file); in ReadStatForName()
119 fclose(file); in ReadStat()
154 fclose(file); in ReadCmdline()
/system/core/liblog/tests/
Dlibc_test.cpp33 int fcloseReturn = fclose(fp); in TEST()
/system/sepolicy/tools/
Dversion_policy.c61 fclose(file); in read_cil_file()
75 fclose(file); in read_cil_file()
/system/extras/ioshark/
Ddump_ioshark_filenames.c79 fclose(filename_cache_fp); in main()
/system/bt/osi/src/
Dconfig.cc83 fclose(fp); in config_new()
303 if (fclose(fp) == EOF) { in config_save()
343 if (fp) fclose(fp); in config_save()
404 if (fclose(fp) == EOF) { in checksum_save()
444 if (fp) fclose(fp); in checksum_save()

12345