Lines Matching refs:s2
37 simple_strncasecmp (const char *s1, const char *s2, size_t n) in simple_strncasecmp() argument
45 - (unsigned char) tolower (*s2))) == 0 in simple_strncasecmp()
50 ++s2; in simple_strncasecmp()
56 check_result (impl_t *impl, const char *s1, const char *s2, size_t n, in check_result() argument
59 int result = CALL (impl, s1, s2, n); in check_result()
74 do_one_test (impl_t *impl, const char *s1, const char *s2, size_t n, in do_one_test() argument
77 if (check_result (impl, s1, s2, n, exp_result) < 0) in do_one_test()
86 char *s1, *s2; in do_test() local
101 s2 = (char *) (buf2 + align2); in do_test()
106 s2[i] = tolower (s1[i]); in do_test()
109 s1[len] = s2[len] = 0; in do_test()
111 s2[len + 1] = 24 + exp_result; in do_test()
113 if ((s2[len - 1] == 'z' && exp_result == -1) in do_test()
114 || (s2[len - 1] == 'a' && exp_result == 1)) in do_test()
118 s1[len - 1] = tolower (s2[len - 1]) + exp_result; in do_test()
120 s2[len - 1] -= exp_result; in do_test()
123 if (tolower (s1[len - 1]) - tolower (s2[len - 1]) != exp_result) in do_test()
128 s2[len - 1] = toupper (tolower ('a') - 1); in do_test()
131 s1[len - 1] = toupper (s2[len - 1]); in do_test()
135 s2[len - 1] = toupper (tolower ('a') + 1); in do_test()
140 do_one_test (impl, s1, s2, n, exp_result); in do_test()
146 char *s1, *s2; in do_page_tests() local
154 s2 = (char *) buf2 + page_size - maxoffset; in do_page_tests()
155 memset (s2, 'a', maxoffset - 1); in do_page_tests()
156 s2[maxoffset - 1] = '\0'; in do_page_tests()
179 check_result (impl, s1 + off1, s2 + off2, maxoffset + 1, in do_page_tests()
284 char *s2 = gotrel + 0xcbe; in bz12205() local
289 strcpy (s2, "GOTPLT"); in bz12205()
291 exp_result = simple_strncasecmp (s1, s2, n); in bz12205()
293 check_result (impl, s1, s2, n, exp_result); in bz12205()