Lines Matching refs:s1
34 simple_strncasecmp (const char *s1, const char *s2, size_t n) in simple_strncasecmp() argument
41 while ((ret = ((unsigned char) tolower (*s1) in simple_strncasecmp()
43 && *s1++) in simple_strncasecmp()
53 stupid_strncasecmp (const char *s1, const char *s2, size_t max) in stupid_strncasecmp() argument
55 size_t ns1 = strlen (s1) + 1; in stupid_strncasecmp()
64 if ((ret = ((unsigned char) tolower (*s1) in stupid_strncasecmp()
67 ++s1; in stupid_strncasecmp()
74 check_result (impl_t *impl, const char *s1, const char *s2, size_t n, in check_result() argument
77 int result = CALL (impl, s1, s2, n); in check_result()
92 do_one_test (impl_t *impl, const char *s1, const char *s2, size_t n, in do_one_test() argument
95 if (check_result (impl, s1, s2, n, exp_result) < 0) in do_one_test()
104 char *s1, *s2; in do_test() local
117 s1 = (char *) (buf1 + align1); in do_test()
122 s1[i] = toupper (1 + 23 * i % max_char); in do_test()
123 s2[i] = tolower (s1[i]); in do_test()
126 s1[len] = s2[len] = 0; in do_test()
127 s1[len + 1] = 23; in do_test()
131 s1[len - 1] += exp_result; in do_test()
136 do_one_test (impl, s1, s2, n, exp_result); in do_test()
142 char *s1, *s2; in do_page_tests() local
146 s1 = (char *) buf1 + BUF1PAGES * page_size - maxoffset; in do_page_tests()
147 memset (s1, 'a', maxoffset - 1); in do_page_tests()
148 s1[maxoffset - 1] = '\0'; in do_page_tests()
175 check_result (impl, s1 + off1, s2 + off2, maxoffset + 1, in do_page_tests()
279 char *s1 = cp + 0xffa; in bz12205() local
284 strcpy (s1, "gottpoff"); in bz12205()
287 exp_result = simple_strncasecmp (s1, s2, n); in bz12205()
289 check_result (impl, s1, s2, n, exp_result); in bz12205()