Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 34) sorted by relevance

12

/posix/
A Dbug-regex16.c11 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 Dbug-regex33.c30 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 Dbug-regex22.c31 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 Dtst-glob_lstat_compat.c77 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 Dbug-glob2.c95 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 Dsched_cpucount.c27 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 Dbug-regex8.c31 const char *s; in main() local
36 s = re_compile_pattern ("xy$", 3, &regex); in main()
37 if (s != NULL) in main()
48 s = re_compile_pattern ("xy\\>", 4, &regex); in main()
49 if (s != NULL) in main()
60 s = re_compile_pattern ("xy \\<", 5, &regex); in main()
61 if (s != NULL) in main()
A Dbug-regex1.c12 const char *s; in main() local
25 s = re_compile_pattern ("[an\371]*n", 7, &regex); in main()
26 if (s != NULL) in main()
45 s = re_compile_pattern ("[an\371]*n", 7, &regex); in main()
46 if (s != NULL) in main()
65 s = re_compile_pattern ("[an\371]*n", 7, &regex); in main()
66 if (s != NULL) in main()
A Dtst-gnuglob-skeleton.c101 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 DPTESTS2C.sed4 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 Dbug-regex26.c27 struct re_registers s; in main() local
30 memset (&s, 0, sizeof (s)); in main()
34 15, 0, 15, &s); in main()
A Dbug-regex34.c30 …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 Dbug-regex4.c28 const char *s; in main() local
37 s = re_compile_pattern ("ab[cde]", 7, &regex); in main()
38 if (s != NULL) in main()
61 s = re_compile_pattern ("ab[cde]", 7, &regex); in main()
62 if (s != NULL) in main()
A Dbug-regex7.c32 const char *s; in main() local
39 s = re_compile_pattern ("a", 1, &regex); in main()
40 if (s != NULL) in main()
64 s = re_compile_pattern ("\\(\\(\\(a\\)\\)\\)", 13, &regex); in main()
65 if (s != NULL) in main()
A Dbug-regex10.c29 const char *s; in main() local
35 s = re_compile_pattern ("[abc]*d", 7, &regex); in main()
36 if (s != NULL) in main()
A DTESTS2C.sed1 s/\\/\\\\/g
2 s/\([0-9]*\):\(.*\):\(.*\)/ {\1, "\2", "\3"},/
A Dtst-getaddrinfo3.c17 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 Dtst-regex2.c107 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 Dfnmatch.c161 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 Dannexc.c570 #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 Dtst-getconf.sh30 printf %s "getconf $name: " >> $logfile
208 printf %s "getconf $name /: " >> $logfile
A Dglob.c648 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 DPCRE.tests375 /^([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 Dtst-rfc3484-3.c107 __getline (char **lineptr, size_t *n, FILE *s) in __getline() argument
A Dtst-rfc3484.c99 __getline (char **lineptr, size_t *n, FILE *s) in __getline() argument

Completed in 39 milliseconds

12