Searched defs:pattern (Results 1 - 25 of 91) sorted by relevance

1234

/illumos-gate/usr/src/lib/libast/common/comp/
H A Dre_comp.c42 re_comp(const char* pattern) argument
46 if (!pattern || !*pattern)
59 if (!(r = regcomp(&state.re, pattern, REG_LENIENT|REG_NOSUB|REG_NULL)))
H A Dfnmatch.c53 fnmatch(const char* pattern, const char* subject, register int flags) argument
65 if (!(reflags = regcomp(&re, pattern, reflags)))
73 else if (!(reflags = regcomp(&re, pattern, reflags|REG_RIGHT)))
H A Dregexp.c55 _re_comp(regexp_t* re, const char* pattern, char* handle, unsigned int size) argument
65 n = regcomp(&env->re, pattern, REG_LENIENT|REG_NULL);
H A Dregcmp.c61 regcmp(const char* pattern, ...) argument
77 va_start(ap, pattern);
78 if (!pattern || !*pattern || !(sp = sfstropen()))
85 s = (char*)pattern;
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DAttributePattern.java27 // AttributePattern.java: Models a pattern for attribute matching.
41 * The AttributePattern class models an attribute pattern. It handles
44 * object is a pattern consisting of (maximally) a beginning wildcard and
45 * string pattern. A PatternPart may be lacking the
58 * The PatternPart class models a single component of a pattern.
60 * pattern in the middle. Any of the parts may be missing, but it will
70 String pattern = ""; field in class:AttributePattern.PatternPart
74 pattern = str;
85 // If there's no wildcards, simply insert the string in as the pattern.
119 // Note that there may be a terminal pattern par
[all...]
H A DParser.java98 * @param pattern the operand of the term.
109 Object pattern,
428 if ((char)tok != CPAREN) { // It's a wildcarded pattern...
432 // Need to convert to a wildcarded pattern. Regardless
445 // Check for inappropriate pattern.
107 evaluate(AttributeString tag, char op, Object pattern, boolean invert, ParserRecord returns) argument
/illumos-gate/usr/src/lib/libast/common/regex/
H A Dregerror.c40 /* REG_EESCAPE */ "trailing \\ in pattern",
49 /* REG_ENULL */ "empty subexpr in pattern",
85 fatal(regdisc_t* disc, int code, const char* pattern) argument
89 if (pattern)
90 (*disc->re_errorf)(NiL, disc, disc->re_errorlevel, "regular expression: %s: %s", pattern, reg_error[code+1]); local
H A Dregcache.c33 #define ROUND 64 /* pattern buffer size round */
39 char* pattern; member in struct:Cache_s
75 * return regcomp() compiled re for pattern and reflags
79 regcache(const char* pattern, regflags_t reflags, int* status) argument
90 * 0 pattern flushes the cache and reflags>0 extends cache
93 if (!pattern)
131 * check if the pattern is in the cache
134 for (i = 0; i < sizeof(key) && pattern[i]; i++)
135 ((char*)&key)[i] = pattern[i];
145 else if (*(Key_t*)matchstate.cache[i]->pattern
[all...]
/illumos-gate/usr/src/cmd/awk_xpg4/
H A Dawk.y140 %type <node> prog rule pattern expr rvalue lvalue fexpr varlist varlist2
166 rule: pattern LBRACE statlist RBRACE = {
174 | pattern = {
195 pattern: label
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dinfotocap.c73 lookat looks at a string such as "%p1%d" and a pattern such as "%p*%d",
76 pattern matches the string, 1 is returned.
80 lookat(char *string, char *pattern, char *args) argument
84 while ((pat = *pattern++) && (val = *string++))
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dfnmatch.c41 * Compares a filename or pathname to a pattern.
77 fnmatch(pattern, string, flags)
78 const char *pattern, *string;
84 return (fnmatch1(pattern, string, string, flags, initial, initial,
89 fnmatch1(const char *pattern, const char *string, const char *stringstart, argument
98 pclen = mbrtowc_l(&pc, pattern, MB_LEN_MAX, &patmbs, loc);
101 pattern += pclen;
127 c = *pattern;
130 c = *++pattern;
137 /* Optimize for pattern wit
220 rangematch(const char *pattern, wchar_t test, int flags, char **newp, mbstate_t *patmbs, locale_t loc) argument
[all...]
/illumos-gate/usr/src/cmd/oawk/
H A Dawk.g.y111 pattern BOR pattern { $$ = op2(BOR, $1, $3); }
112 | pattern AND pattern { $$ = op2(AND, $1, $3); }
113 | NOT pattern { $$ = op1(NOT, $2); }
211 pattern { $$ = stat2(PASTAT, $1, genprint()); }
212 | pattern '{' stat_list '}' { $$ = stat2(PASTAT, $1, $3); }
213 | pattern ',' pattern { $$ = pa2stat($1, $3, genprint()); }
214 | pattern ',' patter
227 pattern: label
[all...]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_diag.c134 emlxs_diag_echo_run(emlxs_port_t *port, uint32_t did, uint32_t pattern) argument
209 if (pattern) {
210 /* Fill the transmit buffer with the pattern */
214 *lptr++ = pattern;
217 /* Program the default echo pattern */
278 "did=%06x length=%d pattern=%02x,%02x,%02x,%02x...",
295 emlxs_diag_biu_run(emlxs_hba_t *hba, uint32_t pattern) argument
338 if (pattern) {
339 /* Fill the transmit buffer with the pattern */
343 *lptr++ = pattern;
[all...]
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_match.c54 * Return B_TRUE if pattern contains wildcards
57 smb_contains_wildcards(const char *pattern) argument
60 return (strpbrk(pattern, smb_wildcards) != NULL);
126 * -1 no-match, error (illseq, too many wildcards in pattern, ...)
128 * Note that both the pattern and the string are in multi-byte form.
134 * continue processing the match pattern. The cases for wildcards
136 * recursive calls, looking for a match of the remaining pattern,
143 char pc; /* current pattern char */
184 /* Optimize '*' at end of pattern. */
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_umem.c151 mdb_umem_copy_pattern(uint32_t pattern, void *buf_arg, size_t size) argument
158 buf[3] = buf[2] = buf[1] = buf[0] = pattern;
163 *buf++ = pattern;
/illumos-gate/usr/src/lib/libdtrace/sparc/
H A Ddt_isadep.c302 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, const char *pattern)
315 * pattern.
317 if (strcmp("*", pattern) == 0) {
326 if (gmatch(name, pattern))
301 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
/illumos-gate/usr/src/lib/libcmd/common/
H A Dgetconf.c138 char* pattern; local
163 pattern = 0;
177 pattern = opt_info.arg;
187 pattern = opt_info.arg;
200 pattern = opt_info.arg;
239 astconflist(sfstdout, path, flags, pattern);
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/
H A DExpression.java172 * The general form of this expression is defined in the pattern
198 * The pattern used to recognize this type of expression.
200 private static final Pattern pattern = Pattern.compile( field in class:KVOpExpression
253 Matcher m = pattern.matcher(raw);
371 * The general form of this expression is defined in the pattern
391 * The pattern used to recognize this type of expression.
393 private static final Pattern pattern = Pattern.compile( field in class:KVExpression
429 Matcher m = pattern.matcher(raw);
530 * The general form of this expression is defined in the pattern
544 * The pattern use
546 private static final Pattern pattern = Pattern.compile( field in class:KExpression
[all...]
/illumos-gate/usr/src/cmd/auths/
H A Dauths.c177 auth_match(const char *pattern, const char *auth) argument
179 size_t len = strlen(pattern);
181 if (pattern[len - 1] != KV_WILDCHAR)
184 return (strncmp(pattern, auth, len - 1) == 0);
/illumos-gate/usr/src/cmd/awk/
H A Dawk.g.y76 %type <p> pas pattern ppattern plist pplist patlist prarg term
134 FOR '(' opt_simple_stmt ';' pattern ';' opt_simple_stmt rparen stmt
148 IF '(' pattern rparen { $$ = notnull($3); }
181 pattern { $$ = notnull($1); }
204 pattern
205 | patlist comma pattern { $$ = linkum($1, $3); }
232 pattern: label
233 var ASGNOP pattern { $$ = op2($2, $1, $3); }
234 | pattern '?' pattern '
[all...]
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dmalloc.c75 * When built for debugging, scribble a pattern over newly allocated and
87 scribble(ulong_t *membgn, int pattern, size_t size) argument
92 if (pattern == FREMEM)
93 ASSERT(*membgn != patterns[pattern]);
94 *membgn++ = patterns[pattern];
/illumos-gate/usr/src/tools/cscope-fast/
H A Dcommand.c45 char newpat[PATLEN + 1]; /* new pattern */
46 char pattern[PATLEN + 1]; /* symbol or text pattern */ variable
331 case ctrl('A'): /* repeat last pattern */
333 if (*pattern != '\0') {
334 (void) addstr(pattern);
347 "End of input field and search pattern history");
354 (void) strcpy(pattern, item->text);
399 /* this is the start of a pattern */
403 (void) strcpy(pattern, newpa
[all...]
/illumos-gate/usr/src/lib/libast/common/disc/
H A Dsfdcmore.c49 char pattern[128]; /* match pattern */ member in struct:__anon2611
174 for (r = more->pattern[0];; s++)
180 else if (*s == r && (e - s) >= more->match && !strncmp(s, more->pattern, more->match))
221 if (n >= sizeof(more->pattern))
222 n = sizeof(more->pattern) - 1;
223 memcpy(more->pattern, s, n);
224 more->pattern[n] = 0;
227 if (more->match = strlen(more->pattern))
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dexpand.c92 int path_expand(const char *pattern, struct argnod **arghead) argument
123 extra += scantree(shp->alias_tree,pattern,arghead);
124 extra += scantree(shp->fun_tree,pattern,arghead);
141 * instead of being an augmented shell pattern.
193 if(memcmp(pattern,"~(N",3)==0)
195 glob(pattern, flags, 0, gp);
217 * scan tree and add each name that matches the given pattern
219 static int scantree(Dt_t *tree, const char *pattern, struct argnod **arghead) argument
228 if(strmatch(cp=nv_name(np),pattern))
432 /* generate each pattern an
[all...]
/illumos-gate/usr/src/lib/libdtrace/i386/
H A Ddt_isadep.c351 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, const char *pattern)
384 if (strcmp("*", pattern) == 0) {
400 if (gmatch(name, pattern))
350 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

Completed in 93 milliseconds

1234