Home
last modified time | relevance | path

Searched refs:fnmatch (Results 1 – 25 of 30) sorted by relevance

12

/aosp12/bionic/tests/
H A Dfnmatch_test.cpp33 TEST(fnmatch, basic) { in TEST() argument
34 EXPECT_EQ(0, fnmatch("abc", "abc", 0)); in TEST()
38 TEST(fnmatch, casefold) { in TEST() argument
43 TEST(fnmatch, character_class) { in TEST() argument
71 TEST(fnmatch, wild_any) { in TEST() argument
72 EXPECT_EQ(0, fnmatch("ab*", "ab", 0)); in TEST()
73 EXPECT_EQ(0, fnmatch("ab*", "abc", 0)); in TEST()
74 EXPECT_EQ(0, fnmatch("ab*", "abcd", 0)); in TEST()
79 TEST(fnmatch, wild_one) { in TEST() argument
81 EXPECT_EQ(0, fnmatch("ab?", "abc", 0)); in TEST()
[all …]
/aosp12/system/core/init/
H A DREADME.ueventd.md95 `no_fnm_pathname`, ueventd matches the entry by `fnmatch(entry_path, incoming_path, 0)`
96 2. Otherwise, ueventd matches the entry by `fnmatch(entry_path, incoming_path, FNM_PATHNAME)`
98 See the [man page for fnmatch](https://www.man7.org/linux/man-pages/man3/fnmatch.3.html) for more
135 the rules of the fnmatch() function.
H A Dfirmware_handler.cpp56 return fnmatch(pattern.c_str(), path.c_str(), 0) == 0; in FnMatch()
H A Ddevices.cpp160 return fnmatch(name_.c_str(), path.c_str(), no_fnm_pathname_ ? 0 : FNM_PATHNAME) == 0; in Match()
/aosp12/bionic/tests/headers/posix/
H A Dfnmatch_h.c39 FUNCTION(fnmatch, int (*f)(const char*, const char*, int)); in fnmatch_h()
/aosp12/bionic/libc/include/
H A Dfnmatch.h68 int fnmatch(const char* _Nonnull __pattern, const char* _Nonnull __string, int __flags);
/aosp12/system/core/libmodprobe/
H A Dlibmodprobe.cpp409 if (fnmatch(alias.c_str(), module_name.c_str(), 0) != 0) continue; in LoadWithAliases()
465 if (!fnmatch(pattern.c_str(), module.c_str(), 0)) { in ListModules()
467 } else if (!fnmatch(pattern.c_str(), basename(deps[0].c_str()), 0)) { in ListModules()
/aosp12/system/core/libcutils/
H A Dfs_config.cpp299 if (fnmatch(pattern.c_str(), input.c_str(), fnm_flags) == 0) return true; in fs_config_cmp()
308 if (fnmatch(pattern.c_str(), input_in_partition.c_str(), fnm_flags) == 0) { in fs_config_cmp()
H A Dtrace-dev.inc24 #include <fnmatch.h>
110 if (fnmatch(value, cmdline, FNM_NOESCAPE) == 0) {
/aosp12/art/build/apex/
H A Dart_apex_test.py20 import fnmatch
319 expected_paths |= set(fnmatch.filter(paths, path_glob))
325 expected_paths |= set(fnmatch.filter(paths, dir_prefix + subpath_first_segment))
910 if fnmatch.fnmatch(test_args.apex, flavor_pattern):
/aosp12/build/make/tools/releasetools/
H A Dmerge_target_files.py87 import fnmatch
277 matching_namelist = fnmatch.filter(target_files_namelist, pattern)
300 filtered_file_paths.update(fnmatch.filter(file_paths, pattern))
/aosp12/system/libziparchive/
H A Dziptool.cpp91 if (!fnmatch(exclude.c_str(), name.c_str(), 0)) return false; in ShouldInclude()
100 if (!fnmatch(include.c_str(), name.c_str(), 0)) return true; in ShouldInclude()
/aosp12/bionic/libc/upstream-openbsd/lib/libc/gen/
H A Dfnmatch.c284 int fnmatch(const char *pattern, const char *string, int flags) in fnmatch() function
/aosp12/system/vold/
H A DVolumeManager.h68 return !fnmatch(mSysPattern.c_str(), sysPath.c_str(), 0); in matches()
/aosp12/art/test/testrunner/
H A Dtestrunner.py66 import fnmatch
255 if fnmatch.fnmatch(f, '[0-9]*'):
/aosp12/system/extras/simpleperf/scripts/test/
H A Ddo_test.py29 import fnmatch
106 patterns = [re.compile(fnmatch.translate(x)) for x in test_pattern]
/aosp12/frameworks/base/libs/hwui/tests/macrobench/
H A Dmain.cpp335 if (!fnmatch(test, iter.first.c_str(), 0)) { in parseOptions()
/aosp12/frameworks/compile/libbcc/gdb_plugin/
H A Dandroid-commands.py27 import fnmatch
668 for filename in fnmatch.filter(filenames, self.manifest_name):
/aosp12/frameworks/compile/mclinker/lib/LD/
H A DGarbageCollection.cpp30 #define fnmatch0(pattern, string) (fnmatch(pattern, string, 0) == 0)
/aosp12/system/libufdt/utils/src/
H A Dmkdtboimg.py21 import fnmatch
903 for filename in fnmatch.filter(filenames, os.path.basename(filepath)):
/aosp12/build/make/tools/atree/
H A Dfiles.cpp416 if (0 == fnmatch(it->c_str(), file, FNM_PERIOD)) { in matches_excludes()
/aosp12/frameworks/compile/mclinker/lib/Object/
H A DSectionMap.cpp28 #define fnmatch0(pattern, string) (fnmatch(pattern, string, 0) == 0)
/aosp12/bionic/benchmarks/linker_relocation/gen/
H A Dliblinker_reloc_bench_076.S349 CALL(fnmatch)
/aosp12/bionic/libc/tools/
H A Dposix-2013.txt282 fnmatch
/aosp12/system/core/fs_mgr/
H A Dfs_mgr_fstab.cpp810 if (!fnmatch(pattern.c_str(), entry.mount_point.c_str(), 0 /* flags */)) { in SkipMountingPartitions()

12