Lines Matching refs:path
131 bool BuildLog::OpenForWrite(const string& path, const BuildLogUser& user,
134 if (!Recompact(path, user, err))
139 log_file_path_ = path; // we don't actually open the file right now, but will
150 const string& path = (*out)->path();
151 Entries::iterator i = entries_.find(path);
156 log_entry = new LogEntry(path);
261 LoadStatus BuildLog::Load(const string& path, string* err) {
263 FILE* file = fopen(path.c_str(), "r");
293 unlink(path.c_str());
379 BuildLog::LogEntry* BuildLog::LookupByOutput(const string& path) {
380 Entries::iterator i = entries_.find(path);
392 bool BuildLog::Recompact(const string& path, const BuildLogUser& user,
397 string temp_path = path + ".recompact";
428 if (unlink(path.c_str()) < 0) {
433 if (rename(temp_path.c_str(), path.c_str()) < 0) {
441 bool BuildLog::Restat(const StringPiece path,
448 std::string temp_path = path.AsString() + ".restat";
485 if (unlink(path.str_) < 0) {
490 if (rename(temp_path.c_str(), path.str_) < 0) {