Home
last modified time | relevance | path

Searched refs:patlen (Results 1 – 25 of 27) sorted by relevance

12

/third_party/ltp/testcases/kernel/fs/doio/
Dpattern.c40 int pattern_check(char *buf, int buflen, char *pat, int patlen, int patshift) in pattern_check() argument
45 if (patlen) in pattern_check()
46 patshift = patshift % patlen; in pattern_check()
58 nb = patlen - patshift; in pattern_check()
101 int pattern_fill(char *buf, int buflen, char *pat, int patlen, int patshift) in pattern_fill() argument
106 if (patlen) in pattern_fill()
107 patshift = patshift % patlen; in pattern_fill()
119 trans = patlen - patshift; in pattern_fill()
/third_party/iptables/extensions/
Dlibxt_string.c85 info->patlen = strnlen(s, XT_STRING_MAX_PATTERN_SIZE); in parse_string()
167 info->patlen = sindex; in parse_hex_string()
262 if (is_hex_string(info->pattern, info->patlen)) { in string_print()
264 print_hex_string(info->pattern, info->patlen); in string_print()
267 print_string(info->pattern, info->patlen); in string_print()
286 if (is_hex_string(info->pattern, info->patlen)) { in string_save()
288 print_hex_string(info->pattern, info->patlen); in string_save()
291 print_string(info->pattern, info->patlen); in string_save()
/third_party/toybox/toys/other/
Dstat.c51 int patlen;
58 sprintf(toybuf, "%.*sll%c", TT.patlen, TT.pattern, c); in out()
65 sprintf(toybuf, "%.*ss", TT.patlen, TT.pattern); in strout()
218 TT.patlen = f-TT.pattern; in stat_main()
219 if (!*f || TT.patlen>99) error_exit("bad %s", TT.pattern); in stat_main()
/third_party/nghttp2/src/
Dhttp2.cc1076 const char *pat, size_t patlen) { in check_link_param_empty() argument
1077 if (first + patlen <= last) { in check_link_param_empty()
1078 if (std::equal(pat, pat + patlen, first, util::CaseCmp())) { in check_link_param_empty()
1081 if (first + patlen + 2 <= last) { in check_link_param_empty()
1082 if (*(first + patlen) != '"' || *(first + patlen + 1) != '"') { in check_link_param_empty()
1099 const char *pat, size_t patlen) { in check_link_param_without_value() argument
1100 if (first + patlen > last) { in check_link_param_without_value()
1104 if (first + patlen == last) { in check_link_param_without_value()
1105 return std::equal(pat, pat + patlen, first, util::CaseCmp()); in check_link_param_without_value()
1108 switch (*(first + patlen)) { in check_link_param_without_value()
[all …]
Dshrpx_router.h96 void add_node(RNode *node, const char *pattern, size_t patlen, ssize_t index,
Dshrpx_router.cc66 void Router::add_node(RNode *node, const char *pattern, size_t patlen, in add_node() argument
68 auto pat = make_string_ref(balloc_, StringRef{pattern, patlen}); in add_node()
/third_party/pcre2/pcre2/src/
Dpcre2posix.c299 PCRE2_SIZE patlen; in pcre2_regcomp() local
304 patlen = ((cflags & REG_PEND) != 0)? (PCRE2_SIZE)(preg->re_endp - pattern) : in pcre2_regcomp()
316 preg->re_pcre2_code = pcre2_compile((PCRE2_SPTR)pattern, patlen, options, in pcre2_regcomp()
Dpcre2grep.c686 add_pattern(char *s, PCRE2_SIZE patlen, patstr *after) in add_pattern() argument
694 if (patlen > MAXPATLEN) in add_pattern()
703 p->length = patlen; in add_pattern()
3671 PCRE2_SIZE patlen, erroffset; in compile_pattern() local
3676 patlen = p->length; in compile_pattern()
3681 char *eop = ps + patlen; in compile_pattern()
3686 patlen = pe - ps - ellength; in compile_pattern()
3687 if (add_pattern(pe, p->length-patlen-ellength, p) == NULL) return FALSE; in compile_pattern()
3691 p->compiled = pcre2_compile((PCRE2_SPTR)ps, patlen, options, &errcode, in compile_pattern()
3708 if (erroffset > patlen) erroffset = patlen; in compile_pattern()
[all …]
Dpcre2_compile.c9670 pcre2_compile(PCRE2_SPTR pattern, PCRE2_SIZE patlen, uint32_t options, in pcre2_compile() argument
9766 if ((zero_terminated = (patlen == PCRE2_ZERO_TERMINATED))) in pcre2_compile()
9767 patlen = PRIV(strlen)(pattern); in pcre2_compile()
9769 if (patlen > ccontext->max_pattern_length) in pcre2_compile()
9792 cb.end_pattern = pattern + patlen; in pcre2_compile()
9843 if (zero_terminated) VALGRIND_MAKE_MEM_NOACCESS(pattern + patlen, CU2BYTES(1)); in pcre2_compile()
9851 while (patlen - skipatstart >= 2 && in pcre2_compile()
9860 if (patlen - skipatstart - 2 >= p->length && in pcre2_compile()
9948 (errorcode = PRIV(valid_utf)(pattern, patlen, erroroffset)) != 0) in pcre2_compile()
10040 parsed_size_needed = patlen - skipatstart + big32count; in pcre2_compile()
[all …]
Dpcre2test.c5138 PCRE2_SIZE patlen; in process_pattern() local
5184 patlen = p - buffer - 2; in process_pattern()
5306 patlen = pt - pbuffer8; in process_pattern()
5387 patlen = pt - pbuffer8; in process_pattern()
5397 strncpy((char *)pbuffer8, (char *)(buffer+1), patlen + 1); in process_pattern()
5526 preg.re_endp = (char *)pbuffer8 + patlen; in process_pattern()
5622 if (test_mode == PCRE16_MODE) errorcode = to16(pbuffer8, utf, &patlen); in process_pattern()
5626 if (test_mode == PCRE32_MODE) errorcode = to32(pbuffer8, utf, &patlen); in process_pattern()
5706 PCRE2_PATTERN_CONVERT(rc, pbuffer, patlen, convert_options, in process_pattern()
5722 patlen = converted_length; in process_pattern()
[all …]
/third_party/iptables/include/linux/netfilter/
Dxt_string.h19 __u8 patlen; member
/third_party/mksh/
Dedit.c798 size_t pathlen, patlen, oldsize, newsize, i, j; in glob_path() local
801 patlen = strlen(pat); in glob_path()
802 checkoktoadd(patlen, 129 + X_EXTRA); in glob_path()
803 ++patlen; in glob_path()
804 Xinit(xs, xp, patlen + 128, ATEMP); in glob_path()
827 XcheckN(xs, xp, patlen); in glob_path()
828 memcpy(xp, pat, patlen); in glob_path()
2012 size_t patlen = strlen(pat); in x_search() local
2015 --patlen; in x_search()
2022 x_goto(xbuf + i + patlen); in x_search()
/third_party/re2/re2/testing/
Dre2_test.cc366 size_t patlen = strlen(pattern); in TestRecursion() local
368 domain[i] = pattern[i % patlen]; in TestRecursion()
/third_party/toybox/generated/
Dglobals.h392 int patlen; member
/third_party/icu/icu4c/source/test/cintltst/
Dcdattst.c1892 … int32_t patlen = udatpg_getBestPattern(dtpgen, testSkeleton, -1, pattern, kUbufMax, &status); in TestForceGannenNumbering() local
1896 …eFormat *testFmt = udat_open(UDAT_PATTERN, UDAT_PATTERN, locID, NULL, 0, pattern, patlen, &status); in TestForceGannenNumbering()
/third_party/skia/third_party/externals/microhttpd/
Dltmain.sh4790 size_t len, patlen;
4796 patlen = strlen (pat);
4798 if (patlen <= len)
4800 str += len - patlen;
/third_party/eudev/
Dltmain.sh6216 size_t len, patlen;
6222 patlen = strlen (pat);
6224 if (patlen <= len)
6226 str += len - patlen;
/third_party/gettext/build-aux/
Dltmain.sh6168 size_t len, patlen;
6174 patlen = strlen (pat);
6176 if (patlen <= len)
6178 str += len - patlen;
/third_party/freetype/builds/unix/
Dltmain.sh6168 size_t len, patlen;
6174 patlen = strlen (pat);
6176 if (patlen <= len)
6178 str += len - patlen;
/third_party/libevdev/build-aux/
Dltmain.sh6168 size_t len, patlen;
6174 patlen = strlen (pat);
6176 if (patlen <= len)
6178 str += len - patlen;
/third_party/node/deps/cares/
Dltmain.sh6260 size_t len, patlen;
6266 patlen = strlen (pat);
6268 if (patlen <= len)
6270 str += len - patlen;
/third_party/mtdev/config-aux/
Dltmain.sh6383 size_t len, patlen;
6389 patlen = strlen (pat);
6391 if (patlen <= len)
6393 str += len - patlen;
/third_party/e2fsprogs/config/
Dltmain.sh6260 size_t len, patlen;
6266 patlen = strlen (pat);
6268 if (patlen <= len)
6270 str += len - patlen;
/third_party/libffi/
Dltmain.sh6168 size_t len, patlen;
6174 patlen = strlen (pat);
6176 if (patlen <= len)
6178 str += len - patlen;
/third_party/skia/third_party/externals/libpng/
Dltmain.sh6168 size_t len, patlen;
6174 patlen = strlen (pat);
6176 if (patlen <= len)
6178 str += len - patlen;

12