/external/linux-kselftest/tools/testing/selftests/proc/ |
D | read.c | 79 assert(streq(de->d_name, ".")); in f() 83 assert(streq(de->d_name, "..")); in f() 86 assert(!streq(de->d_name, ".")); in f() 87 assert(!streq(de->d_name, "..")); in f() 94 if (level == 0 && streq(de->d_name, "sysrq-trigger")) { in f() 95 f_reg_write(d, de->d_name, "h", 1); in f() 96 } else if (level == 1 && streq(de->d_name, "clear_refs")) { in f() 97 f_reg_write(d, de->d_name, "1", 1); in f() 98 } else if (level == 3 && streq(de->d_name, "clear_refs")) { in f() 99 f_reg_write(d, de->d_name, "1", 1); in f() [all …]
|
/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/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()
|
/external/iproute2/ip/ |
D | ipnetns.c | 224 if (strcmp(entry->d_name, ".") == 0) in netns_map_init() 226 if (strcmp(entry->d_name, "..") == 0) in netns_map_init() 228 nsid = get_netnsid_from_name(entry->d_name); in netns_map_init() 231 netns_map_add(nsid, entry->d_name); in netns_map_init() 248 if (strcmp(entry->d_name, ".") == 0) in netns_get_name() 250 if (strcmp(entry->d_name, "..") == 0) in netns_get_name() 252 id = get_netnsid_from_name(entry->d_name); in netns_get_name() 255 strcpy(name, entry->d_name); in netns_get_name() 344 if (strcmp(entry->d_name, ".") == 0) in netns_list() 346 if (strcmp(entry->d_name, "..") == 0) in netns_list() [all …]
|
/external/ltp/testcases/network/nfs/nfs_stress/ |
D | nfs01_open_files.c | 104 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/ |
D | getdents01.c | 104 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/dtc/ |
D | fstree.c | 42 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/u-boot/scripts/dtc/ |
D | fstree.c | 42 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/libese/third_party/NXPNFC_P61_JCOP_Kit/src/ |
D | AlaLib.cpp | 187 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/mesa3d/src/gallium/auxiliary/hud/ |
D | hud_diskstat.c | 268 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()
|
/external/ltp/testcases/kernel/syscalls/futex/ |
D | futex_utils.h | 39 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/strace/tests/ |
D | readdir.c | 69 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-m32/ |
D | readdir.c | 69 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/ |
D | readdir.c | 69 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/e2fsprogs/misc/ |
D | lsattr.c | 146 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/ |
D | finddev.c | 96 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/ |
D | getcwd.c | 48 (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/ |
D | devno.c | 110 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/ |
D | firstsets.c | 44 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()
|
/external/python/cpython3/Parser/ |
D | firstsets.c | 44 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()
|