Searched refs:de (Results 1 - 25 of 32) sorted by path

12

/system/core/adb/
H A Dfile_sync_client.c605 struct dirent *de; local
618 while((de = readdir(d))) {
620 char *name = de->d_name;
631 if (strlen(lpath) + strlen(de->d_name) + 1 > sizeof(stat_path))
634 strcat(stat_path, de->d_name);
H A Dfile_sync_service.c79 struct dirent *de; local
97 while((de = readdir(d))) {
98 int len = strlen(de->d_name);
104 strcpy(fname, de->d_name);
112 writex(s, de->d_name, len)) {
H A Dusb_linux.c138 struct dirent *de; local
144 while((de = readdir(busdir)) != 0) {
145 if(badname(de->d_name)) continue;
147 snprintf(busname, sizeof busname, "%s/%s", base, de->d_name);
152 while((de = readdir(devdir))) {
164 if(badname(de->d_name)) continue;
165 snprintf(devname, sizeof devname, "%s/%s", busname, de->d_name);
/system/core/charger/
H A Dcharger.c529 struct dirent *de; local
541 while ((de = readdir(d)) && max_depth > 0) {
544 LOGV("looking at '%s'\n", de->d_name);
546 if ((de->d_type != DT_DIR && !(de->d_type == DT_LNK && follow_links)) ||
547 de->d_name[0] == '.') {
549 de->d_name, de->d_type, max_depth, follow_links);
552 LOGV("can descend into '%s'\n", de->d_name);
554 fd = openat(dfd, de
[all...]
/system/core/cpio/
H A Dmkbootfs.c157 struct dirent *de; local
175 while((de = readdir(d)) != 0){
177 if(de->d_name[0] == '.') continue;
180 if(!strcmp(de->d_name, "root")) continue;
191 names[entries] = strdup(de->d_name);
194 de->d_name);
/system/core/debuggerd/
H A Dbacktrace.c130 struct dirent *de; local
131 while (!readdir_r(d, &debuf, &de) && de) {
132 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..")) {
137 pid_t new_tid = strtoul(de->d_name, &end, 10);
H A Dgetevent.c140 struct dirent *de; local
147 while((de = readdir(dir))) {
148 if(de->d_name[0] == '.' &&
149 (de->d_name[1] == '\0' ||
150 (de->d_name[1] == '.' && de->d_name[2] == '\0')))
152 strcpy(filename, de->d_name);
H A Dtombstone.c420 struct dirent *de; local
421 while (!readdir_r(d, &debuf, &de) && de) {
423 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..")) {
429 pid_t new_tid = strtoul(de->d_name, &end, 10);
/system/core/fastboot/
H A Dusb_linux.c252 struct dirent *de; local
259 while((de = readdir(busdir)) && (usb == 0)) {
260 if(badname(de->d_name)) continue;
262 sprintf(busname, "%s/%s", base, de->d_name);
267 while((de = readdir(devdir)) && (usb == 0)) {
269 if(badname(de->d_name)) continue;
270 sprintf(devname, "%s/%s", busname, de->d_name);
/system/core/init/
H A Ddevices.c839 struct dirent *de; local
851 while((de = readdir(d))) {
854 if(de->d_type != DT_DIR || de->d_name[0] == '.')
857 fd = openat(dfd, de->d_name, O_RDONLY | O_DIRECTORY);
/system/core/libcutils/
H A Ddir_hash.c134 struct dirent *de; local
141 while ((de = readdir(d)) != NULL) {
142 if (strcmp(de->d_name, ".") == 0) {
145 if (strcmp(de->d_name, "..") == 0) {
149 char *name = malloc(strlen(de->d_name) + 1);
165 strcpy(name, de->d_name);
/system/core/libusbhost/
H A Dusbhost.c87 struct dirent *de; local
93 while ((de = readdir(devdir)) && !done) {
94 if(badname(de->d_name)) continue;
96 snprintf(devname, sizeof(devname), "%s/%s", busname, de->d_name);
110 struct dirent *de; local
116 while ((de = readdir(busdir)) != 0 && !done) {
117 if(badname(de->d_name)) continue;
119 snprintf(busname, sizeof(busname), "%s/%s", USB_FS_DIR, de->d_name);
/system/core/netcfg/
H A Dnetcfg.c79 struct dirent *de; local
84 while((de = readdir(d))) {
85 if(de->d_name[0] == '.') continue;
86 dump_interface(de->d_name);
/system/core/sdcard/
H A Dsdcard.c982 struct dirent *de; local
991 de = readdir(h->d);
992 if (!de) {
998 fde->type = de->d_type;
999 fde->namelen = strlen(de->d_name);
1000 memcpy(fde->name, de->d_name, fde->namelen + 1);
/system/core/toolbox/
H A Dgetevent.c265 struct dirent *de; local
275 while((de = readdir(dir))) {
276 if (strstr(de->d_name, prefix) == de->d_name) {
277 snprintf(filename, sizeof(filename), "%s/%s/rdesc", dirname, de->d_name);
281 printf(" HID descriptor: %s\n\n", de->d_name);
454 struct dirent *de; local
461 while((de = readdir(dir))) {
462 if(de->d_name[0] == '.' &&
463 (de
[all...]
H A Dls.c101 struct dirent *de; local
107 while ((de = readdir(d)) != 0) {
108 if (strcmp(de->d_name, ".") == 0 || strcmp(de->d_name, "..") == 0)
110 if (de->d_name[0] == '.' && (flags & LIST_ALL) == 0)
114 snprintf(tmp, sizeof(tmp), "/%s", de->d_name);
116 snprintf(tmp, sizeof(tmp), "%s/%s", dirname, de->d_name);
338 struct dirent *de; local
351 while((de = readdir(d)) != 0){
352 if (!strcmp(de
[all...]
H A Dlsof.c152 struct dirent* de; local
153 while ((de = readdir(dir))) {
154 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, ".."))
157 print_type(de->d_name, info);
239 struct dirent* de; local
240 while ((de = readdir(dir))) {
241 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, ".."))
245 pid = strtol(de
[all...]
H A Dnewfs_msdos.c145 struct de { struct
266 struct de *de; local
520 bpb.bps / sizeof(struct de)) +
527 howmany(DEFRDE, bpb.bps / sizeof(struct de)) +
558 rds = howmany(bpb.rde, bpb.bps / sizeof(struct de));
709 de = (struct de *)img;
710 mklabel(de->namext, opt_L);
711 mk1(de
[all...]
H A Dps.c187 struct dirent *de; local
193 while((de = readdir(d)) != 0){
194 if(isdigit(de->d_name[0])){
195 int tid = atoi(de->d_name);
206 struct dirent *de; local
244 while((de = readdir(d)) != 0){
245 if(isdigit(de->d_name[0])){
246 int pid = atoi(de->d_name);
H A Drm.c24 struct dirent *de; local
42 while ((de = readdir(dir)) != NULL) {
44 if (!strcmp(de->d_name, "..") || !strcmp(de->d_name, "."))
46 sprintf(dn, "%s/%s", name, de->d_name);
H A Dschedtop.c159 struct dirent *de; local
163 while((de = readdir(d)) != 0){
164 if(isdigit(de->d_name[0])){
165 int tid = atoi(de->d_name);
198 struct dirent *de; local
201 while((de = readdir(d)) != 0){
202 if(isdigit(de->d_name[0])){
203 int pid = atoi(de->d_name);
275 struct dirent *de; local
H A Dwipe.c84 struct dirent *de; local
103 de = readdir(dir);
105 if (de == NULL) {
109 if (0 == strcmp(de->d_name, ".")
110 || 0 == strcmp(de->d_name, "..")
111 || 0 == strcmp(de->d_name, "lost+found")
116 strcpy(filenameOffset, de->d_name);
/system/extras/fatblock/
H A Dfat.c27 void fat_dirent_set_first_cluster(struct fat_dirent *de, cluster_t cluster) argument
29 assert(de);
31 de->first_cluster_hi = htole16((cluster >> 16) & 0xffff);
32 de->first_cluster_lo = htole16((cluster >> 0) & 0xffff);
35 void fat_dirent_set(struct fat_dirent *de, argument
39 assert(de);
42 memset(de, 0, sizeof(*de));
44 memcpy(de->name, name, 11);
45 de
[all...]
H A Dfat.h119 void fat_dirent_set_first_cluster(struct fat_dirent *de, cluster_t cluster);
120 void fat_dirent_set(struct fat_dirent *de,
H A Dimport.c200 struct dirent *de; local
243 while ((de = readdir(dir))) {
244 if (de->d_name[0] == '.') {
248 ret = snprintf(ch_path, PATH_MAX, "%s/%s", path, de->d_name);
261 if (convert_name(item->name, de->d_name)) {
265 switch (de->d_type) {

Completed in 106 milliseconds

12