Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 11 of 11) 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/libc/kernel/uapi/linux/netfilter/
Dxt_string.h32 char pattern[XT_STRING_MAX_PATTERN_SIZE]; member
/bionic/tests/
Dglob_test.cpp234 static void CheckGlob(const char* pattern, const std::vector<std::string>& expected_matches) { in CheckGlob() argument
239 ASSERT_EQ(expected_result, glob(pattern, GLOB_ALTDIRFUNC, nullptr, &g)) << pattern; in CheckGlob()
/bionic/libc/kernel/tools/
Dupdate_all.py90 pattern = re.compile(r'^\s*#\s*define\s*__NR_([a-z_]\S+)')
99 m = re.search(pattern, line)
/bionic/libc/kernel/uapi/linux/
Dscc.h138 unsigned char pattern; member
Didxd.h177 uint64_t pattern; member
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregcomp.c272 const char * __restrict pattern, in regcomp_internal() argument
288 _DIAGASSERT(pattern != NULL); in regcomp_internal()
295 if (preg->re_endp < pattern) in regcomp_internal()
297 len = preg->re_endp - pattern; in regcomp_internal()
299 len = strlen(pattern); in regcomp_internal()
331 p->next = pattern; /* convenience; we do not modify it */ in regcomp_internal()
430 const char * __restrict pattern, in regcomp() argument
434 return (regcomp_internal(preg, pattern, cflags, 0)); in regcomp()
/bionic/docs/
Dclang_fortify_anatomy.md274 no optimizations are required to detect a broken code pattern. To be specific,