/busybox-1.35.0/shell/ |
D | match.c | 30 char* FAST_FUNC scan_and_match(char *string, const char *pattern, unsigned flags) in scan_and_match() argument 44 early_exit = (flags == (SCAN_MOVE_FROM_LEFT + SCAN_MATCH_RIGHT_HALF) && pattern[0] == '*'); in scan_and_match() 57 const char *p = pattern + strlen(pattern); in scan_and_match() 58 if (--p >= pattern && *p == '*') { in scan_and_match() 60 while (--p >= pattern && *p == '\\') in scan_and_match() 72 r = fnmatch(pattern, string, 0); in scan_and_match() 76 r = fnmatch(pattern, loc, 0); in scan_and_match() 102 char *pattern; in main() local 131 pattern = op + 1; in main() 133 pattern++; in main() [all …]
|
D | match.h | 17 char* FAST_FUNC scan_and_match(char *string, const char *pattern, unsigned flags);
|
D | hush.c | 3304 static int glob_brace(char *pattern, o_string *o, int n) in glob_brace() argument 3313 debug_printf_glob("glob_brace('%s')\n", pattern); in glob_brace() 3315 begin = pattern; in glob_brace() 3357 new_pattern_buf = xmalloc(strlen(pattern)); in glob_brace() 3372 pattern, begin - pattern), in glob_brace() 3396 gr = glob(pattern, 0, NULL, &globdata); in glob_brace() 3397 debug_printf_glob("glob('%s'):%d\n", pattern, gr); in glob_brace() 3402 unbackslash(pattern); in glob_brace() 3403 o_addstr_with_NUL(o, pattern); in glob_brace() 3404 debug_printf_glob("glob pattern '%s' is literal\n", pattern); in glob_brace() [all …]
|
D | ash.c | 249 # error The bug is: for "$PWD"/<pattern> ash will escape e.g. dashes in "$PWD" 252 # error fails to match dirname, subsequently not expanding <pattern> in it. 938 union node *pattern; member 5070 cmdtxt(np->nclist.pattern); in cmdtxt() 6371 preglob(const char *pattern, int flag) in preglob() argument 6373 return rmescapes((char *)pattern, flag | RMESCAPE_GLOB, NULL); in preglob() 6914 char *pattern, int quotes, int zero) in scanleft() argument 6930 match = pmatch(pattern, s); in scanleft() 6945 char *pattern, int quotes, int match_at_start) in scanright() argument 6965 for (loc = pattern - 1, loc2 = rmescend; loc >= startp; loc2--) { in scanright() [all …]
|
/busybox-1.35.0/modutils/ |
D | modinfo.c | 49 static void display(const char *data, const char *pattern) in display() argument 54 int n = printf("%s:", pattern); in display() 86 const char *pattern; in modinfo() local 91 pattern = field; in modinfo() 93 pattern = shortcuts[j-2]; in modinfo() 95 if (strcmp(pattern, shortcuts[0]) == 0) { in modinfo() 105 ptr = memchr(ptr, *pattern, len - (ptr - (char*)the_module)); in modinfo() 108 after_pattern = is_prefixed_with(ptr, pattern); in modinfo() 113 display(ptr, pattern); in modinfo()
|
/busybox-1.35.0/findutils/ |
D | grep.c | 231 char *pattern; member 343 ? strcasestr(str, gl->pattern) in grep_file() 344 : strstr(str, gl->pattern) in grep_file() 350 if (str[strlen(gl->pattern)] != '\0') in grep_file() 356 c = match[strlen(gl->pattern)]; in grep_file() 378 xregcomp(&gl->compiled_regex, gl->pattern, reflags); in grep_file() 382 if (re_compile_pattern(gl->pattern, strlen(gl->pattern), &gl->compiled_regex)) in grep_file() 383 bb_error_msg_and_die("bad regex '%s'", gl->pattern); in grep_file() 527 print_line(gl->pattern, strlen(gl->pattern), linenum, ':'); in grep_file() 615 static char *add_grep_list_data(char *pattern, int flg_used_mem) in add_grep_list_data() argument [all …]
|
D | find.c | 446 ACTS(name, const char *pattern; bool iname;) 447 IF_FEATURE_FIND_PATH( ACTS(path, const char *pattern; bool ipath;)) 616 r = fnmatch(ap->pattern, tmp, (ap->iname ? FNM_CASEFOLD : 0)); in ACTF() 620 r = fnmatch(ap->pattern, tmp, 0); in ACTF() 630 return fnmatch(ap->pattern, fileName, (ap->ipath ? FNM_CASEFOLD : 0)) == 0; in ACTF() 634 return fnmatch(ap->pattern, fileName, 0) == 0; in ACTF() 1427 ap->pattern = arg1; in parse_params() 1435 ap->pattern = arg1; in parse_params()
|
/busybox-1.35.0/libbb/ |
D | platform.c | 118 char* FAST_FUNC strcasestr(const char *s, const char *pattern) in strcasestr() argument 120 int length = strlen(pattern); in strcasestr() 123 if (strncasecmp(s, pattern, length) == 0) in strcasestr()
|
/busybox-1.35.0/scripts/kconfig/ |
D | lkc_proto.h | 22 P(sym_re_search,struct symbol **,(const char *pattern));
|
D | symbol.c | 721 struct symbol **sym_re_search(const char *pattern) in sym_re_search() argument 729 if (strlen(pattern) == 0) in sym_re_search() 731 if (regcomp(&re, pattern, REG_EXTENDED|REG_NOSUB|REG_ICASE)) in sym_re_search()
|
D | lex.zconf.c_shipped | 667 /* Done after the current pattern has been matched and before the
|
/busybox-1.35.0/miscutils/ |
D | less.c | 229 regex_t pattern; member 272 #define pattern (G.pattern ) macro 851 match_status = regexec(&pattern, line, 1, &match_structs, eflags); in print_found() 1344 if (regexec(&pattern, flines[pos], 0, NULL, 0) == 0 in fill_match_lines() 1365 regfree(&pattern); in regex_process() 1380 err = regcomp_or_errmsg(&pattern, uncomp_regex, in regex_process()
|
/busybox-1.35.0/networking/ |
D | ping.c | 429 uint8_t pattern; member 564 memset(pkt, G.pattern, datalen + ICMP_MINLEN + 4); in sendping4() 587 memset(pkt, G.pattern, datalen + sizeof(struct icmp6_hdr) + 4); in sendping6() 965 G.pattern = xstrtou_range(str_p, 16, 0, 255); in common_ping_main()
|
/busybox-1.35.0/include/ |
D | platform.h | 607 extern char *strcasestr(const char *s, const char *pattern) FAST_FUNC;
|
/busybox-1.35.0/archival/ |
D | dpkg.c | 1345 static void list_packages(const char *pattern) in list_packages() argument 1366 if (pattern && fnmatch(pattern, name_str, 0) != 0) in list_packages()
|
/busybox-1.35.0/docs/ |
D | Serial-Programming-HOWTO.txt | 329 The bit pattern of flags refer to the following control lines:
|
/busybox-1.35.0/editors/ |
D | awk.c | 2207 static int ptest(node *pattern) in ptest() argument 2213 return istrue(evaluate(pattern, &G.ptest__tmpvar)); in ptest()
|