• Home
  • Raw
  • Download

Lines Matching refs:temp_filename

250   const std::string temp_filename = filename + ".new";  in config_save()  local
267 fp = fopen(temp_filename.c_str(), "wt"); in config_save()
269 LOG(ERROR) << __func__ << ": unable to write to file '" << temp_filename in config_save()
284 LOG(ERROR) << __func__ << ": unable to write to file '" << temp_filename in config_save()
292 << temp_filename << "': " << strerror(errno); in config_save()
299 LOG(WARNING) << __func__ << ": unable to fsync file '" << temp_filename in config_save()
304 LOG(ERROR) << __func__ << ": unable to close file '" << temp_filename in config_save()
311 if (chmod(temp_filename.c_str(), S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP) == in config_save()
319 if (rename(temp_filename.c_str(), filename.c_str()) == -1) { in config_save()
342 unlink(temp_filename.c_str()); in config_save()
366 const std::string temp_filename = filename + ".new"; in checksum_save() local
367 base::FilePath path(temp_filename); in checksum_save()
390 fp = fopen(temp_filename.c_str(), "rb"); in checksum_save()
392 LOG(ERROR) << __func__ << ": unable to write to file '" << temp_filename in checksum_save()
400 LOG(WARNING) << __func__ << ": unable to fsync file '" << temp_filename in checksum_save()
405 LOG(ERROR) << __func__ << ": unable to close file '" << temp_filename in checksum_save()
412 if (chmod(temp_filename.c_str(), S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP) == in checksum_save()
420 if (rename(temp_filename.c_str(), filename.c_str()) == -1) { in checksum_save()
443 unlink(temp_filename.c_str()); in checksum_save()