/freebsd-10.2-release/usr.bin/grep/regex/ |
H A D | tre-fastmatch.c | 51 * Clean up if pattern compilation fails. 55 if (fg->pattern) \ 56 xfree(fg->pattern); \ 68 * matching is based on bit pattern not character representations 83 * Converts the wide string pattern to SB/MB string and stores 84 * it in fg->pattern. Sets fg->len to the byte length of the 95 fg->pattern = xmalloc(siz + 1); \ 96 if (fg->pattern == NULL) \ 98 wcstombs(fg->pattern, fg->wpattern, siz); \ 99 fg->pattern[si [all...] |
/freebsd-10.2-release/contrib/libarchive/tar/ |
H A D | subst.c | 75 char *pattern; local 100 pattern = malloc(end_pattern - rule_text); 101 if (pattern == NULL) 103 memcpy(pattern, rule_text + 1, end_pattern - rule_text - 1); 104 pattern[end_pattern - rule_text - 1] = '\0'; 106 if ((r = regcomp(&rule->re, pattern, REG_BASIC)) != 0) { 111 free(pattern);
|
/freebsd-10.2-release/contrib/sendmail/libsm/ |
H A D | debug.c | 240 ** pattern -- a shell-style glob pattern (see sm_match). 241 ** WARNING: the storage for 'pattern' will be owned by 254 sm_debug_addsetting_x(pattern, level) 255 const char *pattern; 260 SM_REQUIRE(pattern != NULL); 263 s->ds_pattern = pattern;
|
/freebsd-10.2-release/contrib/ncurses/menu/ |
H A D | m_item_cur.c | 71 assert(menu->pattern);
|
H A D | m_format.c | 81 if (menu->pattern)
|
H A D | m_item_top.c | 78 assert(menu->pattern);
|
/freebsd-10.2-release/cddl/contrib/opensolaris/lib/libdtrace/mips/ |
H A D | dt_isadep.c | 70 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, const char *pattern) 69 dt_pid_create_glob_offset_probes(struct ps_prochandle *P, dtrace_hdl_t *dtp, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, const char *pattern) argument
|
/freebsd-10.2-release/sys/dev/qlxgb/ |
H A D | qla_ioctl.h | 57 uint32_t pattern; member in struct:qla_wr_flash
|
/freebsd-10.2-release/contrib/ntp/sntp/unity/auto/ |
H A D | generate_module.rb | 22 " -p\"MCH\" sets the output pattern to MCH.", 86 when /^-p(\w+)/ then @pattern = $1 124 @pattern = 'src' if @pattern.nil? 134 #prepare the pattern for use 135 @patterns = PATTERNS[@pattern.downcase] 136 raise "ERROR: The design pattern specified isn't one that I recognize!" if @patterns.nil?
|
/freebsd-10.2-release/crypto/openssh/ |
H A D | sftp-glob.c | 137 remote_glob(struct sftp_conn *conn, const char *pattern, int flags, argument 149 return(glob(pattern, flags | GLOB_ALTDIRFUNC, errfunc, pglob));
|
/freebsd-10.2-release/usr.bin/login/ |
H A D | login_fbtab.c | 124 login_protect(const char *table, char *pattern, int mask, uid_t uid, gid_t gid) argument 130 if (glob(pattern, GLOB_NOSORT, NULL, &gl) != 0)
|
/freebsd-10.2-release/bin/pax/ |
H A D | pat_rep.c | 57 * routines to handle pattern matching, name modification (regular expression 64 static PATTERN *pathead = NULL; /* file pattern match list head */ 65 static PATTERN *pattail = NULL; /* file pattern match list tail */ 125 * allocate space for the node that handles this replacement pattern 209 * add a pattern match to the pattern match list. Pattern matches are used 213 * pattern match list is empty). 215 * 0 if the pattern was added to the list, -1 otherwise 227 paxwarn(1, "Empty pattern string"); 232 * allocate space for the pattern an 492 fn_match(char *pattern, char *string, char **pend) argument 565 range_match(char *pattern, int test) argument [all...] |
/freebsd-10.2-release/gnu/usr.bin/grep/ |
H A D | search.c | 72 /* KWset compiled pattern. For Ecompile and Gcompile, we compile 164 Gcompile (char const *pattern, size_t size) argument 169 char const *motif = pattern; 178 the backref should have been local to each pattern. */ 209 /* In the match_words and match_lines cases, we use a different pattern 215 /* In the whole-word case, we use the pattern: 217 In the whole-line case, we use the pattern: 228 memcpy (n + i, pattern, size); 232 pattern = n; 236 dfacomp (pattern, siz 241 Ecompile(char const *pattern, size_t size) argument 677 Fcompile(char const *pattern, size_t size) argument 1169 Pcompile(char const *pattern, size_t size) argument [all...] |
/freebsd-10.2-release/contrib/libarchive/libarchive/ |
H A D | archive_match.c | 50 struct archive_mstring pattern; member in struct:match 309 archive_match_exclude_pattern(struct archive *_a, const char *pattern) argument 318 if (pattern == NULL || *pattern == '\0') { 319 archive_set_error(&(a->archive), EINVAL, "pattern is empty"); 322 if ((r = add_pattern_mbs(a, &(a->exclusions), pattern)) != ARCHIVE_OK) 328 archive_match_exclude_pattern_w(struct archive *_a, const wchar_t *pattern) argument 337 if (pattern == NULL || *pattern == L'\0') { 338 archive_set_error(&(a->archive), EINVAL, "pattern i 375 archive_match_include_pattern(struct archive *_a, const char *pattern) argument 394 archive_match_include_pattern_w(struct archive *_a, const wchar_t *pattern) argument 526 add_pattern_mbs(struct archive_match *a, struct match_list *list, const char *pattern) argument 546 add_pattern_wcs(struct archive_match *a, struct match_list *list, const wchar_t *pattern) argument [all...] |
/freebsd-10.2-release/sys/dev/nand/ |
H A D | nand_bbt.c | 62 uint32_t pattern; member in struct:bbt_header 154 bbt->hdr->pattern = BBT_SECONDARY_PATTERN; 158 bbt->hdr->pattern = BBT_PRIMARY_PATTERN; 203 if (hdr1.pattern == BBT_PRIMARY_PATTERN) { 211 if ((hdr2.pattern == BBT_SECONDARY_PATTERN) &&
|
/freebsd-10.2-release/cddl/contrib/opensolaris/lib/libdtrace/powerpc/ |
H A D | dt_isadep.c | 161 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, const char *pattern) 174 * pattern. 176 if (strcmp("*", pattern) == 0) { 185 if (gmatch(name, pattern)) 160 dt_pid_create_glob_offset_probes(struct ps_prochandle *P, dtrace_hdl_t *dtp, fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, const char *pattern) argument
|
/freebsd-10.2-release/games/primes/ |
H A D | primes.c | 262 /* initial pattern copy */ 264 memcpy(table, &pattern[factor], pattern_size-factor); 265 /* main block pattern copies */ 268 memcpy(&table[fact_lim], pattern, pattern_size); 270 /* final block pattern copy */ 271 memcpy(&table[fact_lim], pattern, TABSIZE-fact_lim);
|
/freebsd-10.2-release/usr.bin/unzip/ |
H A D | unzip.c | 254 struct pattern { struct 255 STAILQ_ENTRY(pattern) link; 256 char pattern[]; member in struct:pattern 259 STAILQ_HEAD(pattern_list, pattern); 264 * Add an entry to a pattern list 267 add_pattern(struct pattern_list *list, const char *pattern) argument 269 struct pattern *entry; 272 debug("adding pattern '%s'\n", pattern); 273 len = strlen(pattern); [all...] |
/freebsd-10.2-release/contrib/gdb/gdb/ |
H A D | solib.c | 532 void solib_add (char *pattern, int from_tty, struct target_ops 547 solib_add (char *pattern, int from_tty, struct target_ops *target, int readsyms) argument 551 if (pattern) 553 char *re_err = re_comp (pattern); 562 symbols for any that match the pattern --- or any whose symbols 563 aren't already loaded, if no pattern was given. */ 569 if (! pattern || re_exec (gdb->so_name)) 595 if (from_tty && pattern && ! any_matches) 597 ("No loaded shared libraries match the pattern `%s'.\n", pattern); [all...] |
/freebsd-10.2-release/sys/cam/ |
H A D | cam.c | 212 * Compare string with pattern, returning 0 on match. 213 * Short pattern matches trailing blanks in name, 214 * wildcard '*' in pattern matches rest of name, 218 cam_strmatch(const u_int8_t *str, const u_int8_t *pattern, int str_len) argument 221 while (*pattern != '\0'&& str_len > 0) { 223 if (*pattern == '*') { 226 if ((*pattern != *str) 227 && (*pattern != '?' || *str == ' ')) { 230 pattern++;
|
/freebsd-10.2-release/contrib/gcclibs/libiberty/ |
H A D | fnmatch.c | 65 /* Match STRING against the filename pattern PATTERN, returning zero if 68 fnmatch (const char *pattern, const char *string, int flags) argument 70 register const char *p = pattern, *n = string;
|
/freebsd-10.2-release/contrib/binutils/libiberty/ |
H A D | fnmatch.c | 65 /* Match STRING against the filename pattern PATTERN, returning zero if 68 fnmatch (const char *pattern, const char *string, int flags) argument 70 register const char *p = pattern, *n = string;
|
/freebsd-10.2-release/usr.bin/make/ |
H A D | var.c | 359 * Place the word in the buffer if it matches the given pattern. 361 * A space will be added if requested. A pattern is supplied 372 VarMatch(const char *word, Boolean addSpace, Buffer *buf, void *pattern) argument 375 if (Str_Match(word, pattern)) { 387 * Place the word in the buffer if it matches the given pattern. 420 * Place the word in the buffer if it doesn't match the given pattern. 432 VarNoMatch(const char *word, Boolean addSpace, Buffer *buf, void *pattern) argument 435 if (!Str_Match(word, pattern)) { 457 VarPattern *pattern = patternp; local 466 if ((pattern [all...] |
/freebsd-10.2-release/contrib/tcsh/ |
H A D | sh.glob.c | 902 Gmatch(const Char *string, const Char *pattern) argument 904 return Gnmatch(string, pattern, NULL); 908 Gnmatch(const Char *string, const Char *pattern, const Char **endstr) argument 914 if (*pattern == '^') { 916 pattern++; 921 (*fblk)[0] = Strsave(pattern); 956 t_pmatch(const Char *string, const Char *pattern, const Char **estr, int cs) argument 964 patternc = *pattern++ & TRIM; 974 if (!*pattern) { 981 switch(t_pmatch(string, pattern, est [all...] |
/freebsd-10.2-release/contrib/libstdc++/src/ |
H A D | locale_facets.cc | 53 const money_base::pattern
|