Lines Matching defs:dir
37 BDirectory::BDirectory(const BDirectory& dir)
41 *this = dir;
77 BDirectory::BDirectory(const BDirectory* dir, const char* path)
81 SetTo(dir, path);
104 // open dir
112 // set close on exec flag on dir FD
146 // open dir
154 // set close on exec flag on dir FD
169 // open dir
177 // set close on exec flag on dir FD
185 BDirectory::SetTo(const BDirectory* dir, const char* path)
187 if (!dir || !path || BPrivate::Storage::is_absolute_path(path)) {
192 int dirFD = dir->fDirFd;
193 if (dir == this) {
203 // open dir
211 if (dir == this) {
216 // set close on exec flag on dir FD
312 // If the directory is initialized, get the canonical paths of the dir and
413 BDirectory::CreateDirectory(const char* path, BDirectory* dir)
418 // create the dir
424 if (dir == NULL)
429 return dir->SetTo(path);
431 return dir->SetTo(this, path);
482 BDirectory::operator=(const BDirectory& dir)
484 if (&dir != this) { // no need to assign us to ourselves
486 if (dir.InitCheck() == B_OK)
487 SetTo(&dir, ".");