• Home
  • Raw
  • Download

Lines Matching refs:temp_filename

280   const std::string temp_filename = filename + ".new";  in config_save()  local
297 fp = fopen(temp_filename.c_str(), "wt"); in config_save()
299 LOG(ERROR) << __func__ << ": unable to write to file '" << temp_filename in config_save()
314 LOG(ERROR) << __func__ << ": unable to write to file '" << temp_filename in config_save()
322 << temp_filename << "': " << strerror(errno); in config_save()
329 LOG(WARNING) << __func__ << ": unable to fsync file '" << temp_filename in config_save()
334 LOG(ERROR) << __func__ << ": unable to close file '" << temp_filename in config_save()
341 if (chmod(temp_filename.c_str(), S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP) == in config_save()
349 if (rename(temp_filename.c_str(), filename.c_str()) == -1) { in config_save()
372 unlink(temp_filename.c_str()); in config_save()
396 const std::string temp_filename = filename + ".new"; in checksum_save() local
397 base::FilePath path(temp_filename); in checksum_save()
420 fp = fopen(temp_filename.c_str(), "rb"); in checksum_save()
422 LOG(ERROR) << __func__ << ": unable to write to file '" << temp_filename in checksum_save()
430 LOG(WARNING) << __func__ << ": unable to fsync file '" << temp_filename in checksum_save()
435 LOG(ERROR) << __func__ << ": unable to close file '" << temp_filename in checksum_save()
442 if (chmod(temp_filename.c_str(), S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP) == in checksum_save()
450 if (rename(temp_filename.c_str(), filename.c_str()) == -1) { in checksum_save()
473 unlink(temp_filename.c_str()); in checksum_save()