Lines Matching refs:ref

97 	\param ref a reference to an entry_ref to copy
99 entry_ref::entry_ref(const entry_ref &ref)
101 device(ref.device),
102 directory(ref.directory),
105 set_name(ref.name);
149 entry_ref::operator==(const entry_ref &ref) const
151 return device == ref.device
152 && directory == ref.directory
153 && (name == ref.name
154 || (name != NULL && ref.name != NULL && !strcmp(name, ref.name)));
164 entry_ref::operator!=(const entry_ref &ref) const
166 return !(*this == ref);
170 /*! \brief Makes the entry_ref a copy of the entry_ref specified by \a ref.
171 \param ref the entry_ref to copy
176 entry_ref::operator=(const entry_ref &ref)
178 if (this == &ref)
181 device = ref.device;
182 directory = ref.directory;
183 set_name(ref.name);
267 /*! If traverse is true and \a ref refers to a symlink, the BEntry
271 \param ref the entry_ref referring to the given file
275 BEntry::BEntry(const entry_ref *ref, bool traverse)
281 SetTo(ref, traverse);
426 BEntry::SetTo(const entry_ref *ref, bool traverse)
429 if (ref == NULL)
433 int dirFD = _kern_open_dir_entry_ref(ref->device, ref->directory, NULL);
436 return (fCStatus = set(dirFD, ref->name, traverse));
479 \param ref pointer to a preallocated entry_ref into which the result is copied
486 BEntry::GetRef(entry_ref *ref) const
491 if (ref == NULL)
498 ref->device = st.st_dev;
499 ref->directory = st.st_ino;
500 error = ref->set_name(fName);
618 // get a node ref for the directory and init it
624 node_ref ref;
625 ref.device = st.st_dev;
626 ref.node = st.st_ino;
627 return dir->SetTo(&ref);
1108 \param ref The entry_ref structure to be filled in
1111 - \c B_BAD_VALUE - \c NULL \a path or \a ref.
1116 get_ref_for_path(const char *path, entry_ref *ref)
1118 status_t error = (path && ref ? B_OK : B_BAD_VALUE);
1123 error = entry.GetRef(ref);