Home
last modified time | relevance | path

Searched refs:FNM_LEADING_DIR (Results 1 – 3 of 3) sorted by relevance

/bionic/tests/
Dfnmatch_test.cpp89 EXPECT_EQ(FNM_NOMATCH, fnmatch("ab", "abcd", FNM_LEADING_DIR)); in TEST()
90 EXPECT_EQ(0, fnmatch("ab*", "abcd", FNM_LEADING_DIR)); in TEST()
91 EXPECT_EQ(0, fnmatch("*ab*", "1/2/3/4/abcd", FNM_LEADING_DIR)); in TEST()
92 EXPECT_EQ(FNM_NOMATCH, fnmatch("*ab*", "1/2/3/4/abcd", FNM_PATHNAME | FNM_LEADING_DIR)); in TEST()
93 EXPECT_EQ(FNM_NOMATCH, fnmatch("ab?", "abcd", FNM_LEADING_DIR)); in TEST()
95 EXPECT_EQ(0, fnmatch("ab", "ab/cd", FNM_LEADING_DIR)); in TEST()
96 EXPECT_EQ(0, fnmatch("ab", "ab/cd", FNM_PATHNAME | FNM_LEADING_DIR)); in TEST()
99 EXPECT_EQ(FNM_NOMATCH, fnmatch("*ab", "1/2/3/4/ab/cd", FNM_PATHNAME | FNM_LEADING_DIR)); in TEST()
100 EXPECT_EQ(0, fnmatch("ab*", "ab/cd/ef", FNM_LEADING_DIR)); in TEST()
101 EXPECT_EQ(0, fnmatch("ab*", "ab/cd/ef", FNM_PATHNAME | FNM_LEADING_DIR)); in TEST()
[all …]
/bionic/libc/include/
Dfnmatch.h53 #define FNM_LEADING_DIR 0x08 macro
/bionic/libc/upstream-openbsd/lib/libc/gen/
Dfnmatch.c289 const int leading_dir = !!(flags & FNM_LEADING_DIR); in fnmatch()