/posix/ |
A D | bug-regex16.c | 11 const char *s; in main() local 16 s = re_compile_pattern ("[[.invalid_collating_symbol.]]", 30, &re); in main() 17 if (s == NULL || strcmp (s, "Invalid collation character")) in main() 19 printf ("re_compile_pattern returned %s\n", s); in main() 22 s = re_compile_pattern ("[[=invalid_equivalence_class=]]", 31, &re); in main() 23 if (s == NULL || strcmp (s, "Invalid collation character")) in main() 25 printf ("re_compile_pattern returned %s\n", s); in main() 28 s = re_compile_pattern ("[[:invalid_character_class:]]", 29, &re); in main() 29 if (s == NULL || strcmp (s, "Invalid character class name")) in main() 31 printf ("re_compile_pattern returned %s\n", s); in main()
|
A D | bug-regex33.c | 30 struct re_registers s; in do_test() local 38 memset (&s, 0, sizeof (s)); in do_test() 49 12, 0, 12, &s); in do_test() 59 11, 0, 11, &s); in do_test() 69 10, 0, 10, &s); in do_test() 78 9, 0, 9, &s); in do_test() 87 8, 0, 8, &s); in do_test() 97 10, 0, 10, &s); in do_test() 107 9, 0, 9, &s); in do_test()
|
A D | bug-regex22.c | 31 const char *s; in main() local 42 s = re_compile_pattern ("\\W", 2, &re); in main() 44 if (s != NULL) in main() 46 printf ("failed to compile pattern \"\\W\": %s\n", s); in main() 70 s = re_compile_pattern ("\\w", 2, &re); in main() 72 if (s != NULL) in main() 74 printf ("failed to compile pattern \"\\w\": %s\n", s); in main() 98 s = re_compile_pattern ("[[:DIGIT:]]", 11, &re); in main() 99 if (s == NULL) in main() 108 s = re_compile_pattern ("[[:DIGIT:]]", 2, &re); in main() [all …]
|
A D | tst-glob_lstat_compat.c | 77 find_file (const char *s) in find_file() argument 82 while (s[0] == '/') in find_file() 84 if (s[1] == '\0') in find_file() 86 s = "."; in find_file() 89 ++s; in find_file() 95 if (s[0] == '.' && s[1] == '/') in find_file() 96 s += 2; in find_file() 98 while (*s != '\0') in find_file() 105 && memcmp (s, filesystem[idx].name, endp - s) == 0 in find_file() 130 s = endp + 1; in find_file() [all …]
|
A D | bug-glob2.c | 95 find_file (const char *s) in find_file() argument 100 if (strcmp (s, ".") == 0) in find_file() 103 if (s[0] == '.' && s[1] == '/') in find_file() 104 s += 2; in find_file() 106 while (*s != '\0') in find_file() 110 PRINTF ("looking for %.*s, level %d\n", (int) (endp - s), s, level); in find_file() 115 && memcmp (s, filesystem[idx].name, endp - s) == 0 in find_file() 140 s = endp + 1; in find_file() 150 my_opendir (const char *s) in my_opendir() argument 152 long int idx = find_file (s); in my_opendir() [all …]
|
A D | sched_cpucount.c | 27 int s = 0; in countbits() local 28 for (; v != 0; s++) in countbits() 30 return s; in countbits() 36 int s = 0; in __sched_cpucount() local 38 s += countbits (setp->__bits[i]); in __sched_cpucount() 39 return s; in __sched_cpucount()
|
A D | bug-regex8.c | 31 const char *s; in main() local 36 s = re_compile_pattern ("xy$", 3, ®ex); in main() 37 if (s != NULL) in main() 48 s = re_compile_pattern ("xy\\>", 4, ®ex); in main() 49 if (s != NULL) in main() 60 s = re_compile_pattern ("xy \\<", 5, ®ex); in main() 61 if (s != NULL) in main()
|
A D | bug-regex1.c | 12 const char *s; in main() local 25 s = re_compile_pattern ("[an\371]*n", 7, ®ex); in main() 26 if (s != NULL) in main() 45 s = re_compile_pattern ("[an\371]*n", 7, ®ex); in main() 46 if (s != NULL) in main() 65 s = re_compile_pattern ("[an\371]*n", 7, ®ex); in main() 66 if (s != NULL) in main()
|
A D | tst-gnuglob-skeleton.c | 101 find_file (const char *s) in find_file() argument 106 while (s[0] == '/') in find_file() 108 if (s[1] == '\0') in find_file() 110 s = "."; in find_file() 113 ++s; in find_file() 119 if (s[0] == '.' && s[1] == '/') in find_file() 120 s += 2; in find_file() 122 while (*s != '\0') in find_file() 128 (int) (endp - s), s, level); in find_file() 133 && memcmp (s, filesystem[idx].name, endp - s) == 0 in find_file() [all …]
|
A D | PTESTS2C.sed | 4 s/^# \(.*\)/ { 0, 0, "\1", NULL, },/ 5 s/^#W \(.*\)/ { 0, 0, NULL, "\1" },/ 6 s/\([^|]*\)|\([^|]*\)|\([^|]*\)|\([^|]*\)|\(.*\)/ { \1, \2, "\3", "\4", \5 },/ 7 s/\\/\\\\/g 8 s/
|
A D | bug-regex26.c | 27 struct re_registers s; in main() local 30 memset (&s, 0, sizeof (s)); in main() 34 15, 0, 15, &s); in main()
|
A D | bug-regex34.c | 30 …const char *s = "\xe1\x80\x80\xe1\x80\xbb\xe1\x80\xbd\xe1\x80\x94\xe1\x80\xba\xe1\x80\xaf\xe1\x80\… in do_test() local 41 re_search (&r, s, strlen (s), 0, strlen (s), 0); in do_test()
|
A D | bug-regex4.c | 28 const char *s; in main() local 37 s = re_compile_pattern ("ab[cde]", 7, ®ex); in main() 38 if (s != NULL) in main() 61 s = re_compile_pattern ("ab[cde]", 7, ®ex); in main() 62 if (s != NULL) in main()
|
A D | bug-regex7.c | 32 const char *s; in main() local 39 s = re_compile_pattern ("a", 1, ®ex); in main() 40 if (s != NULL) in main() 64 s = re_compile_pattern ("\\(\\(\\(a\\)\\)\\)", 13, ®ex); in main() 65 if (s != NULL) in main()
|
A D | bug-regex10.c | 29 const char *s; in main() local 35 s = re_compile_pattern ("[abc]*d", 7, ®ex); in main() 36 if (s != NULL) in main()
|
A D | TESTS2C.sed | 1 s/\\/\\\\/g 2 s/\([0-9]*\):\(.*\):\(.*\)/ {\1, "\2", "\3"},/
|
A D | tst-getaddrinfo3.c | 17 int s; in do_test() local 20 s = getaddrinfo (addr, NULL, &hints, &ai_res); \ in do_test() 21 if (s != 0) \ in do_test() 23 if (s != fail) \ in do_test() 25 printf ("getaddrinfo test %d failed: %s\n", no, gai_strerror (s)); \ in do_test()
|
A D | tst-regex2.c | 107 const char *s = re_compile_pattern (pat[i], strlen (pat[i]), in do_test() local 109 if (s != NULL) in do_test() 111 printf ("\n%s\n", s); in do_test()
|
A D | fnmatch.c | 161 char s[CHAR_CLASS_MAX_LENGTH + 1]; in is_char_class() local 162 char *cp = s; in is_char_class() 201 if (cp == s + CHAR_CLASS_MAX_LENGTH) in is_char_class() 210 return wctype (s); in is_char_class()
|
A D | annexc.c | 570 #define Hc(n, s) \ argument 572 n##_maybe, sizeof (n##_maybe) / sizeof (n##_maybe[0]), s } 669 xstrndup (const char *s, size_t n) in xstrndup() argument 678 return memcpy (new, s, len); in xstrndup()
|
A D | tst-getconf.sh | 30 printf %s "getconf $name: " >> $logfile 208 printf %s "getconf $name /: " >> $logfile
|
A D | glob.c | 648 struct scratch_buffer s; in __glob() 649 scratch_buffer_init (&s); in __glob() 653 err = __getlogin_r (s.data, s.length); in __glob() 657 size_t ssize = strlen (s.data) + 1; in __glob() 658 char *sdata = s.data; in __glob() 660 s.length - ssize, &p); in __glob() 662 p = getpwnam (s.data); in __glob() 669 if (!scratch_buffer_grow (&s)) in __glob() 680 scratch_buffer_free (&s); in __glob()
|
A D | PCRE.tests | 375 /^([0-9]+)\s+IN\s+SOA\s+(\S+)\s+(\S+)\s*\(\s*$/ 449 /^".*"\s*(;.*)?$/ 578 /^From\s+\S+\s+([a-zA-Z]{3}\s+){2}[0-9]{1,2}\s+[0-9][0-9]:[0-9][0-9]/ 817 0: s 904 /\b(foo)\s+(\w+)/i
|
A D | tst-rfc3484-3.c | 107 __getline (char **lineptr, size_t *n, FILE *s) in __getline() argument
|
A D | tst-rfc3484.c | 99 __getline (char **lineptr, size_t *n, FILE *s) in __getline() argument
|