/haiku-fatelf/src/bin/package/ |
H A D | PackageWritingUtils.cpp | 34 if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) 39 && strcmp(entry->d_name, B_HPKG_PACKAGE_INFO_FILE_NAME) == 0) { 43 status_t error = packageWriter.AddEntry(entry->d_name);
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/BeManager/ |
H A D | Explorer.cpp | 77 if (strcmp(dirInfo->d_name, ".") && strcmp(dirInfo->d_name, "..")) 79 sprintf(qualifiedFile, "%s/%s", path, dirInfo->d_name); 83 BAlert *alert = new BAlert("hello", dirInfo->d_name, "OK"); 85 parentTreeView->AddItem(new ExplorerFolder(OutlineLevel() + 1, true, false, ICON_HOST_SMALL, headerView, parentTreeView, listView, dirInfo->d_name)); 117 if (strcmp(dirInfo->d_name, ".") && strcmp(dirInfo->d_name, "..")) 119 sprintf(qualifiedFile, "%s/%s", path, dirInfo->d_name); 122 listView->AddItem(new ExplorerFile(headerView, dirInfo->d_name, "", ""));
|
/haiku-fatelf/src/add-ons/kernel/file_systems/netfs/client/ |
H A D | VolumeSupport.h | 16 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; 18 memcpy(buffer->d_name, name, nameLen); 19 buffer->d_name[nameLen] = '\0';
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/netfs/client/ |
H A D | VolumeSupport.h | 16 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; 18 memcpy(buffer->d_name, name, nameLen); 19 buffer->d_name[nameLen] = '\0';
|
/haiku-fatelf/src/bin/ |
H A D | mkindex.cpp | 51 if (!strcmp(dirent->d_name, "name") 52 || !strcmp(dirent->d_name, "size") 53 || !strcmp(dirent->d_name, "last_modified")) 57 if (fs_stat_index(from, dirent->d_name, &info) != 0) { 59 kProgramName, dirent->d_name, strerror(errno)); 63 if (fs_create_index(to, dirent->d_name, info.type, 0) != 0) { 69 kProgramName, dirent->d_name, strerror(errno)); 71 printf("\t%s\n", dirent->d_name);
|
H A D | lsindex.cpp | 207 if (fs_stat_index(device, index->d_name, &info) != B_OK) { 213 print_index_verbose_stat(info, index->d_name); 215 print_index_long_stat(info, index->d_name); 217 printf("mkindex -t %s '%s'\n", print_index_type(info, true), index->d_name); 219 printf("%s\n", index->d_name);
|
H A D | diff_zip.cpp | 158 if (strcmp(entry->d_name, ".") == 0 159 || strcmp(entry->d_name, "..") == 0) { 163 string entryPath = path + '/' + entry->d_name; 172 Node* node = create_node(this, entry->d_name, st); 173 fEntries[entry->d_name] = node; 223 if (strcmp(entry->d_name, ".") == 0 224 || strcmp(entry->d_name, "..") == 0) { 228 EntryMap::const_iterator it = fEntries.find(entry->d_name); 231 string entryPath = path + "/" + entry->d_name;
|
H A D | fortune.c | 34 if (dirent->d_name[0] == '.') 50 if (dirent->d_name[0] == '.') 60 strlcat(name, dirent->d_name, sizeof(name));
|
/haiku-fatelf/src/bin/gdb/gdb/ |
H A D | gdb_dirent.h | 27 # define NAMELEN(dirent) strlen ((dirent)->d_name) /* OK: strlen d_name */
|
/haiku-fatelf/src/tests/system/libroot/posix/ |
H A D | dirent_test.cpp | 22 dirent->d_ino, dirent->d_name);
|
/haiku-fatelf/src/bin/diffutils/src/ |
H A D | dir.c | 92 char *d_name = next->d_name; local 96 if (d_name[0] == '.' 97 && (d_name[1] == 0 || (d_name[1] == '.' && d_name[2] == 0))) 100 if (excluded_filename (excluded, d_name)) 110 memcpy (data + data_used, d_name, d_size);
|
/haiku-fatelf/src/bin/gdb/readline/ |
H A D | posixdir.h | 28 # define D_NAMLEN(d) (strlen ((d)->d_name))
|
/haiku-fatelf/src/add-ons/kernel/file_systems/packagefs/ |
H A D | Utils.h | 33 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; 37 memcpy(buffer->d_name, name, nameLen); 38 buffer->d_name[nameLen] = '\0';
|
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | unix_io.c | 124 if (stat(dev->d_name, &sbuf)) { 125 ntfs_log_perror("Failed to access '%s'", dev->d_name); 140 *(int*)dev->d_private = open(dev->d_name, flags); 159 "read" : "write", dev->d_name); 161 ntfs_log_perror("Failed to close '%s'", dev->d_name); 188 ntfs_log_perror("Device %s is not open", dev->d_name); 193 ntfs_log_perror("Failed to fsync device %s", dev->d_name); 202 ntfs_log_perror("Could not unlock %s", dev->d_name); 204 ntfs_log_perror("Failed to close device %s", dev->d_name); 320 ntfs_log_perror("Failed to sync device %s", dev->d_name); [all...] |
/haiku-fatelf/headers/private/fs_shell/ |
H A D | fssh_dirent.h | 17 char d_name[1]; /* name of the entry (null byte terminated) */ member in struct:fssh_dirent
|
/haiku-fatelf/src/bin/bash/include/ |
H A D | posixdir.h | 31 # define D_NAMLEN(d) (strlen ((d)->d_name))
|
/haiku-fatelf/src/bin/bash/lib/glob/ |
H A D | ndir.h | 33 unsigned short d_namlen; /* Length of string in d_name. */ 34 char d_name[MAXNAMLEN + 1]; /* Name of file. */ member in struct:direct
|
/haiku-fatelf/src/bin/bash/lib/readline/ |
H A D | posixdir.h | 31 # define D_NAMLEN(d) (strlen ((d)->d_name))
|
/haiku-fatelf/src/libs/print/libgutenprint/src/main/ |
H A D | path.c | 50 return strcoll ((*(const struct dirent * const *) a)->d_name, 51 (*(const struct dirent * const *) b)->d_name); 92 module_dir[idx]->d_name); 120 filename = stpi_path_merge(path_check_path, module->d_name); 235 _D_EXACT_NAMLEN (DP) returns the length of DP->d_name, not including 239 that is, the allocation size needed to hold the DP->d_name string. 253 # define _D_EXACT_NAMLEN(d) (strlen ((d)->d_name)) 257 # define _D_ALLOC_NAMLEN(d) (((char *) (d) + (d)->d_reclen) - &(d)->d_name[0]) 259 # define _D_ALLOC_NAMLEN(d) (sizeof (d)->d_name > 1 ? sizeof (d)->d_name [all...] |
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | getcwd.c | 44 # define _D_EXACT_NAMLEN(d) strlen ((d)->d_name) 272 if (d->d_name[0] == '.' && 273 (d->d_name[1] == '\0' || 274 (d->d_name[1] == '.' && d->d_name[2] == '\0'))) 287 entry_status = fstatat (fd, d->d_name, &st, AT_SYMLINK_NOFOLLOW); 323 memcpy (dotlist + dotlen, d->d_name, _D_ALLOC_NAMLEN (d)); 366 memcpy (dirp, d->d_name, namlen);
|
H A D | savedir.c | 31 # define _D_EXACT_NAMLEN(dp) strlen ((dp)->d_name) 75 entry = dp->d_name;
|
/haiku-fatelf/src/bin/findutils/gnulib/lib/ |
H A D | getcwd.c | 38 # define _D_EXACT_NAMLEN(d) strlen ((d)->d_name) 276 if (d->d_name[0] == '.' && 277 (d->d_name[1] == '\0' || 278 (d->d_name[1] == '.' && d->d_name[2] == '\0'))) 291 entry_status = fstatat (fd, d->d_name, &st, AT_SYMLINK_NOFOLLOW); 327 memcpy (dotlist + dotlen, d->d_name, _D_ALLOC_NAMLEN (d)); 370 memcpy (dirp, d->d_name, namlen);
|
H A D | savedir.c | 31 # define _D_EXACT_NAMLEN(dp) strlen ((dp)->d_name) 81 entry = dp->d_name;
|
/haiku-fatelf/src/bin/bash/lib/sh/ |
H A D | getcwd.c | 199 if (d->d_name[0] == '.' && 200 (d->d_name[1] == '\0' || 201 (d->d_name[1] == '.' && d->d_name[2] == '\0'))) 206 if (mount_point || _path_checkino (dotp, d->d_name, thisino)) 217 d->d_name, namlen + 1); 272 (void) memcpy (pathp, d->d_name, namlen);
|
H A D | mailstat.c | 133 if (fn->d_name[0] == '.' || strlen(fn->d_name) + l >= sizeof(file)) 135 strcpy(file + l, fn->d_name);
|