Lines Matching defs:dir
46 entry_ref::entry_ref(dev_t dev, ino_t dir, const char* name)
49 directory(dir),
132 BEntry::BEntry(const BDirectory* dir, const char* path, bool traverse)
138 SetTo(dir, path, traverse);
205 BEntry::SetTo(const BDirectory* dir, const char* path, bool traverse)
208 if (!dir)
219 if (dir->InitCheck() != B_OK)
222 // dup() the dir's FD and let set() do the rest
223 int dirFD = _kern_dup(dir->get_fd());
329 // set close on exec flag on dir FD
343 BEntry::GetParent(BDirectory* dir) const
348 if (dir == NULL)
363 return dir->SetTo(&ref);
410 BEntry::MoveTo(BDirectory* dir, const char* path, bool clobber)
415 if (dir == NULL)
417 if (dir->InitCheck() != B_OK)
424 status_t error = target.SetTo(dir, path);
561 // if no dir FD is supplied, we need to open the current directory
609 // if no directory was given, we need to open the current dir
623 // the dir and let the next iteration deal with it.
667 // set close on exec flag on dir FD
763 printf("dir.device == %" B_PRIdDEV "\n", st.st_dev);
764 printf("dir.inode == %" B_PRIdINO "\n", st.st_ino);
766 printf("dir == NullFd\n");