/freebsd-11-stable/contrib/ncurses/ncurses/tinfo/ |
H A D | strings.c | 47 _nc_strstr(const char *haystack, const char *needle) argument 50 size_t len2 = strlen(needle); 54 if (!strncmp(haystack, needle, len2)) {
|
/freebsd-11-stable/contrib/pam_modules/pam_passwdqc/ |
H A D | passwdqc_check.c | 192 * substring and needle would be too simple for a password with the 196 const char *haystack, const char *needle, const char *original) 210 if (strstr(haystack, needle)) /* based on haystack entirely */ 215 length = strlen(needle); 220 if (*p == needle[i] && !strncmp(p, &needle[i], j)) { 255 const char *needle, const char *original) 266 if (is_based(params, unified, needle, original)) { 195 is_based(passwdqc_params_t *params, const char *haystack, const char *needle, const char *original) argument 254 is_word_based(passwdqc_params_t *params, const char *needle, const char *original) argument
|
/freebsd-11-stable/contrib/llvm-project/openmp/runtime/src/ |
H A D | ompt-specific.h | 69 #define OMPT_STR_MATCH(haystack, needle) __kmp_str_match(haystack, 0, needle)
|
H A D | ompt-general.cpp | 45 #define OMPT_STR_MATCH(haystack, needle) (!strcasecmp(haystack, needle))
|
/freebsd-11-stable/contrib/wpa/src/utils/ |
H A D | os_none.c | 232 char * os_strstr(const char *haystack, const char *needle) argument
|
H A D | os_internal.c | 472 char * os_strstr(const char *haystack, const char *needle) argument 474 size_t len = os_strlen(needle); 476 if (os_strncmp(haystack, needle, len) == 0)
|
H A D | os.h | 448 * @needle: Needle to search from haystack 451 char * os_strstr(const char *haystack, const char *needle);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_libc.h | 49 char *internal_strstr(const char *haystack, const char *needle);
|
H A D | sanitizer_libc.cpp | 218 char *internal_strstr(const char *haystack, const char *needle) { argument 221 uptr len2 = internal_strlen(needle); 224 if (internal_memcmp(haystack + pos, needle, len2) == 0)
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_internal.h | 90 // loaded image containing `needle' and then enumerates all global metadata 94 void AsanApplyToGlobals(globals_op_fptr op, const void *needle);
|
H A D | asan_mac.cpp | 106 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument 107 // Find the Mach-O header for the image containing the needle 109 int err = dladdr(needle, &info);
|
H A D | asan_fuchsia.cpp | 50 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
|
H A D | asan_rtems.cpp | 49 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
|
H A D | asan_linux.cpp | 137 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
|
H A D | asan_win.cpp | 190 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerUtil.h | 64 const void *needle, size_t needlelen);
|
/freebsd-11-stable/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_warc.c | 452 const char *needle, const size_t needlesize) 455 const char *const eon = needle + needlesize; 464 * a 0-sized needle is defined to be found anywhere in haystack 469 } else if ((hay = memchr(hay, *needle, haysize)) == NULL) { 474 /* First characters of haystack and needle are the same now. Both are 476 * of characters values of needle together with the sum of the first 478 for (hp = hay + 1U, np = needle + 1U, hsum = *hay, nsum = *hay, eqp = 1U; 484 /* haystack is smaller than needle, :O */ 501 if (hsum == nsum && memcmp(cand, needle, needlesize - 1U) == 0) { 450 xmemmem(const char *hay, const size_t haysize, const char *needle, const size_t needlesize) argument
|
/freebsd-11-stable/contrib/wpa/src/drivers/ |
H A D | driver_macsec_linux.c | 1067 struct rtnl_link *needle; local 1070 needle = rtnl_link_macsec_alloc(); 1071 if (!needle) 1074 rtnl_link_set_link(needle, parent); 1075 rtnl_link_macsec_set_sci(needle, sci); 1077 match = nl_cache_find(cache, (struct nl_object *) needle); 1078 rtnl_link_put(needle);
|
/freebsd-11-stable/contrib/gcclibs/libmudflap/ |
H A D | mf-hooks2.c | 382 WRAPPER2(char *, strstr, const char *haystack, const char *needle) argument 388 needle_sz = strlen (needle); 390 MF_VALIDATE_EXTENT(needle, CLAMPADD(needle_sz, 1), __MF_CHECK_READ, "strstr needle"); 391 return strstr (haystack, needle); 398 const void *needle, size_t needlelen) 402 MF_VALIDATE_EXTENT(needle, needlelen, __MF_CHECK_READ, "memmem needle"); 403 return memmem (haystack, haystacklen, needle, needlelen); 396 WRAPPER2(void *, memmem, const void *haystack, size_t haystacklen, const void *needle, size_t needlelen) argument
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/dfsan/ |
H A D | dfsan_custom.cpp | 795 SANITIZER_INTERFACE_ATTRIBUTE char *__dfsw_strstr(char *haystack, char *needle, argument 799 char *ret = strstr(haystack, needle); 803 size_t len = ret ? ret + strlen(needle) - haystack : strlen(haystack) + 1; 806 dfsan_union(dfsan_read_label(needle, strlen(needle) + 1),
|
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | cmdline.c | 879 string_in_array(const char *needle, argument 888 if (!strcmp(needle, haystack[i])) 893 next_of_kin = most_similar(needle, haystack, haystack_len, scratch_pool); 898 needle, next_of_kin); 902 needle);
|
/freebsd-11-stable/contrib/ncurses/progs/ |
H A D | tic.c | 541 matches(char **needle, const char *haystack) argument 542 /* does entry in needle list match |-separated field in haystack? */ 547 if (needle != 0) { 548 for (n = 0; needle[n] != 0; n++) { 549 if (_nc_name_match(haystack, needle[n], "|")) {
|
/freebsd-11-stable/contrib/wpa/wpa_supplicant/ |
H A D | p2p_supplicant_sd.c | 533 const u8 *needle, size_t needle_len) 539 if (!needle || !needle_len) 549 if (os_memcmp(haystack + i, needle, needle_len) == 0) 532 find_p2ps_substr(struct p2ps_advertisement *adv_data, const u8 *needle, size_t needle_len) argument
|
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | usersmtp.c | 1514 char *needle; local 1526 if ((needle = iteminlist(rem, list, " ")) == NULL) 1544 memcpy(ret, list, needle - list); 1547 len = strlen(needle) - strlen(rem) - 1; 1551 memcpy(ret + (needle - list), 1552 list + (needle - list) + strlen(rem) + 1, 1556 ret[(needle - list) - 1] = '\0';
|
/freebsd-11-stable/usr.bin/top/ |
H A D | machine.c | 276 static int find_uid(uid_t needle, int *haystack); 279 find_uid(uid_t needle, int *haystack) argument 284 if ((uid_t)haystack[i] == needle)
|