Home
last modified time | relevance | path

Searched refs:patlen (Results 1 – 25 of 39) 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()
166 info->patlen = sindex; in parse_hex_string()
261 if (is_hex_string(info->pattern, info->patlen)) { in string_print()
263 print_hex_string(info->pattern, info->patlen); in string_print()
266 print_string(info->pattern, info->patlen); in string_print()
285 if (is_hex_string(info->pattern, info->patlen)) { in string_save()
287 print_hex_string(info->pattern, info->patlen); in string_save()
290 print_string(info->pattern, info->patlen); in string_save()
/external/toybox/toys/other/
Dstat.c50 int patlen;
57 sprintf(toybuf, "%.*sll%c", TT.patlen, TT.pattern, c); in out()
64 sprintf(toybuf, "%.*ss", TT.patlen, TT.pattern); in strout()
201 TT.patlen = f-TT.pattern; in stat_main()
202 if (TT.patlen>99) error_exit("bad %s", TT.pattern); in stat_main()
/external/one-true-awk/
Db.c74 int patlen; variable
503 patlen = -1; in pmatch()
508 patlen = q-p; in pmatch()
515 if (patlen >= 0) { in pmatch()
524 patlen = q-p-1; /* don't count $ */ in pmatch()
525 if (patlen >= 0) { in pmatch()
561 patlen = -1; in nematch()
566 patlen = q-p; in nematch()
573 if (patlen > 0) { in nematch()
581 patlen = q-p-1; /* don't count $ */ in nematch()
[all …]
Drun.c615 if (patlen < 0) in matchop()
618 setfval(rlengthloc, (Awkfloat) patlen); in matchop()
1311 s = patbeg + patlen; in split()
1312 if (*(patbeg+patlen-1) == 0 || *s == 0) { in split()
1862 adjbuf(&buf, &bufsz, 1+patlen+pb-buf, recsize, &pb, "sub"); in sub()
1863 for (q = patbeg; q < patbeg+patlen; ) in sub()
1871 sptr = patbeg + patlen; in sub()
1872 if ((patlen == 0 && *patbeg) || (patlen && *(sptr-1))) { in sub()
1917 if (patlen == 0 && *patbeg != 0) { /* matched empty string */ in gsub()
1927 adjbuf(&buf, &bufsz, 1+patlen+pb-buf, recsize, &pb, "gsub"); in gsub()
[all …]
Dawk.h74 extern int patlen; /* length of pattern matched. set in b.c */
Dlib.c468 dprintf( ("match %s (%d chars)\n", patbeg, patlen) ); in refldbld()
472 rec = patbeg + patlen; in refldbld()
/external/pcre/dist2/src/
Dpcre2posix.c235 PCRE2_SIZE patlen; in regcomp() local
240 patlen = ((cflags & REG_PEND) != 0)? (PCRE2_SIZE)(preg->re_endp - pattern) : in regcomp()
252 preg->re_pcre2_code = pcre2_compile((PCRE2_SPTR)pattern, patlen, options, in regcomp()
Dpcre2grep.c613 add_pattern(char *s, PCRE2_SIZE patlen, patstr *after) in add_pattern() argument
621 if (patlen > MAXPATLEN) in add_pattern()
630 p->length = patlen; in add_pattern()
3444 PCRE2_SIZE patlen, erroffset; in compile_pattern() local
3449 patlen = p->length; in compile_pattern()
3454 char *eop = ps + patlen; in compile_pattern()
3459 patlen = pe - ps - ellength; in compile_pattern()
3460 if (add_pattern(pe, p->length-patlen-ellength, p) == NULL) return FALSE; in compile_pattern()
3464 p->compiled = pcre2_compile((PCRE2_SPTR)ps, patlen, options, &errcode, in compile_pattern()
3481 if (erroffset > patlen) erroffset = patlen; in compile_pattern()
[all …]
Dpcre2_compile.c9114 pcre2_compile(PCRE2_SPTR pattern, PCRE2_SIZE patlen, uint32_t options, in pcre2_compile() argument
9205 if ((zero_terminated = (patlen == PCRE2_ZERO_TERMINATED))) in pcre2_compile()
9206 patlen = PRIV(strlen)(pattern); in pcre2_compile()
9208 if (patlen > ccontext->max_pattern_length) in pcre2_compile()
9231 cb.end_pattern = pattern + patlen; in pcre2_compile()
9282 if (zero_terminated) VALGRIND_MAKE_MEM_NOACCESS(pattern + patlen, CU2BYTES(1)); in pcre2_compile()
9290 while (patlen - skipatstart >= 2 && in pcre2_compile()
9299 if (patlen - skipatstart - 2 >= p->length && in pcre2_compile()
9387 (errorcode = PRIV(valid_utf)(pattern, patlen, erroroffset)) != 0) in pcre2_compile()
9479 parsed_size_needed = patlen - skipatstart + big32count; in pcre2_compile()
[all …]
Dpcre2test.c4968 PCRE2_SIZE patlen; in process_pattern() local
5006 patlen = p - buffer - 2; in process_pattern()
5124 patlen = pt - pbuffer8; in process_pattern()
5205 patlen = pt - pbuffer8; in process_pattern()
5215 strncpy((char *)pbuffer8, (char *)(buffer+1), patlen + 1); in process_pattern()
5333 preg.re_endp = (char *)pbuffer8 + patlen; in process_pattern()
5429 if (test_mode == PCRE16_MODE) errorcode = to16(pbuffer8, utf, &patlen); in process_pattern()
5433 if (test_mode == PCRE32_MODE) errorcode = to32(pbuffer8, utf, &patlen); in process_pattern()
5513 PCRE2_PATTERN_CONVERT(rc, pbuffer, patlen, convert_options, in process_pattern()
5529 patlen = converted_length; in process_pattern()
[all …]
/external/cldr/tools/java/org/unicode/cldr/test/
DFlexibleDateFromCLDR.java196 int i = 0, patlen = pattern.length(); in stripLiterals() local
197 StringBuilder stripped = new StringBuilder(patlen); in stripLiterals()
199 while (i < patlen) { in stripLiterals()
/external/iptables/include/linux/netfilter/
Dxt_string.h19 __u8 patlen; member
/external/kernel-headers/original/uapi/linux/netfilter/
Dxt_string.h20 __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/generated/
Dglobals.h379 int patlen; member
/external/syzkaller/sys/linux/
Dnetfilter.txt658 patlen int8[0:XT_STRING_MAX_PATTERN_SIZE]
/external/libcap-ng/libcap-ng-0.7/
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/
Dltmain.sh3819 size_t len, patlen;
3825 patlen = strlen (pat);
3827 if (patlen <= len)
3829 str += len - patlen;
/external/libxkbcommon/xkbcommon/build-aux/
Dltmain.sh4790 size_t len, patlen;
4796 patlen = strlen (pat);
4798 if (patlen <= len)
4800 str += len - patlen;
/external/libnfnetlink/build-aux/
Dltmain.sh4790 size_t len, patlen;
4796 patlen = strlen (pat);
4798 if (patlen <= len)
4800 str += len - patlen;
/external/speex/
Dltmain.sh4790 size_t len, patlen;
4796 patlen = strlen (pat);
4798 if (patlen <= len)
4800 str += len - patlen;

12