/freebsd/lib/libc/tests/gen/ |
H A D | fnmatch_testcases.h | 146 { "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 D | fnmatch_test.c | 41 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 D | t_fnmatch.c | 122 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 D | fnmatch.c | 69 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 D | fnmatch.c | 74 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 D | fnmatch.hin | 54 #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */
|
/freebsd/lib/libc/gen/ |
H A D | fnmatch.c | 115 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 D | fnmatch.h | 40 #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 D | fnmatch.h | 52 #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ macro 58 #define FNM_FILE_NAME FNM_PATHNAME
|
H A D | fnmatch.c | 154 const int slash = !!(flags & FNM_PATHNAME); in fnmatch_ch() 293 const int slash = !!(flags & FNM_PATHNAME); in fnmatch()
|
/freebsd/contrib/mtree/ |
H A D | excludes.c | 110 #define MATCH(g, n) (fnmatch((g), (n), FNM_PATHNAME) == 0) in check_excludes()
|
H A D | verify.c | 128 !fnmatch(ep->name, p->fts_name, FNM_PATHNAME)) || in vwalk()
|
/freebsd/sys/sys/ |
H A D | libkern.h | 330 #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ macro 335 #define FNM_FILE_NAME FNM_PATHNAME
|
/freebsd/contrib/diff/lib/ |
H A D | exclude.c | 69 & (FNM_PATHNAME | FNM_NOESCAPE | FNM_PERIOD | FNM_LEADING_DIR
|
/freebsd/usr.bin/diff/ |
H A D | diffdir.c | 302 if (fnmatch(excl->pattern, dp->d_name, FNM_PATHNAME) == 0) in selectfile()
|
/freebsd/contrib/openbsm/bin/auditreduce/ |
H A D | auditreduce.c | 509 if (fnmatch(p_zone, zone, FNM_PATHNAME) != 0) in select_zone()
|
/freebsd/sys/fs/devfs/ |
H A D | devfs_rule.c | 597 match = fnmatch(dr->dr_pathptrn, pname, FNM_PATHNAME) == 0; in devfs_rule_matchpath()
|
/freebsd/usr.sbin/newsyslog/ |
H A D | newsyslog.c | 1007 fnres = fnmatch(ent->log, *given, FNM_PATHNAME); in get_worklist()
|