Home
last modified time | relevance | path

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

/aosp14/system/core/storaged/
H A Dstoraged.cpp298 string tmp_file = proto_file + "_tmp"; in flush_proto_data() local
299 unique_fd fd(TEMP_FAILURE_RETRY(open(tmp_file.c_str(), in flush_proto_data()
304 PLOG(ERROR) << "Faied to open tmp file: " << tmp_file; in flush_proto_data()
319 PLOG(ERROR) << "Faied to write tmp file: " << tmp_file; in flush_proto_data()
342 PLOG(ERROR) << "Faied to write tmp file: " << tmp_file; in flush_proto_data()
348 rename(tmp_file.c_str(), proto_file.c_str()); in flush_proto_data()
/aosp14/system/core/debuggerd/libdebuggerd/test/
H A Ddump_memory_test.cpp143 char tmp_file[256]; in SetUp() local
145 memcpy(tmp_file, data_template, sizeof(data_template)); in SetUp()
146 int tombstone_fd = mkstemp(tmp_file); in SetUp()
149 memcpy(tmp_file, tmp_template, sizeof(tmp_template)); in SetUp()
150 tombstone_fd = mkstemp(tmp_file); in SetUp()
155 if (unlink(tmp_file) == -1) { in SetUp()
/aosp14/system/core/debuggerd/
H A Ddebuggerd_test.cpp1218 FILE* tmp_file = tmpfile(); in setup_jail() local
1219 if (!tmp_file) { in setup_jail()
1223 unique_fd tmp_fd(TEMP_FAILURE_RETRY(dup(fileno(tmp_file)))); in setup_jail()