/haiku/src/tests/add-ons/kernel/file_systems/bfs/ |
H A D | bfs_attribute_iterator_test.cpp | 95 DIR* dir = fs_fopen_attr_dir(fd); local 96 while (struct dirent* entry = fs_read_attr_dir(dir)) { 120 fs_close_attr_dir(dir); 147 DIR* dir = fs_fopen_attr_dir(fd); local 148 while (struct dirent* entry = fs_read_attr_dir(dir)) { 172 fs_close_attr_dir(dir);
|
/haiku/src/kits/tracker/ |
H A D | DirMenu.cpp | 117 BDirectory dir(&entry); 119 if (!showDesktop && dir.InitCheck() == B_OK 120 && dir.IsRootDirectory()) { 146 BDirectory dir(&entry); 147 if (!showDesktop && dir.InitCheck() == B_OK 148 && dir.IsRootDirectory()) {
|
H A D | NodeWalker.h | 75 TNodeWalker(const BDirectory* dir, bool includeTopDirectory); 83 TNodeWalker(const BDirectory* dir);
|
/haiku/src/build/libroot/ |
H A D | function_remapper.cpp | 306 fs_close_attr_dir(void *dir) argument 310 return _haiku_build_fs_close_attr_dir(dir); 315 fs_read_attr_dir(void *dir) argument 319 return (addr_t)_haiku_build_fs_read_attr_dir(dir); 324 fs_rewind_attr_dir(void *dir) argument 328 _haiku_build_fs_rewind_attr_dir(dir);
|
/haiku/src/build/libbe/storage/ |
H A D | Entry.cpp | 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) argument 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) argument 262 SetTo(dir, path, traverse); 393 BEntry::SetTo(const BDirectory *dir, cons argument 723 MoveTo(BDirectory *dir, const char *path, bool clobber) argument [all...] |
H A D | File.cpp | 100 \param dir the BDirectory, relative to which the file's path name is 102 \param path the file's path name relative to \a dir 106 BFile::BFile(const BDirectory *dir, const char *path, uint32 openMode) argument 111 SetTo(dir, path, openMode); 264 \param dir the BDirectory, relative to which the file's path name is 266 \param path the file's path name relative to \a dir 269 - \c B_BAD_VALUE: \c NULL \a dir or \a path or bad \a openMode. 282 BFile::SetTo(const BDirectory *dir, const char *path, uint32 openMode) argument 286 if (!dir) 289 int fd = _kern_open(dir [all...] |
/haiku/src/kits/storage/ |
H A D | Entry.cpp | 46 entry_ref::entry_ref(dev_t dev, ino_t dir, const char* name) argument 49 directory(dir), 132 BEntry::BEntry(const BDirectory* dir, const char* path, bool traverse) argument 138 SetTo(dir, path, traverse); 205 BEntry::SetTo(const BDirectory* dir, const char* path, bool traverse) argument 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 F 410 MoveTo(BDirectory* dir, const char* path, bool clobber) argument [all...] |
H A D | File.cpp | 75 BFile::BFile(const BDirectory *dir, const char* path, uint32 openMode) argument 79 SetTo(dir, path, openMode); 179 BFile::SetTo(const BDirectory* dir, const char* path, uint32 openMode) argument 183 if (!dir) 188 int fd = _kern_open(dir->fDirFd, path, openMode, DEFFILEMODE & ~__gUmask);
|
/haiku/src/preferences/printers/ |
H A D | PrinterListView.cpp | 68 BDirectory dir(path.Path()); 69 if (dir.InitCheck() != B_OK) 73 while(dir.GetNextEntry(&entry) == B_OK) { 95 BDirectory dir(path.Path()); 96 if (dir.InitCheck() != B_OK) { 100 dir.SetTo(path.Path()); 103 fFolder = new FolderWatcher(Window(), dir, true); 319 BDirectory dir(path.Path()); 320 if (dir.InitCheck() == B_OK) { 321 fFolder = new SpoolFolder(window, this, dir); [all...] |
/haiku/src/tests/add-ons/kernel/network/ |
H A D | userland_modules.cpp | 265 BDirectory * dir; local 271 dir = (BDirectory *) mlc->dir_stack->LastItem(); 272 if (!dir) { 292 dir = new BDirectory(path.Path()); 293 if (dir) 294 mlc->dir_stack->AddItem(dir); 298 if (dir) { 299 while (dir->GetNextEntry(&entry) == B_OK) { 331 status = mlc->dir_stack->RemoveItem(dir); 332 delete dir; 350 BDirectory * dir; local [all...] |
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/beos/ |
H A D | BeOSKernelVolume.cpp | 139 BeOSKernelVolume::Lookup(void* dir, const char* entryName, ino_t* vnid) argument 143 return fFSOps->walk(fVolumeCookie, dir, entryName, NULL, vnid); 292 BeOSKernelVolume::CreateSymlink(void* dir, const char* name, argument 298 return fFSOps->symlink(fVolumeCookie, dir, name, target); 303 BeOSKernelVolume::Link(void* dir, const char* name, void* node) argument 307 return fFSOps->link(fVolumeCookie, dir, name, node); 312 BeOSKernelVolume::Unlink(void* dir, const char* name) argument 316 return fFSOps->unlink(fVolumeCookie, dir, name); 369 BeOSKernelVolume::Create(void* dir, const char* name, int openMode, int mode, argument 374 return fFSOps->create(fVolumeCookie, dir, nam 434 CreateDir(void* dir, const char* name, int mode) argument 444 RemoveDir(void* dir, const char* name) argument [all...] |
H A D | fs_interface.h | 93 typedef int beos_op_create(void *ns, void *dir, const char *name, 95 typedef int beos_op_mkdir(void *ns, void *dir, const char *name, int perms); 96 typedef int beos_op_symlink(void *ns, void *dir, const char *name, 98 typedef int beos_op_link(void *ns, void *dir, const char *name, void *node); 102 typedef int beos_op_unlink(void *ns, void *dir, const char *name); 103 typedef int beos_op_rmdir(void *ns, void *dir, const char *name);
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/ |
H A D | Volume.h | 45 virtual status_t Lookup(void* dir, const char* entryName, 86 virtual status_t CreateSymlink(void* dir, const char* name, 89 virtual status_t Link(void* dir, const char* name, 91 virtual status_t Unlink(void* dir, const char* name); 101 virtual status_t Create(void* dir, const char* name, 116 virtual status_t CreateDir(void* dir, const char* name, 118 virtual status_t RemoveDir(void* dir, const char* name);
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/haiku/ |
H A D | HaikuKernelVolume.h | 56 virtual status_t Lookup(void* dir, const char* entryName, 93 virtual status_t CreateSymlink(void* dir, const char* name, 96 virtual status_t Link(void* dir, const char* name, 98 virtual status_t Unlink(void* dir, const char* name); 108 virtual status_t Create(void* dir, const char* name, 123 virtual status_t CreateDir(void* dir, const char* name, 125 virtual status_t RemoveDir(void* dir, const char* name);
|
/haiku/src/add-ons/kernel/file_systems/netfs/client/ |
H A D | Volume.cpp | 286 Volume::Create(Node* dir, const char* name, int openMode, int mode, argument 350 Volume::Link(Node* dir, const char* name, Node* node) argument 357 Volume::Unlink(Node* dir, const char* name) argument 364 Volume::Symlink(Node* dir, const char* name, const char* target) argument 391 Volume::MkDir(Node* dir, const char* name, int mode) argument 398 Volume::RmDir(Node* dir, const char* name) argument 441 Volume::Walk(Node* dir, const char* entryName, char** resolvedPath, argument
|
H A D | ShareVolume.h | 75 virtual status_t Create(Node* dir, const char* name, 90 virtual status_t Link(Node* dir, const char* name, 92 virtual status_t Unlink(Node* dir, const char* name); 93 virtual status_t Symlink(Node* dir, const char* name, 101 virtual status_t MkDir(Node* dir, const char* name, 103 virtual status_t RmDir(Node* dir, const char* name); 111 virtual status_t Walk(Node* dir, const char* entryName,
|
/haiku/src/apps/packageinstaller/ |
H A D | UninstallView.cpp | 116 BDirectory dir(fToPackages.Path()); 117 if (dir.InitCheck() != B_OK) { 123 if (dir.SetTo(path.Path()) != B_OK) 128 dir.GetNodeRef(&ref); 168 // the packages/ dir to appear 349 BDirectory dir(fToPackages.Path()); 350 status_t ret = dir.InitCheck(); 355 while (dir.GetNextEntry(&iter) == B_OK) {
|
/haiku/src/bin/fwcontrol/ |
H A D | fwcrom.c | 88 #define CROM_END(cc) ((vm_offset_t)(cc)->stack[0].dir + MAX_ROM - 1) 109 cc->stack[0].dir = (struct csrdirectory *)p; 119 return (&ptr->dir->entry[ptr->index]); 139 ptr->dir = (struct csrdirectory *) (reg + reg->val); 147 if (ptr->index < ptr->dir->crc_len && 151 if (ptr->index < ptr->dir->crc_len) 319 struct csrdirectory *dir; local 341 dir = (struct csrdirectory *) (reg + reg->val); 342 crc = crom_crc((uint32_t *)&dir->entry[0], dir [all...] |
/haiku/src/tests/kits/storage/ |
H A D | EntryTest.cpp | 134 static string get_shortest_relative_path(TestEntry *dir, TestEntry *entry); 397 BDirectory dir("/boot/home/Desktop"); 398 CPPUNIT_ASSERT( dir.InitCheck() == B_OK ); 399 BEntry entry(&dir, testEntry->cpath, traverse); 414 BDirectory dir(testEntry->super->cpath); 415 CPPUNIT_ASSERT( dir.InitCheck() == B_OK ); 416 BEntry entry(&dir, testEntry->cname, traverse); 431 BDirectory dir(testEntry->super->super->cpath); 432 CPPUNIT_ASSERT( dir.InitCheck() == B_OK ); 433 BEntry entry(&dir, entryNam 1419 BDirectory dir; local 1535 BDirectory dir; local 1640 BDirectory dir; local 1779 BDirectory dir; local 2130 get_entry_ref_for_entry(const char *dir, const char *leaf, entry_ref *ref) argument [all...] |
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/ |
H A D | FUSEVolume.cpp | 933 FUSENode* dir = (FUSENode*)_dir; local 936 NodeReadLocker nodeLocker(this, dir, false); 942 status_t error = _GetNode(dir, entryName, &node); 1233 FUSENode* dir = (FUSENode*)_dir; local 1235 "%#x)\n", dir, dir->id, name, target, mode)); 1238 NodeWriteLocker nodeLocker(this, dir, false); 1244 fuseError = fuse_ll_symlink(fOps, target, dir->id, name); 1251 status_t error = _BuildPath(dir, name, path, pathLen); 1266 // mark the dir dirt 1285 FUSENode* dir = (FUSENode*)_dir; local 1340 FUSENode* dir = (FUSENode*)_dir; local 1636 FUSENode* dir = (FUSENode*)_dir; local 2016 FUSENode* dir = (FUSENode*)_dir; local 2064 FUSENode* dir = (FUSENode*)_dir; local 2629 _GetNodeID(FUSENode* dir, const char* entryName, ino_t* _nodeID) argument 2655 _GetNode(FUSENode* dir, const char* entryName, FUSENode** _node) argument 2701 _InternalGetNode(FUSENode* dir, const char* entryName, FUSENode** _node, AutoLocker<Locker>& locker) argument 2851 _RemoveEntry(FUSENode* dir, const char* name) argument 3255 _BuildPath(FUSENode* dir, const char* entryName, char* path, size_t& pathLen) argument [all...] |
/haiku/src/add-ons/media/media-add-ons/firewire_dv/ |
H A D | FireWireDVAddOn.cpp | 128 BDirectory dir(path); 129 if (dir.InitCheck() != B_OK) 134 while (dir.GetNextEntry(&ent) == B_OK) {
|
/haiku/src/add-ons/media/media-add-ons/vst_host/ |
H A D | VSTAddOn.cpp | 104 BDirectory dir(path); 105 if (dir.InitCheck() != B_OK) { 111 while(dir.GetNextEntry(&ent) == B_OK) {
|
/haiku/headers/private/userlandfs/legacy/ |
H A D | fsproto.h | 79 typedef int op_create(void *ns, void *dir, const char *name, 81 typedef int op_mkdir(void *ns, void *dir, const char *name, int perms); 82 typedef int op_symlink(void *ns, void *dir, const char *name, 84 typedef int op_link(void *ns, void *dir, const char *name, void *node); 88 typedef int op_unlink(void *ns, void *dir, const char *name); 89 typedef int op_rmdir(void *ns, void *dir, const char *name);
|
/haiku/headers/os/storage/ |
H A D | Node.h | 39 BNode(const BDirectory* dir, const char* path); 50 status_t SetTo(const BDirectory* dir, const char* path);
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/ |
H A D | Volume.h | 95 status_t Lookup(void* dir, const char* entryName, 125 status_t CreateSymlink(void* dir, const char* name, 128 status_t Link(void* dir, const char* name, 130 status_t Unlink(void* dir, const char* name); 140 status_t Create(void* dir, const char* name, 155 status_t CreateDir(void* dir, const char* name, 157 status_t RemoveDir(void* dir, const char* name); 248 status_t _Lookup(void* dir, const char* entryName,
|