/src/games/primes/ |
pattern.c | 1 /* $NetBSD: pattern.c,v 1.8 2021/05/02 12:50:46 rillig Exp $ */ 39 static char sccsid[] = "@(#)pattern.c 8.1 (Berkeley) 5/31/93"; 41 __RCSID("$NetBSD: pattern.c,v 1.8 2021/05/02 12:50:46 rillig Exp $"); 46 * pattern - the Eratosthenes sieve on odd numbers for 3,5,7,11 and 13 55 const char pattern[] = { variable in typeref:typename:const char[] 442 const size_t pattern_size = (sizeof(pattern)/sizeof(pattern[0]));
|
primes.h | 67 extern const char pattern[]; 68 extern const size_t pattern_size; /* length of pattern array */
|
Makefile | 5 SRCS= pattern.c pr_tbl.c primes.c spsp.c
|
/src/games/warp/ |
intrp.c | 191 skipinterp(const char *pattern, const char *stoppers) 194 while (*pattern && (!stoppers || !strchr(stoppers,*pattern))) { 197 printf("skipinterp till %s at %s\r\n",stoppers?stoppers:"",pattern); 199 if (*pattern == '%' && pattern[1]) { 200 switch (*++pattern) { 202 for (pattern++; *pattern && *pattern != '}'; pattern++ [all...] |
/src/sys/lib/libsa/ |
fnmatch.c | 66 fnmatch(const char *fname, const char *pattern) 72 pc = *pattern++; 85 pc = *pattern++; 89 if (fnmatch(++fname, pattern))
|
nullfs.c | 120 null_ls(struct open_file *f, const char *pattern)
|
/src/sys/lib/libkern/ |
pmatch.c | 50 pmatch(const char *string, const char *pattern, const char **estr) 61 switch (patternc = *pattern++) { 71 if (!*pattern) { 81 switch (pmatch(string, pattern, estr)) { 108 if ((negate_range = (*pattern == '^')) != 0) 109 pattern++; 110 while ((rangec = *pattern++) != '\0') { 115 if (rangec == '-' && *(pattern - 2) != '[' && 116 *pattern != ']') { 118 stringc <= (u_char)*pattern & [all...] |
/src/usr.bin/gzip/ |
zgrep | 61 pattern="$2" 89 # pattern to grep for 95 # if no -e option was found, take next argument as grep-pattern 99 pattern="$1" 102 pattern="-" 104 echo "${prg}: missing pattern" >&2 113 ${zcat} -fq - | ${grep} ${grep_args} -- "${pattern}" - 121 ${zcat} -fq -- "$1" | ${grep} --label="${1}" ${grep_args} -- "${pattern}" -
|
/src/lib/libc/gen/ |
fnmatch.c | 46 * Compares a filename or pathname to a pattern. 74 rangematch(const char *pattern, int test, int flags) 79 _DIAGASSERT(pattern != NULL); 88 if ((negate = (*pattern == '!' || *pattern == '^')) != 0) 89 ++pattern; 92 for (ok = 0; (c = FOLDCASE(*pattern++, flags)) != ']' || need;) { 97 c = FOLDCASE(*pattern++, flags); 100 if (*pattern == '-' 101 && (c2 = FOLDCASE(*(pattern + 1), flags)) != EOS & [all...] |
glob.c | 52 * Set in gl_flags if pattern contained a globbing character. 54 * Same as GLOB_NOCHECK, but it will only append pattern if it did 184 glob(const char * __restrict pattern, int flags, int (*errfunc)(const char *, 192 _DIAGASSERT(pattern != NULL); 194 patnext = (const unsigned char *) pattern; 232 * Expand recursively a glob {} pattern. When there is no more expansion 237 globexp1(const Char *pattern, glob_t *pglob, struct glob_limit *limit) 239 const Char* ptr = pattern; 242 _DIAGASSERT(pattern != NULL); 252 if (pattern[0] == LBRACE && pattern[1] == RBRACE && pattern[2] == EOS [all...] |
/src/sys/external/bsd/sljit/dist/regex_src/ |
regexMain.c | 52 void verbose_test(regex_char_t *pattern, regex_char_t *string) 60 ptr = pattern; 64 printf("Start test '%s' matches to '%s'\n", pattern, string); 65 machine = regex_compile(pattern, ptr - pattern, REGEX_MATCH_VERBOSE | REGEX_NEWLINE, &error); 103 const regex_char_t *pattern; /* NULL : use the previous pattern. */ member in struct:test_case 121 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string); 124 if (test->pattern) { [all...] |
/src/tests/lib/libc/string/ |
t_bm.c | 48 const char *pattern; member in struct:__anon2bd77cd70108 77 bm_pat *pattern; local in function:ATF_TC_BODY 80 ATF_CHECK((pattern = bm_comp((const u_char *)testcases[ts].pattern, 81 strlen(testcases[ts].pattern), (const u_char *)testcases[ts].freq))); 84 off = bm_exec(pattern, (u_char *)text, strlen(text)); 92 bm_free(pattern);
|
/src/usr.bin/make/unit-tests/ |
varmod-match.exp | 1 make: varmod-match.mk:293: Unfinished character list in pattern "a[" of modifier ":M" 3 make: varmod-match.mk:301: Unfinished character list in pattern "a[^" of modifier ":M" 5 make: varmod-match.mk:309: Unfinished character list in pattern "[-x1-3" of modifier ":M" 7 make: varmod-match.mk:317: Unfinished character list in pattern "*[-x1-3" of modifier ":M" 9 make: varmod-match.mk:326: Unfinished character list in pattern "[^-x1-3" of modifier ":M" 11 make: varmod-match.mk:340: Unfinished character list in pattern "?[\" of modifier ":M" 13 make: varmod-match.mk:348: Unfinished character range in pattern "[x-" of modifier ":M" 15 make: varmod-match.mk:360: Unfinished character range in pattern "[^x-" of modifier ":M" 17 make: varmod-match.mk:367: Unfinished character list in pattern "[" of modifier ":M"
|
cond-func-make.exp | 1 make: cond-func-make.mk:24: warning: Unfinished character list in pattern argument "[" to function "make"
|
dep-wildcards.mk | 12 # use '%' instead of '*'. Instead, the pattern '*.target' is a file pattern 14 # list becomes empty, and the source pattern '*.source' is not even expanded.
|
varmod-match-escape.mk | 9 # are unescaped, and in the pattern matching these have the same meaning as 10 # their plain variants '{', '}' and ':'. In the pattern matching from 34 # Therefore the escaped ':' is kept as-is, and the final pattern becomes 57 # the ':' at the end of the modifier, which results in the pattern '\$'. 58 # No unescaping takes place since the pattern neither contained '\:' nor 60 # is silently discarded. The resulting expanded pattern is thus '\', that 62 # expect+1: Unfinished backslash at the end in pattern "\" of modifier ":M" 70 # expect+1: Unfinished backslash at the end in pattern "\" of modifier ":M" 75 # The control flow of the pattern parser depends on the actual string that 109 .for pattern in [A-] [A-]] [A-]]] [^A-] [^A-]] [^A-]] [all...] |
varmod-match.mk | 4 # given pattern. 8 # 1. Pattern characters '*', '?' and '\' 24 # 1. Pattern characters '*', '?' and '\' 30 # The pattern is anchored both at the beginning and at the end of the word. 31 # Since the pattern 'e' does not contain any pattern matching characters, it 37 # The pattern character '?' matches exactly 1 character, the pattern character 38 # '*' matches 0 or more characters. The whole pattern matches all words that 44 # A pattern without placeholders only matches itself [all...] |
char-005c-reverse-solidus.mk | 54 # has been applied to the expression. Its pattern is "x}", which doesn't 77 # Adding more text after the backslash adds to the pattern, as the backslash 79 # The result is a single ":M" modifier with the pattern "x:Nzzz". 84 # The pattern ends up as "x\:Nzzz". Only the sequence "\:" is unescaped, all 90 # The pattern for the ":M" modifier ends up as "x\\\\\\\:Nzzz". Only the 97 # circumvent the peculiarities of that parser, the pattern can be passed via 99 # expect+1: Unfinished backslash at the end in pattern "\" of modifier ":M" 117 # Matching a backslash with the pattern matching characters works.
|
/src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/disp/ |
nouveau_nvkm_engine_disp_sorgm107.c | 32 gm107_sor_dp_pattern(struct nvkm_ior *sor, int pattern) 36 const u32 data = 0x01010101 * pattern; 55 .pattern = gm107_sor_dp_pattern,
|
nouveau_nvkm_engine_disp_sormcp77.c | 41 .pattern = g94_sor_dp_pattern,
|
nouveau_nvkm_engine_disp_sorgk104.c | 41 .pattern = gf119_sor_dp_pattern,
|
nouveau_nvkm_engine_disp_sormcp89.c | 41 .pattern = g94_sor_dp_pattern,
|
/src/usr.bin/grep/ |
fastgrep.c | 62 fg->pattern = (unsigned char *)grep_strdup(pat); 65 for (i = 0; fg->pattern[i]; i++) 66 fg->pattern[i] = towupper((unsigned char)fg->pattern[i]); 77 unsigned char ch = fg->pattern[i]; 97 /* Preprocess pattern. */ 152 if (fg->pattern[i] == '.') { 159 /* Closest dot to the end of the pattern. */ 166 free(fg->pattern); 167 fg->pattern = NULL [all...] |
/src/tests/lib/libc/regex/ |
t_regex_att.c | 58 fail(const char *pattern, const char *input, size_t lineno) { 60 "skipping failed test at line %zu (pattern=%s, input=%s)\n", 61 lineno, pattern, input); 65 bug(const char *pattern, const char *input, size_t lineno) { 172 if (strcmp(pattern, b[i].p) == 0 && 174 fail(pattern, input, lineno); 405 char *name, *pattern, *input, *matches, *comment; local in function:att_test 435 ATF_REQUIRE_MSG((pattern = strtok(NULL, sep)) != NULL, 436 "Missing pattern at line %zu", lineno); 441 ATF_REQUIRE(strunvis(pattern, pattern) != -1) [all...] |
/src/sys/external/bsd/drm2/dist/drm/i915/gem/selftests/ |
i915_gem_dmabuf.c | 90 u32 pattern[] = { 0, 0xaa, 0xcc, 0x55, 0xff }; local in function:igt_dmabuf_import 133 for (i = 0; i < ARRAY_SIZE(pattern); i++) { 134 memset(dma_map, pattern[i], PAGE_SIZE); 135 if (memchr_inv(obj_map, pattern[i], PAGE_SIZE)) { 137 pr_err("imported vmap not all set to %x!\n", pattern[i]); 143 for (i = 0; i < ARRAY_SIZE(pattern); i++) { 144 memset(obj_map, pattern[i], PAGE_SIZE); 145 if (memchr_inv(dma_map, pattern[i], PAGE_SIZE)) { 147 pr_err("exported vmap not all set to %x!\n", pattern[i]);
|