Searched refs:pattern (Results 1 - 25 of 201) sorted by relevance

123456789

/freebsd-10.0-release/games/primes/
H A Dpattern.c35 static char sccsid[] = "@(#)pattern.c 8.1 (Berkeley) 5/31/93";
42 * pattern - the Eratosthenes sieve on odd numbers for 3,5,7,11 and 13
57 const char pattern[] = { variable
444 const size_t pattern_size = (sizeof(pattern)/sizeof(pattern[0]));
H A Dprimes.h65 extern const char pattern[];
66 extern const size_t pattern_size; /* length of pattern array */
H A DMakefile5 SRCS= pattern.c pr_tbl.c primes.c
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Dmkerrno.sh37 pattern='^#define[ ]\(E[A-Z0-9]*\)[ ]*\([A-Z0-9]*\).*$'
40 sed -n "s/$pattern/$replace/p" | tr '@' '\n'
H A Dmksignal.sh37 pattern='^#define[ ]*_*\(SIG[A-Z0-9]*\)[ ]\{1,\}\([A-Z0-9]*\).*$'
40 sed -n "s/$pattern/$replace/p;/SIGRTMAX/q" | tr '@' '\n'
H A Dmkerrtags.sh43 pattern='^ \(D_[A-Z0-9_]*\),*'
46 sed -n "s/$pattern/$replace/p" || exit 1
/freebsd-10.0-release/contrib/apr/strings/
H A Dapr_fnmatch.c22 * Filename pattern matches defined in section 2.13, "Pattern Matching Notation"
30 * number of consecutive slashes within pattern and string will NOT match;
49 * state of pattern and string (rewinding pattern and string repeatedly).
71 * Both pattern and string are **char to support pointer increment of arbitrary
74 static APR_INLINE int fnmatch_ch(const char **pattern, const char **string, int flags) argument
76 const char * const mismatch = *pattern;
84 if (**pattern == '[')
86 ++*pattern;
89 negate = ((**pattern
194 apr_fnmatch(const char *pattern, const char *string, int flags) argument
405 apr_fnmatch_test(const char *pattern) argument
[all...]
/freebsd-10.0-release/contrib/apr-util/include/
H A Dapr_strmatch.h41 * Precompiled search pattern
47 const char *pattern; /**< Current pattern */ member in struct:apr_strmatch_pattern
54 * Search for a precompiled pattern within a string
55 * @param pattern The pattern
56 * @param s The string in which to search for the pattern
58 * @return A pointer to the first instance of the pattern in s, or
61 APU_DECLARE(const char *) apr_strmatch(const apr_strmatch_pattern *pattern,
64 #define apr_strmatch(pattern,
[all...]
/freebsd-10.0-release/crypto/heimdal/lib/roken/
H A Dfnmatch.c45 * Compares a filename or pathname to a pattern.
62 rk_fnmatch(const char *pattern, const char *string, int flags) argument
68 switch (c = *pattern++) {
83 c = *pattern;
86 c = *++pattern;
93 /* Optimize for pattern with * at end or before /. */
108 if (!rk_fnmatch(pattern, string, flags & ~FNM_PERIOD))
120 if ((pattern =
121 rangematch(pattern, *string, flags)) == NULL)
127 if ((c = *pattern
142 rangematch(const char *pattern, int test, int flags) argument
[all...]
/freebsd-10.0-release/contrib/apr/include/
H A Dapr_fnmatch.h68 * Try to match the string to the given pattern, return APR_SUCCESS if
70 * an illegal pattern.
72 * With all flags unset, a pattern is interpreted as such:
88 * PATTERN: Any character other than \?*[ or a \ at the end of the pattern<br/>
101 * beginning. The pattern matches a single character if it
109 * just find a substring matching the pattern.
111 * @param pattern The pattern to match to
122 APR_DECLARE(apr_status_t) apr_fnmatch(const char *pattern,
126 * Determine if the given pattern i
[all...]
/freebsd-10.0-release/contrib/apr-util/strmatch/
H A Dapr_strmatch.c41 const char *p_start = this_pattern->pattern;
65 const char *p_start = this_pattern->pattern;
86 apr_strmatch_pattern *pattern; local
90 pattern = apr_palloc(p, sizeof(*pattern));
91 pattern->pattern = s;
92 pattern->length = strlen(s);
93 if (pattern->length == 0) {
94 pattern
[all...]
/freebsd-10.0-release/sys/libkern/
H A Dfnmatch.c38 * Compares a filename or pathname to a pattern.
54 fnmatch(const char *pattern, const char *string, int flags) argument
61 switch (c = *pattern++) {
78 c = *pattern;
81 c = *++pattern;
88 /* Optimize for pattern with * at end or before /. */
104 if (!fnmatch(pattern, string, flags & ~FNM_PERIOD))
121 switch (rangematch(pattern, *string, flags, &newp)) {
125 pattern = newp;
134 if ((c = *pattern
157 rangematch(const char *pattern, char test, int flags, char **newp) argument
[all...]
/freebsd-10.0-release/contrib/bmake/
H A Dstr.c316 * See if a particular string matches a particular pattern.
318 * Results: Non-zero is returned if string matches pattern, 0 otherwise. The
320 * pattern: *?\[] (see the man page for details on what these mean).
327 Str_Match(const char *string, const char *pattern) argument
333 * See if we're at the end of both the pattern and the
335 * pattern but not at the end of the string, we failed.
337 if (*pattern == 0)
339 if (*string == 0 && *pattern != '*')
342 * Check for a "*" as the next pattern character. It matches
347 if (*pattern
435 Str_SYSVMatch(const char *word, const char *pattern, int *len) argument
[all...]
/freebsd-10.0-release/usr.bin/csup/
H A Dfnmatch.c44 * Compares a filename or pathname to a pattern.
58 fnmatch(const char *pattern, const char *string, int flags) argument
64 switch (c = *pattern++) {
81 c = *pattern;
84 c = *++pattern;
91 /* Optimize for pattern with * at end or before /. */
107 if (!fnmatch(pattern, string, flags & ~FNM_PERIOD))
119 if ((pattern =
120 rangematch(pattern, *string, flags)) == NULL)
126 if ((c = *pattern
152 rangematch(const char *pattern, char test, int flags) argument
[all...]
/freebsd-10.0-release/contrib/less/
H A Dpattern.c11 * Routines to do pattern matching.
15 #include "pattern.h"
20 * Compile a search pattern, for future use by match_pattern.
23 compile_pattern2(pattern, search_type, comp_pattern)
24 char *pattern;
37 if (re_compile_pattern(pattern, strlen(pattern), comp))
40 error("Invalid pattern", NULL_PARG);
50 if (regcomp(comp, pattern, REGCOMP_FLAG))
53 error("Invalid pattern", NULL_PAR
[all...]
/freebsd-10.0-release/crypto/openssh/
H A Dmatch.c6 * Simple pattern matching, with '*' and '?' as wildcards.
50 * Returns true if the given string matches the pattern (which may contain ?
55 match_pattern(const char *s, const char *pattern) argument
58 /* If at end of pattern, accept if also at end of string. */
59 if (!*pattern)
62 if (*pattern == '*') {
64 pattern++;
66 /* If at end of pattern, accept immediately. */
67 if (!*pattern)
70 /* If next character in pattern i
120 match_pattern_list(const char *string, const char *pattern, u_int len, int dolower) argument
180 match_hostname(const char *host, const char *pattern, u_int len) argument
215 match_user(const char *user, const char *host, const char *ipaddr, const char *pattern) argument
[all...]
/freebsd-10.0-release/lib/libc/gen/
H A Dfnmatch.c46 * Compares a filename or pathname to a pattern.
79 fnmatch(pattern, string, flags)
80 const char *pattern, *string;
85 return (fnmatch1(pattern, string, string, flags, initial, initial));
89 fnmatch1(pattern, string, stringstart, flags, patmbs, strmbs)
90 const char *pattern, *string, *stringstart;
100 pclen = mbrtowc(&pc, pattern, MB_LEN_MAX, &patmbs);
103 pattern += pclen;
127 c = *pattern;
130 c = *++pattern;
[all...]
/freebsd-10.0-release/contrib/diff/lib/
H A Dexclude.c73 /* An exclude pattern-options pair. The options are fnmatch options
78 char const *pattern; member in struct:patopts
82 /* An exclude list, of pattern-options pairs. */
112 fnmatch_no_wildcards (char const *pattern, char const *f, int options) argument
116 ? strcasecmp (pattern, f)
117 : strcmp (pattern, f));
120 size_t patlen = strlen (pattern);
122 ? strncasecmp (pattern, f, patlen)
123 : strncmp (pattern, f, patlen));
156 char const *pattern local
183 add_exclude(struct exclude *ex, char const *pattern, int options) argument
210 char const *pattern; local
[all...]
/freebsd-10.0-release/usr.bin/make/
H A Dstr.c379 * See if a particular string matches a particular pattern.
381 * Results: Non-zero is returned if string matches pattern, 0 otherwise. The
383 * pattern: *?\[] (see the man page for details on what these mean).
388 Str_Match(const char *string, const char *pattern) argument
394 * See if we're at the end of both the pattern and the
396 * pattern but not at the end of the string, we failed.
398 if (*pattern == 0)
400 if (*string == 0 && *pattern != '*')
403 * Check for a "*" as the next pattern character. It matches
408 if (*pattern
485 Str_SYSVMatch(const char *word, const char *pattern, int *len) argument
[all...]
/freebsd-10.0-release/contrib/apr-util/test/
H A Dteststrmatch.c32 const apr_strmatch_pattern *pattern; local
38 const char *input2 = "string that contains a pattern...";
39 const char *input3 = "pattern at the start of a string";
40 const char *input4 = "string that ends with a pattern";
42 const char *input6 = "patter\200n, negative chars, contains pattern...";
44 pattern = apr_strmatch_precompile(pool, "pattern", 1);
45 ABTS_PTR_NOTNULL(tc, pattern);
47 pattern_nocase = apr_strmatch_precompile(pool, "pattern", 0);
56 match = apr_strmatch(pattern, input
[all...]
/freebsd-10.0-release/contrib/one-true-awk/
H A Dawkgram.y65 %type <p> pas pattern ppattern plist pplist patlist prarg term re
124 FOR '(' opt_simple_stmt ';' opt_nl pattern ';' opt_nl opt_simple_stmt rparen {inloop++;} stmt
138 IF '(' pattern rparen { $$ = notnull($3); }
171 pattern { $$ = notnull($1); }
194 pattern
195 | patlist comma pattern { $$ = linkum($1, $3); }
219 pattern: label
220 var ASGNOP pattern { $$ = op2($2, $1, $3); }
221 | pattern '?' pattern '
[all...]
/freebsd-10.0-release/contrib/binutils/libiberty/
H A Dmkstemps.c58 @deftypefn Replacement int mkstemps (char *@var{pattern}, int @var{suffix_len})
60 Generate a unique temporary file name from @var{pattern}.
61 @var{pattern} has the form:
68 length). The last six characters of @var{pattern} before @var{suffix}
78 mkstemps (char *pattern, int suffix_len) argument
90 len = strlen (pattern);
93 || strncmp (&pattern[len - 6 - suffix_len], "XXXXXX", 6))
98 XXXXXX = &pattern[len - 6 - suffix_len];
126 fd = open (pattern, O_BINARY|O_RDWR|O_CREAT|O_EXCL, 0600);
138 pattern[
[all...]
/freebsd-10.0-release/contrib/gcclibs/libiberty/
H A Dmkstemps.c58 @deftypefn Replacement int mkstemps (char *@var{pattern}, int @var{suffix_len})
60 Generate a unique temporary file name from @var{pattern}.
61 @var{pattern} has the form:
68 length). The last six characters of @var{pattern} before @var{suffix}
78 mkstemps (char *pattern, int suffix_len) argument
90 len = strlen (pattern);
93 || strncmp (&pattern[len - 6 - suffix_len], "XXXXXX", 6))
98 XXXXXX = &pattern[len - 6 - suffix_len];
126 fd = open (pattern, O_BINARY|O_RDWR|O_CREAT|O_EXCL, 0600);
138 pattern[
[all...]
/freebsd-10.0-release/contrib/binutils/bfd/
H A Dmep-relocs.pl58 ($pattern, $sign, $attrs) = $rest =~ m@(.*) ([US]) (.*)\*/@;
59 $pattern =~ s/ //g;
60 push(@pattern, $pattern);
64 printf "%4d $rel p=`$pattern' s=`$sign' a=`$attrs'\n", $#pattern;
127 $mask = $pattern[$i];
150 if (length($pattern[$i]) == 8) {
152 } elsif ($pattern[$i] =~ /-/ || length($pattern[
[all...]
/freebsd-10.0-release/contrib/gdb/gdb/
H A Dxcoffsolib.c62 static void sharedlibrary_command (char *pattern, int from_tty);
99 sharedlibrary_command (char *pattern, int from_tty) argument
107 if (pattern)
109 char *re_err = re_comp (pattern);
116 symbols for any that match the pattern --- or any whose symbols
117 aren't already loaded, if no pattern was given. */
128 if (! pattern
147 if (from_tty && pattern && ! any_matches)
149 ("No loaded shared libraries match the pattern `%s'.\n", pattern);
[all...]

Completed in 290 milliseconds

123456789