Searched refs:unique_file (Results 1 – 4 of 4) sorted by relevance
65 using unique_file = std::unique_ptr<FILE, OtaFcloser>; variable67 int ota_fclose(unique_file& fh);
105 int ota_fclose(unique_file& fh) { in ota_fclose()
65 unique_file f(ota_fopen(filename, "rb")); in LoadFileContents()117 unique_file dev(ota_fopen(partition, "rb")); in LoadPartitionContents()
544 unique_file f(ota_fopen(filename.c_str(), "rb")); in FileGetPropFn()