Searched refs:d_name (Results 1 - 25 of 164) sorted by relevance

1234567

/external/compiler-rt/test/msan/
H A Dscandir.cc22 printf("%s\n", a->d_name);
25 printf("%s\n", a->d_name);
26 return strlen(a->d_name) == 3 && a->d_name[2] == 'b';
34 if ((*a)->d_name[1] == (*b)->d_name[1])
36 return ((*a)->d_name[1] < (*b)->d_name[1]) ? 1 : -1;
53 assert(strcmp(d[0]->d_name, "bbb") == 0);
54 assert(strcmp(d[1]->d_name, "aa
[all...]
H A Dreaddir64.cc21 if (d->d_name[0]) {
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/
H A Dosdirent.h17 char d_name[256]; member in struct:dirent
H A Dgetdents_helper.cc55 size_t d_name_max = MEMBER_SIZE(dirent, d_name) - 1; // -1 for \0.
57 strncpy(&entry.d_name[0], name, copylen);
58 entry.d_name[copylen] = 0;
/external/chromium_org/third_party/webrtc/base/
H A Dlinuxfdwalk.c48 if (strcmp(ent->d_name, ".") == 0 ||
49 strcmp(ent->d_name, "..") == 0) {
55 int fd = parse_fd(ent->d_name);
/external/fio/os/windows/posix/include/
H A Ddirent.h9 char d_name[MAX_PATH]; /* Name of entry */ member in struct:dirent
/external/e2fsprogs/contrib/
H A Dspd_readdir.c66 char *d_name; member in struct:dirent_s
157 free(dirstruct->dp[i].d_name);
173 if (ds_a->d_name[0] == '.') {
174 if (ds_a->d_name[1] == 0)
176 else if ((ds_a->d_name[1] == '.') && (ds_a->d_name[2] == 0))
179 if (ds_b->d_name[0] == '.') {
180 if (ds_b->d_name[1] == 0)
182 else if ((ds_b->d_name[1] == '.') && (ds_b->d_name[
[all...]
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
H A Dtrace-event-info.c190 strcmp(dent->d_name, ".") == 0 ||
191 strcmp(dent->d_name, "..") == 0 ||
192 !name_in_tp_list(dent->d_name, tps))
194 format = malloc(strlen(sys) + strlen(dent->d_name) + 10);
199 sprintf(format, "%s/%s/format", sys, dent->d_name);
216 strcmp(dent->d_name, ".") == 0 ||
217 strcmp(dent->d_name, "..") == 0 ||
218 !name_in_tp_list(dent->d_name, tps))
220 format = malloc(strlen(sys) + strlen(dent->d_name) + 10);
225 sprintf(format, "%s/%s/format", sys, dent->d_name);
[all...]
H A Dparse-events.c129 (strcmp(sys_dirent.d_name, ".")) && \
130 (strcmp(sys_dirent.d_name, "..")))
138 sys_dir->d_name, evt_dir->d_name);
150 (strcmp(evt_dirent.d_name, ".")) && \
151 (strcmp(evt_dirent.d_name, "..")) && \
178 sys_dirent.d_name);
186 evt_dirent.d_name);
211 strncpy(path->system, sys_dirent.d_name,
213 strncpy(path->name, evt_dirent.d_name,
[all...]
H A Dthread_map.c16 if (dir->d_name[0] == '.')
38 threads->map[i] = atoi(namelist[i]->d_name);
82 pid_t pid = strtol(dirent.d_name, &end, 10);
87 snprintf(path, sizeof(path), "/proc/%s", dirent.d_name);
117 threads->map[threads->nr + i] = atoi(namelist[i]->d_name);
196 threads->map[j++] = atoi(namelist[i]->d_name);
/external/oprofile/libutil/
H A Dop_file.c94 name_len = strlen(basedir) + strlen("/") + strlen(ent->d_name) + 1;
96 sprintf(name, "%s/%s", basedir, ent->d_name);
142 if (is_dot_or_dotdot(ent->d_name))
144 if (fnmatch(filter, ent->d_name, 0) == 0)
155 getpathname(ent->d_name, name_list);
/external/e2fsprogs/lib/blkid/
H A Ddevno.c106 if (dirlen + strlen(dp->d_name) >= sizeof(path))
109 if (dp->d_name[0] == '.' &&
110 ((dp->d_name[1] == 0) ||
111 ((dp->d_name[1] == '.') && (dp->d_name[2] == 0))))
114 sprintf(path, "%s/%s", dirname, dp->d_name);
/external/e2fsprogs/lib/ext2fs/
H A Dfinddev.c92 if (dirlen + strlen(dp->d_name) + 2 >= sizeof(path))
94 if (dp->d_name[0] == '.' &&
95 ((dp->d_name[1] == 0) ||
96 ((dp->d_name[1] == '.') && (dp->d_name[2] == 0))))
98 sprintf(path, "%s/%s", dirname, dp->d_name);
/external/e2fsprogs/misc/
H A Dlsattr.c134 path = malloc(dir_len + strlen (de->d_name) + 2);
137 sprintf (path, "%s%s", dir_name, de->d_name);
139 sprintf (path, "%s/%s", dir_name, de->d_name);
143 if (de->d_name[0] != '.' || all) {
146 strcmp(de->d_name, ".") &&
147 strcmp(de->d_name, "..")) {
/external/deqp/framework/delibs/decpp/
H A DdeDirectoryIterator.cpp108 return FilePath::join(m_path, m_curEntry->d_name);
116 } while (m_curEntry && (deStringEqual(m_curEntry->d_name, "..") || deStringEqual(m_curEntry->d_name, ".")));
/external/oprofile/module/
H A Dcompat.c47 push_dname(&dentry->d_name);
/external/chromium_org/base/files/
H A Ddir_reader_linux.h26 char d_name[0]; member in struct:base::linux_dirent
77 return dirent->d_name;
/external/oprofile/daemon/
H A Dopd_stats.c71 if (sscanf(dirent->d_name, "cpu%d", &cpu_nr) != 1)
73 snprintf(path, 256, "/dev/oprofile/stats/%s", dirent->d_name);
/external/chromium_org/sandbox/linux/services/
H A Dcredentials.cc190 if (strcmp(e.d_name, ".") == 0 || strcmp(e.d_name, "..") == 0) {
195 CHECK(base::StringToInt(e.d_name, &fd_num));
234 if (strcmp(e.d_name, ".") == 0 || strcmp(e.d_name, "..") == 0) {
239 CHECK(base::StringToInt(e.d_name, &fd_num));
246 CHECK(fstatat(proc_self_fd, e.d_name, &s, 0) == 0);
/external/iproute2/ip/
H A Dipnetns.c81 if (strcmp(entry->d_name, ".") == 0)
83 if (strcmp(entry->d_name, "..") == 0)
85 printf("%s\n", entry->d_name);
105 if (strcmp(entry->d_name, ".") == 0)
107 if (strcmp(entry->d_name, "..") == 0)
109 snprintf(netns_name, sizeof(netns_name), "%s/%s", etc_netns_path, entry->d_name);
110 snprintf(etc_name, sizeof(etc_name), "/etc/%s", entry->d_name);
H A Diptuntap.c283 if (d->d_name[0] == '.' &&
284 (d->d_name[1] == 0 || d->d_name[1] == '.'))
287 if (read_prop(d->d_name, "tun_flags", &flags))
290 read_prop(d->d_name, "owner", &owner);
291 read_prop(d->d_name, "group", &group);
293 printf("%s:", d->d_name);
/external/chromium_org/third_party/icu/source/tools/toolutil/
H A Dfiletools.cpp58 if (uprv_strcmp(dirEntry->d_name, SKIP1) != 0 && uprv_strcmp(dirEntry->d_name, SKIP2) != 0) {
62 uprv_strcat(newpath, dirEntry->d_name);
/external/icu/icu4c/source/tools/toolutil/
H A Dfiletools.cpp58 if (uprv_strcmp(dirEntry->d_name, SKIP1) != 0 && uprv_strcmp(dirEntry->d_name, SKIP2) != 0) {
62 uprv_strcat(newpath, dirEntry->d_name);
/external/libcap-ng/libcap-ng-0.7/utils/
H A Dpscap.c76 if(*ent->d_name<'0' || *ent->d_name>'9')
79 pid = strtol(ent->d_name, NULL, 10);
/external/chromium_org/net/disk_cache/simple/
H A Dsimple_index_file_posix.cc41 const std::string file_name(result->d_name);

Completed in 498 milliseconds

1234567