Lines Matching refs:dir
78 OutputStream::relocate(const OutputDirectory &dir)
83 OutputFile<StreamType>::OutputFile(const OutputDirectory &dir,
91 _fstream->open(dir.resolve(_name).c_str(), _mode);
105 OutputFile<StreamType>::relocate(const OutputDirectory &dir)
109 _fstream->open(dir.resolve(_name).c_str(), _mode);
162 const string old_dir(dir);
164 dir = d;
167 if (dir[dir.size() - 1] != PATH_SEPARATOR)
168 dir += PATH_SEPARATOR;
172 if ((mkdir(dir.c_str(), 0755) != 0) && (errno != EEXIST))
173 fatal("Failed to create new output subdirectory '%s'\n", dir);
184 i->second->setDirectory(dir + PATH_SEPARATOR + i->first);
193 if (dir.empty())
196 return dir;
202 return !isAbsolute(name) ? dir + name : name;
283 fatal("Attempting to create subdirectory not in m5 output dir\n");
285 OutputDirectory *dir(new OutputDirectory(new_dir));
286 dirs[name] = dir;
288 return dir;
297 fatal("Attempting to remove file/dir not in output dir\n");