Home
last modified time | relevance | path

Searched refs:d_name (Results 1 – 25 of 117) sorted by relevance

12345

/haiku/src/bin/
H A Dmkindex.cpp51 if (!strcmp(dirent->d_name, "name") in copy_indexes()
52 || !strcmp(dirent->d_name, "size") in copy_indexes()
53 || !strcmp(dirent->d_name, "last_modified")) in copy_indexes()
57 if (fs_stat_index(from, dirent->d_name, &info) != 0) { in copy_indexes()
59 kProgramName, dirent->d_name, strerror(errno)); in copy_indexes()
63 if (fs_create_index(to, dirent->d_name, info.type, 0) != 0) { in copy_indexes()
69 kProgramName, dirent->d_name, strerror(errno)); in copy_indexes()
71 printf("\t%s\n", dirent->d_name); in copy_indexes()
H A Ddiff_zip.cpp158 if (strcmp(entry->d_name, ".") == 0 in Scan()
159 || strcmp(entry->d_name, "..") == 0) { in Scan()
163 string entryPath = path + '/' + entry->d_name; in Scan()
172 Node* node = create_node(this, entry->d_name, st); in Scan()
173 fEntries[entry->d_name] = node; in Scan()
223 if (strcmp(entry->d_name, ".") == 0 in CollectDiffEntries()
224 || strcmp(entry->d_name, "..") == 0) { in CollectDiffEntries()
228 EntryMap::const_iterator it = fEntries.find(entry->d_name); in CollectDiffEntries()
231 string entryPath = path + "/" + entry->d_name; in CollectDiffEntries()
H A Dlsindex.cpp224 if (fs_stat_index(device, index->d_name, &info) != B_OK) { in main()
231 print_index_verbose_stat(info, index->d_name); in main()
233 print_index_long_stat(info, index->d_name); in main()
237 index->d_name); in main()
240 printf("%s\n", index->d_name); in main()
H A Dfortune.c34 if (dirent->d_name[0] == '.') in choose_file()
51 if (dirent->d_name[0] == '.') in choose_file()
61 strlcat(name, dirent->d_name, sizeof(name)); in choose_file()
H A Dreindex.cpp289 if (fs_stat_index(sourceDevice, index->d_name, &indexInfo) != B_OK) { in copyIndicesFromVolume()
291 "\"%s\": %s\n", kProgramName, index->d_name, strerror(errno)); in copyIndicesFromVolume()
295 if (fs_create_index(targetDevice, index->d_name, indexInfo.type, 0) in copyIndicesFromVolume()
298 "): %s\n", index->d_name, indexInfo.type, strerror(errno)); in copyIndicesFromVolume()
300 gAttrList.AddItem(strdup(index->d_name)); in copyIndicesFromVolume()
/haiku/src/bin/package/
H A DPackageWritingUtils.cpp34 if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) in add_current_directory_entries()
39 && strcmp(entry->d_name, in add_current_directory_entries()
44 status_t error = packageWriter.AddEntry(entry->d_name); in add_current_directory_entries()
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dunix_io.c127 if (stat(dev->d_name, &sbuf)) { in ntfs_device_unix_io_open()
128 ntfs_log_perror("Failed to access '%s'", dev->d_name); in ntfs_device_unix_io_open()
143 *(int*)dev->d_private = open(dev->d_name, flags); in ntfs_device_unix_io_open()
180 "read" : "write", dev->d_name); in ntfs_device_unix_io_open()
182 ntfs_log_perror("Failed to close '%s'", dev->d_name); in ntfs_device_unix_io_open()
209 ntfs_log_perror("Device %s is not open", dev->d_name); in ntfs_device_unix_io_close()
214 ntfs_log_perror("Failed to fsync device %s", dev->d_name); in ntfs_device_unix_io_close()
223 ntfs_log_perror("Could not unlock %s", dev->d_name); in ntfs_device_unix_io_close()
225 ntfs_log_perror("Failed to close device %s", dev->d_name); in ntfs_device_unix_io_close()
341 ntfs_log_perror("Failed to sync device %s", dev->d_name); in ntfs_device_unix_io_sync()
H A Ddevice.c129 if (!(dev->d_name = strdup(name))) { in ntfs_device_alloc()
165 free(dev->d_name); in ntfs_device_free()
688 const int d_name_len = strlen(dev->d_name) + 1; in ntfs_device_get_geo()
708 if (hd->unix_dev_name && !strncmp(dev->d_name, in ntfs_device_get_geo()
711 if (hd->unix_dev_name2 && !strncmp(dev->d_name, in ntfs_device_get_geo()
716 if (names->str && !strncmp(dev->d_name, in ntfs_device_get_geo()
728 if (hd->unix_dev_name && !strncmp(dev->d_name, in ntfs_device_get_geo()
731 if (hd->unix_dev_name2 && !strncmp(dev->d_name, in ntfs_device_get_geo()
736 if (names->str && !strncmp(dev->d_name, in ntfs_device_get_geo()
/haiku/src/build/libbe/storage/
H A DMergedDirectory.cpp123 = entry.SetTo(fDirectories.ItemAt(fDirectoryIndex), dirEntry->d_name); in GetNextRef()
148 if (strcmp(direntBuffer->d_name, ".") == 0 in GetNextDirents()
149 || strcmp(direntBuffer->d_name, "..") == 0) { in GetNextDirents()
160 && fVisitedEntries->find(direntBuffer->d_name) in GetNextDirents()
167 fVisitedEntries->insert(direntBuffer->d_name); in GetNextDirents()
174 || _IsBestEntry(direntBuffer->d_name)) { in GetNextDirents()
178 fVisitedEntries->erase(direntBuffer->d_name); in GetNextDirents()
205 char buffer[offsetof(struct dirent, d_name) + B_FILE_NAME_LENGTH]; in CountEntries()
/haiku/src/tests/system/libroot/posix/
H A Ddirent_test.cpp25 dirent->d_ino, dirent->d_name); in main()
37 dirent->d_ino, dirent->d_name); in main()
55 dirent->d_ino, dirent->d_name); in main()
66 dirent->d_ino, dirent->d_name); in main()
/haiku/src/add-ons/kernel/file_systems/netfs/client/
H A DVolumeSupport.h16 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; in set_dirent_name()
18 memcpy(buffer->d_name, name, nameLen); in set_dirent_name()
19 buffer->d_name[nameLen] = '\0'; in set_dirent_name()
/haiku/src/system/libroot/posix/musl/misc/
H A Dnftw.c92 if (de->d_name[0] == '.' in do_nftw()
93 && (!de->d_name[1] in do_nftw()
94 || (de->d_name[1]=='.' in do_nftw()
95 && !de->d_name[2]))) continue; in do_nftw()
96 if (strlen(de->d_name) >= PATH_MAX-l) { in do_nftw()
102 strcpy(path+j+1, de->d_name); in do_nftw()
/haiku/src/add-ons/kernel/file_systems/packagefs/util/
H A DUtils.h33 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; in set_dirent_name()
37 memcpy(buffer->d_name, name, nameLen); in set_dirent_name()
38 buffer->d_name[nameLen] = '\0'; in set_dirent_name()
/haiku/src/kits/storage/
H A DRemoveEngine.cpp87 char buffer[offsetof(struct dirent, d_name) + B_FILE_NAME_LENGTH]; in _RemoveEntry()
90 if (strcmp(entry->d_name, ".") == 0 in _RemoveEntry()
91 || strcmp(entry->d_name, "..") == 0) { in _RemoveEntry()
97 error = childPath.SetTo(path, entry->d_name); in _RemoveEntry()
101 "\"%s\": %s\n", path, entry->d_name, strerror(error)); in _RemoveEntry()
H A DMergedDirectory.cpp124 return ref->set_name(entry->d_name); in GetNextRef()
145 if (strcmp(direntBuffer->d_name, ".") == 0 in GetNextDirents()
146 || strcmp(direntBuffer->d_name, "..") == 0) { in GetNextDirents()
157 && fVisitedEntries->find(direntBuffer->d_name) in GetNextDirents()
164 fVisitedEntries->insert(direntBuffer->d_name); in GetNextDirents()
219 direntBuffer->d_name); in _FindBestEntry()
H A DCopyEngine.cpp294 char buffer[offsetof(struct dirent, d_name) + B_FILE_NAME_LENGTH]; in _CopyEntry()
297 if (strcmp(entry->d_name, ".") == 0 in _CopyEntry()
298 || strcmp(entry->d_name, "..") == 0) { in _CopyEntry()
304 error = sourceEntryPath.SetTo(sourcePath, entry->d_name); in _CopyEntry()
308 "\"%s\": %s\n", sourcePath, entry->d_name, strerror(error)); in _CopyEntry()
312 error = destEntryPath.SetTo(destPath, entry->d_name); in _CopyEntry()
316 "\"%s\": %s\n", destPath, entry->d_name, strerror(error)); in _CopyEntry()
/haiku/src/system/libroot/posix/musl/dirent/
H A Dalphasort.c6 return strcoll((*a)->d_name, (*b)->d_name); in alphasort()
/haiku/headers/private/fs_shell/
H A Dfssh_dirent.h18 char d_name[0]; /* name of the entry (null byte terminated) */ member
20 char d_name[]; /* name of the entry (null byte terminated) */ member
/haiku/src/tests/add-ons/kernel/file_systems/bfs/
H A Dbfs_attribute_iterator_test.cpp98 printf(" %ld. %s\n", index, entry->d_name); in test_remove_attributes()
107 if (is_marker(entry->d_name)) in test_remove_attributes()
110 int32 attributeIndex = attribute_index(entry->d_name); in test_remove_attributes()
150 printf(" %ld. %s\n", index, entry->d_name); in test_add_attributes()
159 if (is_marker(entry->d_name)) in test_add_attributes()
162 int32 attributeIndex = attribute_index(entry->d_name); in test_add_attributes()
/haiku/src/tools/
H A Drm_attrs.cpp103 if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) in remove_dir_contents()
106 if (!path.PushLeaf(entry->d_name)) { in remove_dir_contents()
108 "entry: \"%s\"\n", path.GetPath(), entry->d_name); in remove_dir_contents()
/haiku/headers/posix/
H A Ddirent.h19 char d_name[0]; /* name of the entry (null byte terminated) */ member
21 char d_name[]; /* name of the entry (null byte terminated) */ member
/haiku/src/tests/system/boot/loader/
H A Dplatform_devices.cpp73 if (dirent->d_name[0] == '.') in recursive_add_device()
79 strcat(nextPath, dirent->d_name); in recursive_add_device()
82 if (!strcmp(dirent->d_name, "raw") in recursive_add_device()
/haiku/src/bin/consoled/
H A Dconsoled.cpp246 if (!strcmp(entry->d_name, ".") || !strcmp(entry->d_name, "..")) in open_keyboards()
252 strlcat(path, entry->d_name, sizeof(path)); in open_keyboards()
313 if (entry->d_name[0] == '.') in start_console()
316 snprintf(name, sizeof(name), "/dev/pt/%s", entry->d_name); in start_console()
320 snprintf(name, sizeof(name), "/dev/tt/%s", entry->d_name); in start_console()
/haiku/src/tests/servers/app/newerClipping/drawing/
H A DAccelerantHWInterface.cpp158 if (!strcmp(entry->d_name, ".") || !strcmp(entry->d_name, "..") || in _OpenGraphicsDevice()
159 !strcmp(entry->d_name, "stub") || !strcmp(entry->d_name, "vesa")) in _OpenGraphicsDevice()
167 sprintf(path, "/dev/graphics/%s", entry->d_name); in _OpenGraphicsDevice()
184 fCardNameInDevFS = entry->d_name; in _OpenGraphicsDevice()
/haiku/src/add-ons/kernel/file_systems/fat/
H A Ddosfs.h66 #define _GENERIC_DIRLEN(namlen) ((offsetof(struct dirent, d_name) + (namlen) + 1 + 7) & ~7)
67 #define GENERIC_DIRSIZ(dp) _GENERIC_DIRLEN(strlen((dp)->d_name))

12345