Home
last modified time | relevance | path

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

123456

/external/linux-tools-perf/util/
Dtrace-event-info.c326 strcmp(dent->d_name, ".") == 0 || in copy_event_system()
327 strcmp(dent->d_name, "..") == 0 || in copy_event_system()
328 !name_in_tp_list(dent->d_name, tps)) in copy_event_system()
330 format = malloc_or_die(strlen(sys) + strlen(dent->d_name) + 10); in copy_event_system()
331 sprintf(format, "%s/%s/format", sys, dent->d_name); in copy_event_system()
344 strcmp(dent->d_name, ".") == 0 || in copy_event_system()
345 strcmp(dent->d_name, "..") == 0 || in copy_event_system()
346 !name_in_tp_list(dent->d_name, tps)) in copy_event_system()
348 format = malloc_or_die(strlen(sys) + strlen(dent->d_name) + 10); in copy_event_system()
349 sprintf(format, "%s/%s/format", sys, dent->d_name); in copy_event_system()
[all …]
Dparse-events.c138 (strcmp(sys_dirent.d_name, ".")) && \
139 (strcmp(sys_dirent.d_name, "..")))
147 sys_dir->d_name, evt_dir->d_name); in tp_event_has_id()
159 (strcmp(evt_dirent.d_name, ".")) && \
160 (strcmp(evt_dirent.d_name, "..")) && \
187 sys_dirent.d_name); in tracepoint_id_to_path()
195 evt_dirent.d_name); in tracepoint_id_to_path()
220 strncpy(path->system, sys_dirent.d_name, in tracepoint_id_to_path()
222 strncpy(path->name, evt_dirent.d_name, in tracepoint_id_to_path()
503 if (!strcmp(evt_ent->d_name, ".") in parse_multiple_tracepoint_event()
[all …]
/external/webkit/Source/WebCore/platform/efl/
DFileSystemEfl.cpp139 if (de->d_name[0] == '.') { in listDirectory()
140 if (de->d_name[1] == '\0') in listDirectory()
142 if (de->d_name[1] == '.' && de->d_name[2] == '\0') in listDirectory()
145 if (fnmatch(cfilter.data(), de->d_name, 0)) in listDirectory()
148 nameLen = strlen(de->d_name); in listDirectory()
152 memcpy(fileName, de->d_name, nameLen + 1); in listDirectory()
/external/e2fsprogs/misc/
Dlsattr.c134 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()
Dchattr.c276 if (strcmp (de->d_name, ".") && strcmp (de->d_name, "..")) { in chattr_dir_proc()
279 path = malloc(strlen (dir_name) + 1 + strlen (de->d_name) + 1); in chattr_dir_proc()
285 sprintf(path, "%s/%s", dir_name, de->d_name); in chattr_dir_proc()
/external/e2fsprogs/lib/ext2fs/
Dfinddev.c91 if (dirlen + strlen(dp->d_name) + 2 >= sizeof(path)) in scan_dir()
93 if (dp->d_name[0] == '.' && in scan_dir()
94 ((dp->d_name[1] == 0) || in scan_dir()
95 ((dp->d_name[1] == '.') && (dp->d_name[2] == 0)))) in scan_dir()
97 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()
Dbsd-closefrom.c35 # define NAMLEN(dirent) strlen((dirent)->d_name)
82 fd = strtol(dent->d_name, &endp, 10); in closefrom()
83 if (dent->d_name != endp && *endp == '\0' && in closefrom()
/external/e2fsprogs/lib/blkid/
Ddevno.c106 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()
Ddevname.c133 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/kernel-headers/original/linux/
Ddirent.h8 char d_name[256]; /* We must not include limits.h! */ member
16 char d_name[256]; member
26 char d_name[0]; member
/external/oprofile/libutil/
Dop_file.c94 name_len = strlen(basedir) + strlen("/") + strlen(ent->d_name) + 1; in make_pathname_from_dirent()
96 sprintf(name, "%s/%s", basedir, ent->d_name); in make_pathname_from_dirent()
142 if (is_dot_or_dotdot(ent->d_name)) in get_matching_pathnames()
144 if (fnmatch(filter, ent->d_name, 0) == 0) in get_matching_pathnames()
155 getpathname(ent->d_name, name_list); in get_matching_pathnames()
/external/iproute2/ip/
Diptuntap.c283 if (d->d_name[0] == '.' && in do_show()
284 (d->d_name[1] == 0 || d->d_name[1] == '.')) in do_show()
287 if (read_prop(d->d_name, "tun_flags", &flags)) in do_show()
290 read_prop(d->d_name, "owner", &owner); in do_show()
291 read_prop(d->d_name, "group", &group); in do_show()
293 printf("%s:", d->d_name); in do_show()
/external/webkit/Source/WebKit/android/plugins/
DANPSystemInterface.cpp183 if (!strcmp(".", entry->d_name) || !strcmp("..", entry->d_name)) { in removeDirectory()
184 PLUGIN_LOG(". file: %s", entry->d_name); in removeDirectory()
190 char* file = (char*) malloc(strlen(path) + strlen(separator) + strlen(entry->d_name) + 1); in removeDirectory()
193 strcat(file, entry->d_name); in removeDirectory()
/external/yaffs2/yaffs2/utils/
Dmkyaffsimage.c400 if(strcmp(entry->d_name,".") && in process_directory()
401 strcmp(entry->d_name,"..")) in process_directory()
408 sprintf(full_name,"%s/%s",path,entry->d_name); in process_directory()
431 …object_header(newObj, YAFFS_OBJECT_TYPE_HARDLINK, &stats, parent, entry->d_name, equivalentObj, NU… in process_directory()
448 …write_object_header(newObj, YAFFS_OBJECT_TYPE_SYMLINK, &stats, parent, entry->d_name, -1, symname); in process_directory()
454 …error = write_object_header(newObj, YAFFS_OBJECT_TYPE_FILE, &stats, parent, entry->d_name, -1, NU… in process_directory()
490 …= write_object_header(newObj, YAFFS_OBJECT_TYPE_SPECIAL, &stats, parent, entry->d_name, -1, NULL); in process_directory()
495 …= write_object_header(newObj, YAFFS_OBJECT_TYPE_SPECIAL, &stats, parent, entry->d_name, -1, NULL); in process_directory()
500 …= write_object_header(newObj, YAFFS_OBJECT_TYPE_SPECIAL, &stats, parent, entry->d_name, -1, NULL); in process_directory()
505 …= write_object_header(newObj, YAFFS_OBJECT_TYPE_SPECIAL, &stats, parent, entry->d_name, -1, NULL); in process_directory()
[all …]
Dmkyaffs2image.c355 if(strcmp(entry->d_name,".") && in process_directory()
356 strcmp(entry->d_name,"..")) in process_directory()
367 sprintf(full_name,"%s/%s",path,entry->d_name); in process_directory()
431 …object_header(newObj, YAFFS_OBJECT_TYPE_HARDLINK, &stats, parent, entry->d_name, equivalentObj, NU… in process_directory()
448 …_object_header(newObj, YAFFS_OBJECT_TYPE_SYMLINK, &stats, parent, entry->d_name, -1, symname, seco… in process_directory()
454 …error = write_object_header(newObj, YAFFS_OBJECT_TYPE_FILE, &stats, parent, entry->d_name, -1, NU… in process_directory()
490 …_object_header(newObj, YAFFS_OBJECT_TYPE_SPECIAL, &stats, parent, entry->d_name, -1, NULL, seconte… in process_directory()
495 …_object_header(newObj, YAFFS_OBJECT_TYPE_SPECIAL, &stats, parent, entry->d_name, -1, NULL, seconte… in process_directory()
500 …_object_header(newObj, YAFFS_OBJECT_TYPE_SPECIAL, &stats, parent, entry->d_name, -1, NULL, seconte… in process_directory()
505 …_object_header(newObj, YAFFS_OBJECT_TYPE_SPECIAL, &stats, parent, entry->d_name, -1, NULL, seconte… in process_directory()
[all …]
/external/libselinux/src/
Dbooleans.c29 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/openssh/
Dsftp-glob.c83 strlcpy(ret->d_name, od->dir[od->offset++]->filename, MAXPATHLEN); in fudge_readdir()
85 strlcpy(ret->d_name, od->dir[od->offset++]->filename, in fudge_readdir()
86 sizeof(ret->d_name)); in fudge_readdir()
/external/bluetooth/bluedroid/btif/co/
Dbta_fs_co.c89 if (0 == strcmp(de->d_name, ".") || 0 == strcmp(de->d_name, "..")) in del_path()
92 if((int)strlen(de->d_name) > PATH_MAX - nameLen) { in del_path()
93 BTIF_TRACE_DEBUG1("d_name len:%d is too big", strlen(de->d_name)); in del_path()
98 strcpy(filenameOffset, de->d_name); in del_path()
911 sprintf(fullname, "%s/%s", p_path, dirent->d_name); in bta_fs_co_getdirentry()
923 strcpy(p_entry->p_name, dirent->d_name); in bta_fs_co_getdirentry()
926 dirent->d_name, in bta_fs_co_getdirentry()
945 dirent->d_name, in bta_fs_co_getdirentry()
/external/icu4c/tools/toolutil/
Dfiletools.cpp50 … if (uprv_strcmp(dirEntry->d_name, SKIP1) != 0 && uprv_strcmp(dirEntry->d_name, SKIP2) != 0) { in isFileModTimeLater()
54 uprv_strcat(newpath, dirEntry->d_name); in isFileModTimeLater()
/external/libcap-ng/libcap-ng-0.7/utils/
Dpscap.c76 if(*ent->d_name<'0' || *ent->d_name>'9') in main()
79 pid = strtol(ent->d_name, NULL, 10); in main()
/external/oprofile/opcontrol/
Dopcontrol.cpp547 if (strlen(dirent->d_name) >= 4 && memcmp(dirent->d_name, "cpu", 3) == 0) { in do_status()
550 strcat(cpupath, dirent->d_name); in do_status()
555 printf(" %s %9u samples received\n", dirent->d_name, num); in do_status()
560 printf(" %s %9u samples lost overflow\n", dirent->d_name, num); in do_status()
565 printf(" %s %9u samples invalid eip\n", dirent->d_name, num); in do_status()
570 printf(" %s %9u backtrace aborted\n", dirent->d_name, num); in do_status()
/external/dhcpcd/
Difaddrs.c114 if (de->d_name[0] == '.') in getifaddrs()
116 ifa = get_interface(de->d_name, AF_INET); in getifaddrs()
121 ifa = get_interface(de->d_name, AF_PACKET); in getifaddrs()
/external/oprofile/daemon/
Dopd_stats.c71 if (sscanf(dirent->d_name, "cpu%d", &cpu_nr) != 1) in opd_print_stats()
73 snprintf(path, 256, "/dev/oprofile/stats/%s", dirent->d_name); in opd_print_stats()
/external/chromium/base/
Ddir_reader_linux.h27 char d_name[0]; member
77 return dirent->d_name; in name()

123456