Home
last modified time | relevance | path

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

12345678910

/external/compiler-rt/test/msan/
Dscandir.cc22 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/e2fsprogs/contrib/
Dspd_readdir.c66 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/libchrome/sandbox/linux/services/
Dproc_util.cc57 if (strcmp(e.d_name, ".") == 0 || strcmp(e.d_name, "..") == 0) { in CountOpenFds()
62 CHECK(base::StringToInt(e.d_name, &fd_num)); in CountOpenFds()
87 if (strcmp(e.d_name, ".") == 0 || strcmp(e.d_name, "..") == 0) { in HasOpenDirectory()
92 CHECK(base::StringToInt(e.d_name, &fd_num)); in HasOpenDirectory()
99 CHECK(fstatat(proc_self_fd, e.d_name, &s, 0) == 0); in HasOpenDirectory()
/external/iproute2/lib/
Dnamespace.c31 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/
Dusb.c47 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()
Dintelcstates.c94 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()
Dsata.c49 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()
Dcpufreq.c50 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()
/external/ltp/testcases/network/nfs/nfs_stress/
Dnfs01_open_files.c104 if (!strncmp(entp->d_name, "apt", 3)) { in delete_files()
105 if (stat(entp->d_name, &stat_buffer)) in delete_files()
107 entp->d_name, errno); in delete_files()
110 entp->d_name); in delete_files()
111 if (unlink(entp->d_name)) in delete_files()
113 entp->d_name); in delete_files()
/external/ltp/testcases/kernel/syscalls/getdents/
Dgetdents01.c104 const char *d_name; in main() local
138 d_name = dirp64->d_name; in main()
141 d_name = dirp->d_name; in main()
144 set_flag(d_name); in main()
146 tst_resm(TINFO, "Found '%s'", d_name); in main()
/external/iproute2/ip/
Dipnetns.c219 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 …]
/external/dtc/
Dfstree.c42 if (streq(de->d_name, ".") in read_fstree()
43 || streq(de->d_name, "..")) in read_fstree()
46 tmpname = join_path(dirname, de->d_name); in read_fstree()
61 prop = build_property(xstrdup(de->d_name), in read_fstree()
71 newchild = name_node(newchild, xstrdup(de->d_name)); in read_fstree()
/external/ltp/testcases/kernel/syscalls/futex/
Dfutex_utils.h39 if (atoi(dent->d_name) == getpid() || atoi(dent->d_name) == 0) in wait_for_threads()
43 getpid(), dent->d_name); in wait_for_threads()
48 tst_resm(TINFO, "Thread %s not sleeping yet", dent->d_name); in wait_for_threads()
/external/libese/third_party/NXPNFC_P61_JCOP_Kit/src/
DAlaLib.cpp187 if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, "..")) in ALA_GetlistofApplets()
190 ALOGE("%s/%s\n", dir, dp->d_name); in ALA_GetlistofApplets()
191 list[xx] = (char *)malloc(strlen(dp->d_name)+1); in ALA_GetlistofApplets()
194 memset((void *)list[xx],0, strlen(dp->d_name)+1); in ALA_GetlistofApplets()
195 memcpy(list[xx++], dp->d_name, strlen(dp->d_name)+1); in ALA_GetlistofApplets()
/external/strace/tests-m32/
Dreaddir.c69 char d_name[1024]; in main() member
82 e.d_name[e.d_reclen] = '\0'; in main()
86 e.d_name[0] == '.' ? e.d_name : qname, rc); in main()
/external/strace/tests/
Dreaddir.c69 char d_name[1024]; in main() member
82 e.d_name[e.d_reclen] = '\0'; in main()
86 e.d_name[0] == '.' ? e.d_name : qname, rc); in main()
/external/strace/tests-mx32/
Dreaddir.c69 char d_name[1024]; in main() member
82 e.d_name[e.d_reclen] = '\0'; in main()
86 e.d_name[0] == '.' ? e.d_name : qname, rc); in main()
Dgetdents64.c67 char d_name[256]; member
87 const unsigned int d_name_offset = offsetof(kernel_dirent64, d_name); in print_dirent()
95 if (d->d_name[0] == '.') in print_dirent()
96 printf("\"%.*s\"}", d_name_len, d->d_name); in print_dirent()
/external/mesa3d/src/gallium/auxiliary/hud/
Dhud_diskstat.c268 if (strlen(dp->d_name) <= 2) in hud_get_num_disks()
272 snprintf(basename, sizeof(basename), "/sys/block/%s", dp->d_name); in hud_get_num_disks()
281 add_object(basename, dp->d_name, DISKSTAT_RD); in hud_get_num_disks()
282 add_object(basename, dp->d_name, DISKSTAT_WR); in hud_get_num_disks()
295 if (strlen(dpart->d_name) <= 2) in hud_get_num_disks()
299 snprintf(p, sizeof(p), "%s/%s/stat", basename, dpart->d_name); in hud_get_num_disks()
307 add_object_part(basename, dpart->d_name, DISKSTAT_RD); in hud_get_num_disks()
308 add_object_part(basename, dpart->d_name, DISKSTAT_WR); in hud_get_num_disks()
Dhud_cpufreq.c211 if (strlen(dp->d_name) <= 2) in hud_get_num_cpufreq()
214 if (sscanf(dp->d_name, "cpu%d\n", &cpu_index) != 1) in hud_get_num_cpufreq()
218 snprintf(basename, sizeof(basename), "/sys/devices/system/cpu/%s", dp->d_name); in hud_get_num_cpufreq()
228 add_object(dp->d_name, fn, CPUFREQ_MINIMUM, cpu_index); in hud_get_num_cpufreq()
231 add_object(dp->d_name, fn, CPUFREQ_CURRENT, cpu_index); in hud_get_num_cpufreq()
234 add_object(dp->d_name, fn, CPUFREQ_MAXIMUM, cpu_index); in hud_get_num_cpufreq()
/external/e2fsprogs/misc/
Dlsattr.c146 path = malloc(dir_len + strlen (de->d_name) + 2); in lsattr_dir_proc()
149 sprintf (path, "%s%s", dir_name, de->d_name); in lsattr_dir_proc()
151 sprintf (path, "%s/%s", dir_name, de->d_name); in lsattr_dir_proc()
155 if (de->d_name[0] != '.' || all) { in lsattr_dir_proc()
158 strcmp(de->d_name, ".") && in lsattr_dir_proc()
159 strcmp(de->d_name, "..")) { in lsattr_dir_proc()
/external/e2fsprogs/lib/ext2fs/
Dfinddev.c96 if (dirlen + strlen(dp->d_name) + 2 >= sizeof(path)) in scan_dir()
98 if (dp->d_name[0] == '.' && in scan_dir()
99 ((dp->d_name[1] == 0) || in scan_dir()
100 ((dp->d_name[1] == '.') && (dp->d_name[2] == 0)))) in scan_dir()
102 sprintf(path, "%s/%s", dirname, dp->d_name); in scan_dir()
/external/openssh/openbsd-compat/
Dgetcwd.c48 (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
49 (dp->d_name[1] == '.' && dp->d_name[2] == '\0')))
173 memcpy(bup, dp->d_name, dp->d_namlen + 1); in getcwd()
210 memcpy(bpt, dp->d_name, dp->d_namlen); in getcwd()
/external/e2fsprogs/lib/blkid/
Ddevno.c110 if (dirlen + strlen(dp->d_name) >= sizeof(path)) in blkid__scan_dir()
113 if (dp->d_name[0] == '.' && in blkid__scan_dir()
114 ((dp->d_name[1] == 0) || in blkid__scan_dir()
115 ((dp->d_name[1] == '.') && (dp->d_name[2] == 0)))) in blkid__scan_dir()
118 sprintf(path, "%s/%s", dirname, dp->d_name); in blkid__scan_dir()
/external/python/cpython2/Parser/
Dfirstsets.c44 printf("Calculate FIRST set for '%s'\n", d->d_name); in calcfirstset()
49 fprintf(stderr, "Left-recursion for '%s'\n", d->d_name); in calcfirstset()
54 d->d_name); in calcfirstset()
88 d->d_name); in calcfirstset()
104 printf("FIRST set for '%s': {", d->d_name); in calcfirstset()

12345678910