Searched refs:ent (Results 1 – 7 of 7) sorted by relevance
/build/kati/ |
D | pathutil.go | 245 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 …]
|
D | find.cc | 852 struct dirent* ent; in ConstructDirectoryTree() local 853 while ((ent = readdir(dir)) != NULL) { in ConstructDirectoryTree() 854 if (!strcmp(ent->d_name, ".") || in ConstructDirectoryTree() 855 !strcmp(ent->d_name, "..") || in ConstructDirectoryTree() 856 !strcmp(ent->d_name, ".repo") || in ConstructDirectoryTree() 857 !strcmp(ent->d_name, ".git") || in ConstructDirectoryTree() 858 !strcmp(ent->d_name, "out")) in ConstructDirectoryTree() 864 npath += ent->d_name; in ConstructDirectoryTree() 867 auto d_type = ent->d_type; in ConstructDirectoryTree() 882 n->Add(ent->d_name, c); in ConstructDirectoryTree()
|
D | pathutil_test.go | 50 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
|
D | dep.cc | 103 for (const Entry& ent : rules_) { in Get() local 104 if ((ent.suffix.empty() && name.empty()) || in Get() 105 HasSuffix(name, ent.suffix.substr(1))) { in Get() 106 rules->push_back(ent.rule); in Get()
|
/build/tools/atree/ |
D | fs.cpp | 57 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()
|
D | files.cpp | 440 struct dirent *ent; in list_dir() local 441 while (NULL != (ent = readdir(d))) { in list_dir() 442 if (0 == strcmp(".", ent->d_name) in list_dir() 443 || 0 == strcmp("..", ent->d_name)) { in list_dir() 446 if (matches_excludes(ent->d_name, excludes)) { in list_dir() 449 string entry = path_append(path, ent->d_name); in list_dir() 450 bool is_directory = (ent->d_type == DT_DIR); in list_dir()
|
/build/libs/host/ |
D | CopyFile.c | 484 struct dirent* ent; in copyDirectory() local 489 ent = readdir(dir); in copyDirectory() 490 if (ent == NULL) in copyDirectory() 493 if (strcmp(ent->d_name, ".") == 0 || in copyDirectory() 494 strcmp(ent->d_name, "..") == 0) in copyDirectory() 499 nameLen = strlen(ent->d_name); in copyDirectory() 506 memcpy(srcFile + srcLen+1, ent->d_name, nameLen +1); in copyDirectory() 511 memcpy(dstFile + dstLen+1, ent->d_name, nameLen +1); in copyDirectory()
|