Lines Matching refs:temp_name
467 std::string temp_name = path.AddExtension(random_suffix).value(); in WriteToFileAtomic() local
469 HANDLE_EINTR(open(temp_name.c_str(), O_CREAT | O_EXCL | O_WRONLY, mode)); in WriteToFileAtomic()
471 PLOG(WARNING) << "Could not open " << temp_name << " for atomic write"; in WriteToFileAtomic()
472 unlink(temp_name.c_str()); in WriteToFileAtomic()
481 PLOG(WARNING) << "Could not write " << temp_name; in WriteToFileAtomic()
483 unlink(temp_name.c_str()); in WriteToFileAtomic()
490 PLOG(WARNING) << "Could not fsync " << temp_name; in WriteToFileAtomic()
492 unlink(temp_name.c_str()); in WriteToFileAtomic()
496 PLOG(WARNING) << "Could not close " << temp_name; in WriteToFileAtomic()
497 unlink(temp_name.c_str()); in WriteToFileAtomic()
501 if (rename(temp_name.c_str(), path.value().c_str()) < 0) { in WriteToFileAtomic()
502 PLOG(WARNING) << "Could not close " << temp_name; in WriteToFileAtomic()
503 unlink(temp_name.c_str()); in WriteToFileAtomic()