Searched refs:needle (Results 1 - 25 of 27) sorted by relevance

12

/freebsd-11-stable/contrib/ncurses/ncurses/tinfo/
H A Dstrings.c47 _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 Dpasswdqc_check.c192 * 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 Dompt-specific.h69 #define OMPT_STR_MATCH(haystack, needle) __kmp_str_match(haystack, 0, needle)
H A Dompt-general.cpp45 #define OMPT_STR_MATCH(haystack, needle) (!strcasecmp(haystack, needle))
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dos_none.c232 char * os_strstr(const char *haystack, const char *needle) argument
H A Dos_internal.c472 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 Dos.h448 * @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 Dsanitizer_libc.h49 char *internal_strstr(const char *haystack, const char *needle);
H A Dsanitizer_libc.cpp218 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 Dasan_internal.h90 // loaded image containing `needle' and then enumerates all global metadata
94 void AsanApplyToGlobals(globals_op_fptr op, const void *needle);
H A Dasan_mac.cpp106 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 Dasan_fuchsia.cpp50 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
H A Dasan_rtems.cpp49 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
H A Dasan_linux.cpp137 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
H A Dasan_win.cpp190 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerUtil.h64 const void *needle, size_t needlelen);
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_read_support_format_warc.c452 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 Ddriver_macsec_linux.c1067 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 Dmf-hooks2.c382 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 Ddfsan_custom.cpp795 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 Dcmdline.c879 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 Dtic.c541 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 Dp2p_supplicant_sd.c533 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 Dusersmtp.c1514 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 Dmachine.c276 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)

Completed in 191 milliseconds

12