Lines Matching refs:dir
34 BDirectory::BDirectory(const BDirectory& dir)
38 *this = dir;
74 BDirectory::BDirectory(const BDirectory* dir, const char* path)
78 SetTo(dir, path);
101 // open dir
108 // set close on exec flag on dir FD
142 // open dir
149 // set close on exec flag on dir FD
164 // open dir
171 // set close on exec flag on dir FD
179 BDirectory::SetTo(const BDirectory* dir, const char* path)
181 if (!dir || !path || BPrivate::Storage::is_absolute_path(path)) {
186 int dirFD = dir->fDirFd;
187 if (dir == this) {
197 // open dir
198 error = set_dir_fd(_kern_open_dir(dir->fDirFd, path));
204 if (dir == this) {
209 // set close on exec flag on dir FD
292 // If the directory is initialized, get the canonical paths of the dir and
393 BDirectory::CreateDirectory(const char* path, BDirectory* dir)
398 // create the dir
404 if (dir == NULL)
409 return dir->SetTo(path);
411 return dir->SetTo(this, path);
462 BDirectory::operator=(const BDirectory& dir)
464 if (&dir != this) { // no need to assign us to ourselves
466 if (dir.InitCheck() == B_OK)
467 SetTo(&dir, ".");