Home
last modified time | relevance | path

Searched refs:FNM_PATHNAME (Results 1 – 18 of 18) sorted by relevance

/freebsd/lib/libc/tests/gen/
H A Dfnmatch_testcases.h146 { "a/a", "a/a", FNM_PATHNAME, 0 },
147 { "a/*", "a/a", FNM_PATHNAME, 0 },
148 { "*/a", "a/a", FNM_PATHNAME, 0 },
149 { "*/*", "a/a", FNM_PATHNAME, 0 },
150 { "a*b/*", "abbb/x", FNM_PATHNAME, 0 },
151 { "a*b/*", "abbb/.x", FNM_PATHNAME, 0 },
152 { "*", "a/a", FNM_PATHNAME, FNM_NOMATCH },
153 { "*/*", "a/a/a", FNM_PATHNAME, FNM_NOMATCH },
154 { "b/*", "b/.x", FNM_PATHNAME | FNM_PERIOD, FNM_NOMATCH },
155 { "b*/*", "a/.x", FNM_PATHNAME | FNM_PERIOD, FNM_NOMATCH },
[all …]
H A Dfnmatch_test.c41 static const int flagvalues[] = { FNM_NOESCAPE, FNM_PATHNAME, in flags_to_string()
105 !(flags & (FNM_PATHNAME | FNM_PERIOD))) { in ATF_TC_BODY()
114 !(flags & FNM_PATHNAME)) { in ATF_TC_BODY()
115 flags |= FNM_PATHNAME; in ATF_TC_BODY()
124 flags & FNM_PATHNAME && !(flags & FNM_PERIOD)) { in ATF_TC_BODY()
134 !(flags & (FNM_PATHNAME | FNM_PERIOD))) { in ATF_TC_BODY()
135 flags |= FNM_PATHNAME | FNM_PERIOD; in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/lib/libc/gen/
H A Dt_fnmatch.c122 ATF_CHECK(fnmatch("???x", "xxx/x", FNM_PATHNAME) != 0); in ATF_TC_BODY()
123 ATF_CHECK(fnmatch("***x", "xxx/x", FNM_PATHNAME) != 0); in ATF_TC_BODY()
125 ATF_CHECK(fnmatch("???x", "xxxx", FNM_PATHNAME) == 0); in ATF_TC_BODY()
126 ATF_CHECK(fnmatch("*/xxx", "/xxx", FNM_PATHNAME) == 0); in ATF_TC_BODY()
127 ATF_CHECK(fnmatch("x/*.y", "x/z.y", FNM_PATHNAME) == 0); in ATF_TC_BODY()
141 ATF_CHECK(fnmatch("x?y", "x.y", FNM_PATHNAME | FNM_PERIOD) == 0); in ATF_TC_BODY()
142 ATF_CHECK(fnmatch("x*y", "x.y", FNM_PATHNAME | FNM_PERIOD) == 0); in ATF_TC_BODY()
143 ATF_CHECK(fnmatch("*.c", "x.c", FNM_PATHNAME | FNM_PERIOD) == 0); in ATF_TC_BODY()
144 ATF_CHECK(fnmatch("*/?", "x/y", FNM_PATHNAME | FNM_PERIOD) == 0); in ATF_TC_BODY()
145 ATF_CHECK(fnmatch("*/*", "x/y", FNM_PATHNAME | FNM_PERIOD) == 0); in ATF_TC_BODY()
[all …]
/freebsd/sys/libkern/
H A Dfnmatch.c69 if (*string == '/' && (flags & FNM_PATHNAME)) in fnmatch()
73 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch()
85 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch()
90 if (flags & FNM_PATHNAME) in fnmatch()
96 else if (c == '/' && flags & FNM_PATHNAME) { in fnmatch()
106 if (test == '/' && flags & FNM_PATHNAME) in fnmatch()
114 if (*string == '/' && (flags & FNM_PATHNAME)) in fnmatch()
118 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch()
188 if (c == '/' && (flags & FNM_PATHNAME)) in rangematch()
/freebsd/crypto/heimdal/lib/roken/
H A Dfnmatch.c74 if (*string == '/' && (flags & FNM_PATHNAME)) in rk_fnmatch()
78 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in rk_fnmatch()
90 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in rk_fnmatch()
95 if (flags & FNM_PATHNAME) in rk_fnmatch()
100 else if (c == '/' && flags & FNM_PATHNAME) { in rk_fnmatch()
110 if (test == '/' && flags & FNM_PATHNAME) in rk_fnmatch()
118 if (*string == '/' && flags & FNM_PATHNAME) in rk_fnmatch()
H A Dfnmatch.hin54 #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */
/freebsd/lib/libc/gen/
H A Dfnmatch.c115 if (sc == '/' && (flags & FNM_PATHNAME)) in fnmatch1()
119 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch1()
131 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch1()
136 if (flags & FNM_PATHNAME) in fnmatch1()
142 else if (c == '/' && flags & FNM_PATHNAME) { in fnmatch1()
160 if (sc == '/' && (flags & FNM_PATHNAME)) in fnmatch1()
164 ((flags & FNM_PATHNAME) && *(string - 1) == '/'))) in fnmatch1()
218 if (sc == '/' && flags & FNM_PATHNAME) in fnmatch1()
267 } else if (*pattern == '/' && (flags & FNM_PATHNAME)) { in rangematch()
/freebsd/include/
H A Dfnmatch.h40 #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ macro
51 #define FNM_FILE_NAME FNM_PATHNAME
/freebsd/crypto/openssh/openbsd-compat/
H A Dfnmatch.h52 #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ macro
58 #define FNM_FILE_NAME FNM_PATHNAME
H A Dfnmatch.c154 const int slash = !!(flags & FNM_PATHNAME); in fnmatch_ch()
293 const int slash = !!(flags & FNM_PATHNAME); in fnmatch()
/freebsd/contrib/mtree/
H A Dexcludes.c110 #define MATCH(g, n) (fnmatch((g), (n), FNM_PATHNAME) == 0) in check_excludes()
H A Dverify.c128 !fnmatch(ep->name, p->fts_name, FNM_PATHNAME)) || in vwalk()
/freebsd/sys/sys/
H A Dlibkern.h330 #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ macro
335 #define FNM_FILE_NAME FNM_PATHNAME
/freebsd/contrib/diff/lib/
H A Dexclude.c69 & (FNM_PATHNAME | FNM_NOESCAPE | FNM_PERIOD | FNM_LEADING_DIR
/freebsd/usr.bin/diff/
H A Ddiffdir.c302 if (fnmatch(excl->pattern, dp->d_name, FNM_PATHNAME) == 0) in selectfile()
/freebsd/contrib/openbsm/bin/auditreduce/
H A Dauditreduce.c509 if (fnmatch(p_zone, zone, FNM_PATHNAME) != 0) in select_zone()
/freebsd/sys/fs/devfs/
H A Ddevfs_rule.c597 match = fnmatch(dr->dr_pathptrn, pname, FNM_PATHNAME) == 0; in devfs_rule_matchpath()
/freebsd/usr.sbin/newsyslog/
H A Dnewsyslog.c1007 fnres = fnmatch(ent->log, *given, FNM_PATHNAME); in get_worklist()