Searched refs:tmp_file (Results 1 – 3 of 3) sorted by relevance
298 string tmp_file = proto_file + "_tmp"; in flush_proto_data() local299 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()
143 char tmp_file[256]; in SetUp() local145 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()
1218 FILE* tmp_file = tmpfile(); in setup_jail() local1219 if (!tmp_file) { in setup_jail()1223 unique_fd tmp_fd(TEMP_FAILURE_RETRY(dup(fileno(tmp_file)))); in setup_jail()