Lines Matching defs:path
48 bool DepsLog::OpenForWrite(const string& path, string* err) {
50 if (!Recompact(path, err))
55 file_path_ = path; // we don't actually open the file right now, but will do
152 LoadStatus DepsLog::Load(const string& path, State* state, string* err) {
155 FILE* f = fopen(path.c_str(), "rb");
178 unlink(path.c_str());
268 if (!Truncate(path, offset, err))
311 bool DepsLog::Recompact(const string& path, string* err) {
315 string temp_path = path + ".recompact";
351 if (unlink(path.c_str()) < 0) {
356 if (rename(temp_path.c_str(), path.c_str()) < 0) {
386 int path_size = node->path().size();
387 int padding = (4 - path_size % 4) % 4; // Pad path to 4 byte boundary.
400 if (fwrite(node->path().data(), path_size, 1, file_) < 1) {
401 assert(!node->path().empty());