Lines Matching defs:dir

79 	later use of the entry_ref will fail if \p dev is not a valid device or \p dir
83 \param dir the directory in which the entry resides
86 entry_ref::entry_ref(dev_t dev, ino_t dir, const char *name)
89 directory(dir),
247 /*! If traverse is true and \c dir/path refers to a symlink, the BEntry will
250 \param dir directory in which \a path resides
251 \param path relative path reckoned off of \a dir
256 BEntry::BEntry(const BDirectory *dir, const char *path, bool traverse)
262 SetTo(dir, path, traverse);
393 BEntry::SetTo(const BDirectory *dir, const char *path, bool traverse)
396 if (!dir)
407 if (dir->InitCheck() != B_OK)
410 // dup() the dir's FD and let set() do the rest
411 int dirFD = _kern_dup(dir->get_fd());
583 // set close on exec flag on dir FD
600 \param dir pointer to a pre-allocated BDirectory object into which the result is stored
607 BEntry::GetParent(BDirectory *dir) const
612 if (dir == NULL)
627 return dir->SetTo(&ref);
709 \param dir Pointer to a pre-allocated BDirectory into which the entry should be moved.
711 either way, \c path is reckoned off of \c dir. If \c NULL, the entry retains
723 BEntry::MoveTo(BDirectory *dir, const char *path, bool clobber)
728 if (dir == NULL)
730 if (dir->InitCheck() != B_OK)
737 status_t error = target.SetTo(dir, path);
892 // if no dir FD is supplied, we need to open the current directory
940 // if no directory was given, we need to open the current dir
954 // the dir and let the next iteration deal with it.
998 // set close on exec flag on dir FD
1091 printf("dir.device == %d\n", (int)st.st_dev);
1092 printf("dir.inode == %lld\n", (long long)st.st_ino);
1094 printf("dir == NullFd\n");