Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 10 of 10) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/gen/
Dfnmatch.c99 classmatch(const char *pattern, char test, int foldcase, const char **ep) in classmatch() argument
101 const char * const mismatch = pattern; in classmatch()
107 if (pattern[0] != '[' || pattern[1] != ':') { in classmatch()
111 pattern += 2; in classmatch()
113 if ((colon = strchr(pattern, ':')) == NULL || colon[1] != ']') { in classmatch()
118 len = (size_t)(colon - pattern); in classmatch()
120 if (foldcase && strncmp(pattern, "upper:]", 7) == 0) in classmatch()
121 pattern = "lower:]"; in classmatch()
123 if (!strncmp(pattern, cc->name, len) && cc->name[len] == '\0') { in classmatch()
144 static int fnmatch_ch(const char **pattern, const char **string, int flags) in fnmatch_ch() argument
[all …]
/bionic/libc/upstream-freebsd/lib/libc/gen/
Dglob.c187 glob(const char * __restrict pattern, int flags, in glob() argument
198 patnext = pattern; in glob()
222 return (err_nomatch(pglob, &limit, pattern)); in glob()
244 return (err_nomatch(pglob, &limit, pattern)); in glob()
254 return (err_nomatch(pglob, &limit, pattern)); in glob()
258 return (globexp0(patbuf, pglob, &limit, pattern)); in glob()
260 return (glob0(patbuf, pglob, &limit, pattern)); in glob()
264 globexp0(const Char *pattern, glob_t *pglob, struct glob_limit *limit, in globexp0() argument
270 if (pattern[0] == LBRACE && pattern[1] == RBRACE && pattern[2] == EOS) { in globexp0()
276 return (glob0(pattern, pglob, limit, origpat)); in globexp0()
[all …]
/bionic/libc/malloc_debug/
DREADME_marshmallow_and_earlier.md67 pattern (0xeb). This does not happen for the calloc calls.
68 Whenever an allocation is freed, write a known pattern over the data (0xef).
79 a front guard). This buffer is filled with the pattern (0xaa). In addition,
81 as a rear guard). This buffer is filled with the pattern (0xbb).
94 on the list is removed and verified that it still contains the pattern 0xef.
DREADME.md50 On first allocation, this front guard is written with a specific pattern (0xaa).
76 On first allocation, this rear guard is written with a specific pattern (0xbb).
/bionic/tests/
Dglob_test.cpp211 static void CheckGlob(const char* pattern, const std::vector<std::string>& expected_matches) { in CheckGlob() argument
216 ASSERT_EQ(expected_result, glob(pattern, GLOB_ALTDIRFUNC, nullptr, &g)) << pattern; in CheckGlob()
/bionic/libc/kernel/tools/
Dupdate_all.py84 pattern = re.compile(r'^\s*#\s*define\s*__NR_([a-z_]\S+)')
94 m = re.search(pattern, line)
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_string.h32 char pattern[XT_STRING_MAX_PATTERN_SIZE]; member
/bionic/libc/kernel/uapi/linux/
Dscc.h138 unsigned char pattern; member
Didxd.h99 uint64_t pattern; member
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregcomp.c236 const char *pattern, in regcomp() argument
251 _DIAGASSERT(pattern != NULL); in regcomp()
258 if (preg->re_endp < pattern) in regcomp()
260 len = preg->re_endp - pattern; in regcomp()
262 len = strlen(pattern); in regcomp()
278 p->next = pattern; in regcomp()