Home
last modified time | relevance | path

Searched refs:ent (Results 1 – 7 of 7) sorted by relevance

/build/kati/
Dpathutil.go245 for _, ent := range ents {
246 matched, err := filepath.Match(pattern, ent.name)
251 matches = append(matches, dir+ent.name)
304 func (op findOpName) apply(w evalWriter, path string, ent dirent) (bool, bool) {
305 matched, err := filepath.Match(string(op), ent.name)
318 func (op findOpType) apply(w evalWriter, path string, ent dirent) (bool, bool) {
319 mode := ent.lmode
320 if op.followSymlinks && ent.mode != 0 {
321 mode = ent.mode
330 func (op findOpRegular) apply(w evalWriter, path string, ent dirent) (bool, bool) {
[all …]
Dfind.cc941 struct dirent* ent; in ConstructDirectoryTree() local
942 while ((ent = readdir(dir)) != NULL) { in ConstructDirectoryTree()
943 if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..") || in ConstructDirectoryTree()
944 !strcmp(ent->d_name, ".repo") || !strcmp(ent->d_name, ".git")) in ConstructDirectoryTree()
950 npath += ent->d_name; in ConstructDirectoryTree()
953 auto d_type = ent->d_type; in ConstructDirectoryTree()
971 n->Add(ent->d_name, c); in ConstructDirectoryTree()
Dpathutil_test.go50 for _, ent := range ents {
51 t.Logf(" %#v", ent)
66 func (m *mockfs) addent(name string, ent dirent) {
82 if e.name == ent.name {
86 fsCache.dirents[di] = append(fsCache.dirents[di], ent)
90 ent := t(filepath.Base(name))
91 m.addent(name, ent)
92 return ent
95 func (m *mockfs) symlink(name string, ent dirent) {
96 lent := ent
Ddep.cc102 for (const Entry& ent : rules_) { in Get() local
103 if ((ent.suffix.empty() && name.empty()) || in Get()
104 HasSuffix(name, ent.suffix.substr(1))) { in Get()
105 rules->push_back(ent.rule); in Get()
/build/make/tools/atree/
Dfs.cpp57 struct dirent *ent; in remove_recursively() local
58 while (NULL != (ent = readdir(d))) { in remove_recursively()
59 if (0 == strcmp(".", ent->d_name) in remove_recursively()
60 || 0 == strcmp("..", ent->d_name)) { in remove_recursively()
65 full += ent->d_name; in remove_recursively()
66 bool is_directory = (ent->d_type == DT_DIR); in remove_recursively()
Dfiles.cpp438 struct dirent *ent; in list_dir() local
439 while (NULL != (ent = readdir(d))) { in list_dir()
440 if (0 == strcmp(".", ent->d_name) in list_dir()
441 || 0 == strcmp("..", ent->d_name)) { in list_dir()
444 if (matches_excludes(ent->d_name, excludes)) { in list_dir()
447 string entry = path_append(path, ent->d_name); in list_dir()
448 bool is_directory = (ent->d_type == DT_DIR); in list_dir()
/build/make/tools/libhost/
DCopyFile.c492 struct dirent* ent; in copyDirectory() local
497 ent = readdir(dir); in copyDirectory()
498 if (ent == NULL) in copyDirectory()
501 if (strcmp(ent->d_name, ".") == 0 || in copyDirectory()
502 strcmp(ent->d_name, "..") == 0) in copyDirectory()
507 nameLen = strlen(ent->d_name); in copyDirectory()
514 memcpy(srcFile + srcLen+1, ent->d_name, nameLen +1); in copyDirectory()
519 memcpy(dstFile + dstLen+1, ent->d_name, nameLen +1); in copyDirectory()