Lines Matching refs:s1

61 static int internal_strcmp_strncmp(const char *s1, const char *s2, bool strncmp,  in internal_strcmp_strncmp()  argument
70 unsigned c1 = *s1; in internal_strcmp_strncmp()
76 s1++; in internal_strcmp_strncmp()
82 static int internal_strncmp(const char *s1, const char *s2, size_t n) { in internal_strncmp() argument
83 return internal_strcmp_strncmp(s1, s2, true, n); in internal_strncmp()
86 static int internal_strcmp(const char *s1, const char *s2) { in internal_strcmp() argument
87 return internal_strcmp_strncmp(s1, s2, false, 0); in internal_strcmp()
90 static int internal_memcmp(const void *s1, const void *s2, size_t n) { in internal_memcmp() argument
91 const uint8_t *t1 = static_cast<const uint8_t *>(s1); in internal_memcmp()
123 void __sanitizer_weak_hook_memcmp(void *called_pc, const void *s1,
125 void __sanitizer_weak_hook_strncmp(void *called_pc, const char *s1,
127 void __sanitizer_weak_hook_strncasecmp(void *called_pc, const char *s1,
129 void __sanitizer_weak_hook_strcmp(void *called_pc, const char *s1,
131 void __sanitizer_weak_hook_strcasecmp(void *called_pc, const char *s1,
133 void __sanitizer_weak_hook_strstr(void *called_pc, const char *s1,
135 void __sanitizer_weak_hook_strcasestr(void *called_pc, const char *s1,
137 void __sanitizer_weak_hook_memmem(void *called_pc, const void *s1, size_t len1,
150 ATTRIBUTE_INTERFACE int bcmp(const char *s1, const char *s2, size_t n) { in DEFINE_REAL()
152 return internal_memcmp(s1, s2, n); in DEFINE_REAL()
153 int result = REAL(bcmp)(s1, s2, n); in DEFINE_REAL()
154 __sanitizer_weak_hook_memcmp(GET_CALLER_PC(), s1, s2, n, result); in DEFINE_REAL()
158 ATTRIBUTE_INTERFACE int memcmp(const void *s1, const void *s2, size_t n) { in memcmp() argument
160 return internal_memcmp(s1, s2, n); in memcmp()
161 int result = REAL(memcmp)(s1, s2, n); in memcmp()
162 __sanitizer_weak_hook_memcmp(GET_CALLER_PC(), s1, s2, n, result); in memcmp()
166 ATTRIBUTE_INTERFACE int strncmp(const char *s1, const char *s2, size_t n) { in strncmp() argument
168 return internal_strncmp(s1, s2, n); in strncmp()
169 int result = REAL(strncmp)(s1, s2, n); in strncmp()
170 __sanitizer_weak_hook_strncmp(GET_CALLER_PC(), s1, s2, n, result); in strncmp()
174 ATTRIBUTE_INTERFACE int strcmp(const char *s1, const char *s2) { in strcmp() argument
176 return internal_strcmp(s1, s2); in strcmp()
177 int result = REAL(strcmp)(s1, s2); in strcmp()
178 __sanitizer_weak_hook_strcmp(GET_CALLER_PC(), s1, s2, result); in strcmp()
182 ATTRIBUTE_INTERFACE int strncasecmp(const char *s1, const char *s2, size_t n) { in strncasecmp() argument
184 int result = REAL(strncasecmp)(s1, s2, n); in strncasecmp()
185 __sanitizer_weak_hook_strncasecmp(GET_CALLER_PC(), s1, s2, n, result); in strncasecmp()
189 ATTRIBUTE_INTERFACE int strcasecmp(const char *s1, const char *s2) { in strcasecmp() argument
191 int result = REAL(strcasecmp)(s1, s2); in strcasecmp()
192 __sanitizer_weak_hook_strcasecmp(GET_CALLER_PC(), s1, s2, result); in strcasecmp()
196 ATTRIBUTE_INTERFACE char *strstr(const char *s1, const char *s2) { in strstr() argument
198 return internal_strstr(s1, s2); in strstr()
199 char *result = REAL(strstr)(s1, s2); in strstr()
200 __sanitizer_weak_hook_strstr(GET_CALLER_PC(), s1, s2, result); in strstr()
204 ATTRIBUTE_INTERFACE char *strcasestr(const char *s1, const char *s2) { in strcasestr() argument
206 char *result = REAL(strcasestr)(s1, s2); in strcasestr()
207 __sanitizer_weak_hook_strcasestr(GET_CALLER_PC(), s1, s2, result); in strcasestr()
212 void *memmem(const void *s1, size_t len1, const void *s2, size_t len2) { in memmem() argument
214 void *result = REAL(memmem)(s1, len1, s2, len2); in memmem()
215 __sanitizer_weak_hook_memmem(GET_CALLER_PC(), s1, len1, s2, len2, result); in memmem()