/external/e2fsprogs/contrib/ |
D | spd_readdir.c | 66 char *d_name; member 157 free(dirstruct->dp[i].d_name); in free_cached_dir() 173 if (ds_a->d_name[0] == '.') { in ino_cmp() 174 if (ds_a->d_name[1] == 0) in ino_cmp() 176 else if ((ds_a->d_name[1] == '.') && (ds_a->d_name[2] == 0)) in ino_cmp() 179 if (ds_b->d_name[0] == '.') { in ino_cmp() 180 if (ds_b->d_name[1] == 0) in ino_cmp() 182 else if ((ds_b->d_name[1] == '.') && (ds_b->d_name[2] == 0)) in ino_cmp() 224 if ((ds->d_name = malloc(strlen(d->d_name)+1)) == NULL) { in cache_dirstruct() 228 strcpy(ds->d_name, d->d_name); in cache_dirstruct() [all …]
|
/external/compiler-rt/test/msan/ |
D | scandir.cc | 22 printf("%s\n", a->d_name); in my_filter() 25 printf("%s\n", a->d_name); in my_filter() 26 return strlen(a->d_name) == 3 && a->d_name[2] == 'b'; in my_filter() 34 if ((*a)->d_name[1] == (*b)->d_name[1]) in my_compar() 36 return ((*a)->d_name[1] < (*b)->d_name[1]) ? 1 : -1; in my_compar() 53 assert(strcmp(d[0]->d_name, "bbb") == 0); in main() 54 assert(strcmp(d[1]->d_name, "aab") == 0); in main()
|
/external/libchrome/sandbox/linux/services/ |
D | proc_util.cc | 56 if (strcmp(e.d_name, ".") == 0 || strcmp(e.d_name, "..") == 0) { in CountOpenFds() 61 CHECK(base::StringToInt(e.d_name, &fd_num)); in CountOpenFds() 86 if (strcmp(e.d_name, ".") == 0 || strcmp(e.d_name, "..") == 0) { in HasOpenDirectory() 91 CHECK(base::StringToInt(e.d_name, &fd_num)); in HasOpenDirectory() 98 CHECK(fstatat(proc_self_fd, e.d_name, &s, 0) == 0); in HasOpenDirectory()
|
/external/iproute2/lib/ |
D | namespace.c | 31 if (strcmp(entry->d_name, ".") == 0) in bind_etc() 33 if (strcmp(entry->d_name, "..") == 0) in bind_etc() 35 snprintf(netns_name, sizeof(netns_name), "%s/%s", etc_netns_path, entry->d_name); in bind_etc() 36 snprintf(etc_name, sizeof(etc_name), "/etc/%s", entry->d_name); in bind_etc() 116 if (strcmp(entry->d_name, ".") == 0) in netns_foreach() 118 if (strcmp(entry->d_name, "..") == 0) in netns_foreach() 120 if (func(entry->d_name, arg)) in netns_foreach()
|
/external/autotest/client/profilers/powertop/src/ |
D | usb.c | 47 if (dirent->d_name[0]=='.') in activate_usb_autosuspend() 49 sprintf(filename, "/sys/bus/usb/devices/%s/power/autosuspend", dirent->d_name); in activate_usb_autosuspend() 55 sprintf(filename, "/sys/bus/usb/devices/%s/power/level", dirent->d_name); in activate_usb_autosuspend() 81 if (dirent->d_name[0]=='.') in suggest_usb_autosuspend() 83 sprintf(filename, "/sys/bus/usb/devices/%s/power/autosuspend", dirent->d_name); in suggest_usb_autosuspend() 98 sprintf(filename, "/sys/bus/usb/devices/%s/power/level", dirent->d_name); in suggest_usb_autosuspend()
|
D | intelcstates.c | 94 if (strlen(entry->d_name) < 3) in print_intel_cstates() 97 if (!isdigit(entry->d_name[3])) in print_intel_cstates() 101 entry->d_name); in print_intel_cstates() 110 if (strlen(entry->d_name) < 3) in print_intel_cstates() 112 sprintf(filename + len, "/%s/desc", entry->d_name); in print_intel_cstates()
|
D | sata.c | 49 if (dirent->d_name[0]=='.') in activate_alpm() 51 sprintf(filename, "/sys/class/scsi_host/%s/link_power_management_policy", dirent->d_name); in activate_alpm() 81 if (dirent->d_name[0]=='.') in suggest_sata_alpm() 83 sprintf(filename, "/sys/class/scsi_host/%s/link_power_management_policy", dirent->d_name); in suggest_sata_alpm()
|
D | cpufreq.c | 50 if (dirent->d_name[0]=='.') in activate_ondemand() 52 sprintf(filename, "/sys/devices/system/cpu/%s/cpufreq/scaling_governor", dirent->d_name); in activate_ondemand() 83 if (dirent->d_name[0]=='.') in suggest_ondemand_governor() 85 sprintf(filename, "/sys/devices/system/cpu/%s/cpufreq/scaling_governor", dirent->d_name); in suggest_ondemand_governor()
|
D | powertop.c | 282 if (strlen(entry->d_name) < 3) in read_data_acpi() 284 sprintf(line, "/proc/acpi/processor/%s/power", entry->d_name); in read_data_acpi() 335 if (strlen(entry->d_name) < 3) in read_data_cpuidle() 338 if (!isdigit(entry->d_name[3])) in read_data_cpuidle() 342 entry->d_name); in read_data_cpuidle() 353 if (strlen(entry->d_name) < 3) in read_data_cpuidle() 355 sprintf(filename + len, "/%s/desc", entry->d_name); in read_data_cpuidle() 386 sprintf(filename + len, "/%s/usage", entry->d_name); in read_data_cpuidle() 399 sprintf(filename + len, "/%s/time", entry->d_name); in read_data_cpuidle() 508 if (strlen(dirent->d_name) < 3) in print_battery_proc_acpi() [all …]
|
/external/opencv3/modules/core/src/ |
D | glob.cpp | 54 const char* d_name; member 70 if (ent.d_name) in ~DIR() 71 delete[] ent.d_name; in ~DIR() 79 dir->ent.d_name = 0; in opendir() 103 if (dir->ent.d_name != 0) in readdir() 113 dir->ent.d_name = aname; in readdir() 115 if (dir->ent.d_name != 0) in readdir() 120 dir->ent.d_name = dir->data.cFileName; in readdir() 232 const char* name = ent->d_name; in glob_rec()
|
/external/iproute2/ip/ |
D | ipnetns.c | 219 if (strcmp(entry->d_name, ".") == 0) in netns_map_init() 221 if (strcmp(entry->d_name, "..") == 0) in netns_map_init() 223 nsid = get_netnsid_from_name(entry->d_name); in netns_map_init() 226 netns_map_add(nsid, entry->d_name); in netns_map_init() 243 if (strcmp(entry->d_name, ".") == 0) in netns_get_name() 245 if (strcmp(entry->d_name, "..") == 0) in netns_get_name() 247 id = get_netnsid_from_name(entry->d_name); in netns_get_name() 250 strcpy(name, entry->d_name); in netns_get_name() 339 if (strcmp(entry->d_name, ".") == 0) in netns_list() 341 if (strcmp(entry->d_name, "..") == 0) in netns_list() [all …]
|
D | iptuntap.c | 286 if (d->d_name[0] == '.' && in do_show() 287 (d->d_name[1] == 0 || d->d_name[1] == '.')) in do_show() 290 if (read_prop(d->d_name, "tun_flags", &flags)) in do_show() 293 read_prop(d->d_name, "owner", &owner); in do_show() 294 read_prop(d->d_name, "group", &group); in do_show() 296 printf("%s:", d->d_name); in do_show()
|
/external/e2fsprogs/misc/ |
D | lsattr.c | 134 path = malloc(dir_len + strlen (de->d_name) + 2); in lsattr_dir_proc() 137 sprintf (path, "%s%s", dir_name, de->d_name); in lsattr_dir_proc() 139 sprintf (path, "%s/%s", dir_name, de->d_name); in lsattr_dir_proc() 143 if (de->d_name[0] != '.' || all) { in lsattr_dir_proc() 146 strcmp(de->d_name, ".") && in lsattr_dir_proc() 147 strcmp(de->d_name, "..")) { in lsattr_dir_proc()
|
/external/strace/tests/ |
D | readdir.c | 71 char d_name[1024]; in main() member 86 e.d_name[e.d_reclen] = '\0'; in main() 90 e.d_name[0] == '.' ? e.d_name : qname, rc); in main()
|
D | getdents64.c | 69 char d_name[256]; member 89 const unsigned int d_name_offset = offsetof(kernel_dirent64, d_name); in print_dirent() 97 if (d->d_name[0] == '.') in print_dirent() 98 printf("\"%.*s\"}", d_name_len, d->d_name); in print_dirent()
|
/external/e2fsprogs/lib/ext2fs/ |
D | finddev.c | 92 if (dirlen + strlen(dp->d_name) + 2 >= sizeof(path)) in scan_dir() 94 if (dp->d_name[0] == '.' && in scan_dir() 95 ((dp->d_name[1] == 0) || in scan_dir() 96 ((dp->d_name[1] == '.') && (dp->d_name[2] == 0)))) in scan_dir() 98 sprintf(path, "%s/%s", dirname, dp->d_name); in scan_dir()
|
/external/e2fsprogs/lib/blkid/ |
D | devno.c | 106 if (dirlen + strlen(dp->d_name) >= sizeof(path)) in blkid__scan_dir() 109 if (dp->d_name[0] == '.' && in blkid__scan_dir() 110 ((dp->d_name[1] == 0) || in blkid__scan_dir() 111 ((dp->d_name[1] == '.') && (dp->d_name[2] == 0)))) in blkid__scan_dir() 114 sprintf(path, "%s/%s", dirname, dp->d_name); in blkid__scan_dir()
|
D | devname.c | 133 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..") || in is_dm_leaf() 134 !strcmp(de->d_name, devname) || in is_dm_leaf() 135 strncmp(de->d_name, "dm-", 3) || in is_dm_leaf() 136 strlen(de->d_name) > sizeof(path)-32) in is_dm_leaf() 138 sprintf(path, "/sys/block/%s/slaves", de->d_name); in is_dm_leaf() 142 if (!strcmp(d_de->d_name, devname)) { in is_dm_leaf() 318 vg_name = vg_iter->d_name; in lvm_probe_all() 334 lv_name = lv_iter->d_name; in lvm_probe_all()
|
/external/vulkan-validation-layers/loader/ |
D | dirent_on_windows.c | 46 dir->result.d_name = 0; in opendir() 90 if (!dir->result.d_name || _findnext(dir->handle, &dir->info) != -1) { in readdir() 92 result->d_name = dir->info.name; in readdir() 105 dir->result.d_name = 0; in rewinddir()
|
/external/libedit/src/ |
D | filecomplete.c | 225 if (entry->d_name[0] == '.' && (!entry->d_name[1] in fn_filename_completion_function() 226 || (entry->d_name[1] == '.' && !entry->d_name[2]))) in fn_filename_completion_function() 232 if (entry->d_name[0] == filename[0] in fn_filename_completion_function() 234 && strlen(entry->d_name) >= filename_len in fn_filename_completion_function() 235 && strncmp(entry->d_name, filename, in fn_filename_completion_function() 243 len = strlen(entry->d_name); in fn_filename_completion_function() 249 (void)snprintf(temp, len, "%s%s", dirname, entry->d_name); in fn_filename_completion_function()
|
/external/webrtc/webrtc/base/ |
D | linuxfdwalk.c | 48 if (strcmp(ent->d_name, ".") == 0 || in fdwalk() 49 strcmp(ent->d_name, "..") == 0) { in fdwalk() 55 int fd = parse_fd(ent->d_name); in fdwalk()
|
/external/libselinux/src/ |
D | booleans.c | 29 if (d->d_name[0] == '.' in filename_select() 30 && (d->d_name[1] == '\0' in filename_select() 31 || (d->d_name[1] == '.' && d->d_name[2] == '\0'))) in filename_select() 62 n[i] = strdup(namelist[i]->d_name); in security_get_boolean_names()
|
/external/rootdev/ |
D | rootdev.c | 133 entry = malloc(offsetof(struct dirent, d_name) + working_path_size); in match_sysfs_device() 142 size_t candidate_len = strlen(entry->d_name); in match_sysfs_device() 146 if (!strcmp(entry->d_name, ".") || !strcmp(entry->d_name, "..")) in match_sysfs_device() 162 basedir, entry->d_name); in match_sysfs_device() 170 snprintf(name, name_len, "%s", entry->d_name); in match_sysfs_device() 182 sprintf(working_path, "%s/%s", basedir, entry->d_name); in match_sysfs_device()
|
/external/fio/lib/ |
D | linux-dev-lookup.c | 25 if (!strcmp(dir->d_name, ".") || !strcmp(dir->d_name, "..")) in blktrace_lookup_device() 28 sprintf(full_path, "%s%s%s", path, FIO_OS_PATH_SEPARATOR, dir->d_name); in blktrace_lookup_device()
|
/external/google-breakpad/src/common/tests/ |
D | auto_tempdir.h | 77 if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) in DeleteRecursively() 79 string entry_path = path + "/" + entry->d_name; in DeleteRecursively()
|