Home
last modified time | relevance | path

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

12

/external/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()
/external/iw/
Dcoalesce.c25 size_t patlen; in handle_coalesce_enable() local
118 if (parse_hex_mask(value2, &pat, &patlen, &mask)) in handle_coalesce_enable()
123 DIV_ROUND_UP(patlen, 8), mask); in handle_coalesce_enable()
124 NLA_PUT(msg, NL80211_PKTPAT_PATTERN, patlen, pat); in handle_coalesce_enable()
238 int i, patlen, masklen, pkt_offset; in print_coalesce_handler() local
251 patlen = nla_len(patattr[NL80211_PKTPAT_PATTERN]); in print_coalesce_handler()
253 if (DIV_ROUND_UP(patlen, 8) != masklen) { in print_coalesce_handler()
261 for (i = 0; i < patlen; i++) { in print_coalesce_handler()
266 if (i != patlen - 1) in print_coalesce_handler()
Dwowlan.c100 size_t patlen; in wowlan_parse_tcp_file() local
102 if (parse_hex_mask(buf + 5, &pat, &patlen, &mask)) in wowlan_parse_tcp_file()
105 DIV_ROUND_UP(patlen, 8), mask); in wowlan_parse_tcp_file()
107 patlen, pat); in wowlan_parse_tcp_file()
212 size_t patlen; in handle_wowlan_enable() local
285 if (parse_hex_mask(value2, &pat, &patlen, &mask)) { in handle_wowlan_enable()
292 DIV_ROUND_UP(patlen, 8), mask); in handle_wowlan_enable()
293 NLA_PUT(patterns, NL80211_PKTPAT_PATTERN, patlen, pat); in handle_wowlan_enable()
433 int i, patlen, masklen; in print_wowlan_handler() local
443 patlen = nla_len(patattr[NL80211_PKTPAT_PATTERN]); in print_wowlan_handler()
[all …]
/external/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()
/external/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()
202 TT.patlen = f-TT.pattern; in stat_main()
203 if (!*f || TT.patlen>99) error_exit("bad %s", TT.pattern); in stat_main()
/external/one-true-awk/
Db.c77 int patlen; variable
567 patlen = -1; in pmatch()
572 patlen = q-p; in pmatch()
582 if (patlen >= 0) { in pmatch()
591 patlen = q-p-1; /* don't count $ */ in pmatch()
592 if (patlen >= 0) { in pmatch()
612 patlen = -1; in nematch()
617 patlen = q-p; in nematch()
624 if (patlen > 0) { in nematch()
632 patlen = q-p-1; /* don't count $ */ in nematch()
[all …]
Drun.c603 if (patlen < 0) in matchop()
606 setfval(rlengthloc, (Awkfloat) patlen); in matchop()
1305 s = patbeg + patlen; in split()
1306 if (*(patbeg+patlen-1) == '\0' || *s == '\0') { in split()
1915 adjbuf(&buf, &bufsz, 1+patlen+pb-buf, recsize, &pb, "sub"); in sub()
1916 for (q = patbeg; q < patbeg+patlen; ) in sub()
1924 sptr = patbeg + patlen; in sub()
1925 if ((patlen == 0 && *patbeg) || (patlen && *(sptr-1))) { in sub()
1971 if (patlen == 0 && *patbeg != '\0') { /* matched empty string */ in gsub()
1981 adjbuf(&buf, &bufsz, 1+patlen+pb-buf, recsize, &pb, "gsub"); in gsub()
[all …]
Dawk.h85 extern int patlen; /* length of pattern matched. set in b.c */
Dlib.c506 dprintf( ("match %s (%d chars)\n", patbeg, patlen) ); in refldbld()
510 rec = patbeg + patlen; in refldbld()
/external/pcre/dist2/src/
Dpcre2posix.c284 PCRE2_SIZE patlen; in pcre2_regcomp() local
289 patlen = ((cflags & REG_PEND) != 0)? (PCRE2_SIZE)(preg->re_endp - pattern) : in pcre2_regcomp()
301 preg->re_pcre2_code = pcre2_compile((PCRE2_SPTR)pattern, patlen, options, in pcre2_regcomp()
Dpcre2grep.c617 add_pattern(char *s, PCRE2_SIZE patlen, patstr *after) in add_pattern() argument
625 if (patlen > MAXPATLEN) in add_pattern()
634 p->length = patlen; in add_pattern()
3484 PCRE2_SIZE patlen, erroffset; in compile_pattern() local
3489 patlen = p->length; in compile_pattern()
3494 char *eop = ps + patlen; in compile_pattern()
3499 patlen = pe - ps - ellength; in compile_pattern()
3500 if (add_pattern(pe, p->length-patlen-ellength, p) == NULL) return FALSE; in compile_pattern()
3504 p->compiled = pcre2_compile((PCRE2_SPTR)ps, patlen, options, &errcode, in compile_pattern()
3521 if (erroffset > patlen) erroffset = patlen; in compile_pattern()
[all …]
Dpcre2_compile.c9426 pcre2_compile(PCRE2_SPTR pattern, PCRE2_SIZE patlen, uint32_t options, in pcre2_compile() argument
9517 if ((zero_terminated = (patlen == PCRE2_ZERO_TERMINATED))) in pcre2_compile()
9518 patlen = PRIV(strlen)(pattern); in pcre2_compile()
9520 if (patlen > ccontext->max_pattern_length) in pcre2_compile()
9543 cb.end_pattern = pattern + patlen; in pcre2_compile()
9594 if (zero_terminated) VALGRIND_MAKE_MEM_NOACCESS(pattern + patlen, CU2BYTES(1)); in pcre2_compile()
9602 while (patlen - skipatstart >= 2 && in pcre2_compile()
9611 if (patlen - skipatstart - 2 >= p->length && in pcre2_compile()
9699 (errorcode = PRIV(valid_utf)(pattern, patlen, erroroffset)) != 0) in pcre2_compile()
9791 parsed_size_needed = patlen - skipatstart + big32count; in pcre2_compile()
[all …]
Dpcre2test.c5074 PCRE2_SIZE patlen; in process_pattern() local
5112 patlen = p - buffer - 2; in process_pattern()
5230 patlen = pt - pbuffer8; in process_pattern()
5311 patlen = pt - pbuffer8; in process_pattern()
5321 strncpy((char *)pbuffer8, (char *)(buffer+1), patlen + 1); in process_pattern()
5439 preg.re_endp = (char *)pbuffer8 + patlen; in process_pattern()
5535 if (test_mode == PCRE16_MODE) errorcode = to16(pbuffer8, utf, &patlen); in process_pattern()
5539 if (test_mode == PCRE32_MODE) errorcode = to32(pbuffer8, utf, &patlen); in process_pattern()
5619 PCRE2_PATTERN_CONVERT(rc, pbuffer, patlen, convert_options, in process_pattern()
5635 patlen = converted_length; in process_pattern()
[all …]
/external/cldr/tools/java/org/unicode/cldr/test/
DFlexibleDateFromCLDR.java197 int i = 0, patlen = pattern.length(); in stripLiterals() local
198 StringBuilder stripped = new StringBuilder(patlen); in stripLiterals()
200 while (i < patlen) { in stripLiterals()
/external/kernel-headers/original/uapi/linux/netfilter/
Dxt_string.h20 __u8 patlen; member
/external/iptables/include/linux/netfilter/
Dxt_string.h19 __u8 patlen; member
/external/mksh/src/
Dedit.c793 size_t pathlen, patlen, oldsize, newsize, i, j; in glob_path() local
796 patlen = strlen(pat); in glob_path()
797 checkoktoadd(patlen, 129 + X_EXTRA); in glob_path()
798 ++patlen; in glob_path()
799 Xinit(xs, xp, patlen + 128, ATEMP); in glob_path()
822 XcheckN(xs, xp, patlen); in glob_path()
823 memcpy(xp, pat, patlen); in glob_path()
/external/toybox/android/linux/generated/
Dglobals.h400 int patlen; member
/external/toybox/android/mac/generated/
Dglobals.h400 int patlen; member
/external/toybox/android/device/generated/
Dglobals.h400 int patlen; member
/external/icu/icu4c/source/test/cintltst/
Dcdattst.c1885 … int32_t patlen = udatpg_getBestPattern(dtpgen, testSkeleton, -1, pattern, kUbufMax, &status); in TestForceGannenNumbering() local
1889 …eFormat *testFmt = udat_open(UDAT_PATTERN, UDAT_PATTERN, locID, NULL, 0, pattern, patlen, &status); in TestForceGannenNumbering()
/external/libogg/
Dltmain.sh3819 size_t len, patlen;
3825 patlen = strlen (pat);
3827 if (patlen <= len)
3829 str += len - patlen;
/external/lmfit/build-aux/
Dltmain.sh4790 size_t len, patlen;
4796 patlen = strlen (pat);
4798 if (patlen <= len)
4800 str += len - patlen;
/external/libnfnetlink/
Dltmain.sh3819 size_t len, patlen;
3825 patlen = strlen (pat);
3827 if (patlen <= len)
3829 str += len - patlen;
/external/libnetfilter_conntrack/build-aux/
Dltmain.sh4790 size_t len, patlen;
4796 patlen = strlen (pat);
4798 if (patlen <= len)
4800 str += len - patlen;

12