| /openbsd/src/lib/libcrypto/objects/ |
| D | obj_dat.c | 278 ADDED_OBJ needle = { in OBJ_nid2obj() local 284 if ((found = lh_ADDED_OBJ_retrieve(added, &needle)) != NULL) in OBJ_nid2obj() 342 ADDED_OBJ needle = { in OBJ_obj2nid() local 348 if ((found = lh_ADDED_OBJ_retrieve(added, &needle)) != NULL) in OBJ_obj2nid() 381 ADDED_OBJ needle = { in OBJ_sn2nid() local 387 if ((found = lh_ADDED_OBJ_retrieve(added, &needle)) != NULL) in OBJ_sn2nid() 420 ADDED_OBJ needle = { in OBJ_ln2nid() local 426 if ((found = lh_ADDED_OBJ_retrieve(added, &needle)) != NULL) in OBJ_ln2nid()
|
| /openbsd/src/lib/libcurses/tinfo/ |
| D | strings.c | 51 _nc_strstr(const char *haystack, const char *needle) in NCURSES_EXPORT() 54 size_t len2 = strlen(needle); in NCURSES_EXPORT() 58 if (!strncmp(haystack, needle, len2)) { in NCURSES_EXPORT()
|
| /openbsd/src/gnu/usr.bin/perl/t/op/ |
| D | index.t | 76 my $needle = "\x{1230}\x{1270}"; 77 my @needles = split ( //, $needle ); 84 $needle = "\x{1270}\x{1230}"; # Transpose them. 85 @needles = split ( //, $needle );
|
| /openbsd/src/gnu/usr.bin/perl/cpan/Memoize/t/ |
| D | basic.t | 29 my ( $needle, $symtbl ) = ( @_, *main::{'HASH'} ); 32 find_sub( $needle, *$glob{'HASH'} ) unless *$glob{'HASH'} == $symtbl; 34 return 1 if $needle == $sub;
|
| /openbsd/src/usr.sbin/bgpd/ |
| D | rde_prefix.c | 348 struct pt_entry *needle; in pt_get_flow() local 354 needle = (struct pt_entry *)&x.flow; in pt_get_flow() 356 memset(needle, 0, PT_FLOW_SIZE); in pt_get_flow() 357 needle->aid = f->aid; in pt_get_flow() 358 needle->len = f->len + PT_FLOW_SIZE; in pt_get_flow() 359 memcpy(((struct pt_entry_flow *)needle)->flow, f->data, f->len); in pt_get_flow() 361 return RB_FIND(pt_tree, &pttable, (struct pt_entry *)needle); in pt_get_flow()
|
| D | rde_attr.c | 287 struct attr needle; in attr_lookup() local 291 needle.flags = flags; in attr_lookup() 292 needle.type = type; in attr_lookup() 293 needle.len = len; in attr_lookup() 294 needle.data = data; in attr_lookup() 295 return RB_FIND(attr_tree, &attrtable, &needle); in attr_lookup()
|
| D | rde_peer.c | 126 struct rde_peer needle; in peer_get() local 128 needle.conf.id = id; in peer_get() 129 return RB_FIND(peer_tree, &peertable, &needle); in peer_get()
|
| D | rtr.c | 166 struct aspa_set *aspa, needle = { .as = mergeset->as }; in rtr_aspa_insert() local 169 aspa = RB_FIND(aspa_tree, at, &needle); in rtr_aspa_insert()
|
| D | rtr_proto.c | 801 struct aspa_set needle = { 0 }; in rtr_parse_aspa() local 802 needle.as = ntohl(rtr_aspa.cas); in rtr_parse_aspa() 806 log_rtr(rs), log_as(needle.as)); in rtr_parse_aspa() 807 a = RB_FIND(aspa_tree, &rs->aspa, &needle); in rtr_parse_aspa()
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/fuzzer/ |
| D | FuzzerInterceptors.cpp | 107 static char *internal_strstr(const char *haystack, const char *needle) { in internal_strstr() argument 110 size_t len2 = internal_strlen(needle); in internal_strstr() 114 if (internal_memcmp(haystack + pos, needle, len2) == 0) in internal_strstr()
|
| D | FuzzerUtil.h | 67 const void *needle, size_t needlelen);
|
| /openbsd/src/gnu/usr.bin/perl/ |
| D | util.h | 246 #define instr(haystack, needle) strstr((char *) haystack, (char *) needle) argument
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| D | sanitizer_libc.cpp | 218 char *internal_strstr(const char *haystack, const char *needle) { in internal_strstr() argument 221 uptr len2 = internal_strlen(needle); in internal_strstr() 224 if (internal_memcmp(haystack + pos, needle, len2) == 0) in internal_strstr()
|
| D | sanitizer_libc.h | 49 char *internal_strstr(const char *haystack, const char *needle);
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/asan/ |
| D | asan_mac.cpp | 68 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { in AsanApplyToGlobals() argument 71 int err = dladdr(needle, &info); in AsanApplyToGlobals()
|
| D | asan_internal.h | 104 void AsanApplyToGlobals(globals_op_fptr op, const void *needle);
|
| D | asan_linux.cpp | 115 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { in AsanApplyToGlobals() argument
|
| D | asan_fuchsia.cpp | 52 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { in AsanApplyToGlobals() argument
|
| D | asan_win.cpp | 192 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { in AsanApplyToGlobals() argument
|
| /openbsd/src/usr.sbin/ldpd/ |
| D | ldpd.c | 1229 auth_find(struct ldpd_conf *conf, const struct ldp_auth *needle) in auth_find() argument 1235 if (needle->md5key_len != auth->md5key_len) in auth_find() 1237 if (needle->idlen != auth->idlen) in auth_find() 1240 if (memcmp(needle->md5key, auth->md5key, in auth_find() 1241 needle->md5key_len) != 0) in auth_find() 1245 if ((needle->id.s_addr & mask) != (auth->id.s_addr & mask)) in auth_find()
|
| /openbsd/src/sys/kern/ |
| D | subr_kubsan.c | 781 const char *needle = "/sys/"; in pathstrip() local 785 if (path[i] != needle[j]) { in pathstrip() 790 if (needle[++j] == '\0') in pathstrip()
|
| /openbsd/src/gnu/gcc/libmudflap/ |
| D | mf-hooks2.c | 382 WRAPPER2(char *, strstr, const char *haystack, const char *needle) in WRAPPER2() argument 388 needle_sz = strlen (needle); in WRAPPER2() 390 MF_VALIDATE_EXTENT(needle, CLAMPADD(needle_sz, 1), __MF_CHECK_READ, "strstr needle"); in WRAPPER2() 391 return strstr (haystack, needle); in WRAPPER2() 398 const void *needle, size_t needlelen) in WRAPPER2() argument 402 MF_VALIDATE_EXTENT(needle, needlelen, __MF_CHECK_READ, "memmem needle"); in WRAPPER2() 403 return memmem (haystack, haystacklen, needle, needlelen); in WRAPPER2()
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/dfsan/ |
| D | dfsan_custom.cpp | 1810 SANITIZER_INTERFACE_ATTRIBUTE char *__dfsw_strstr(char *haystack, char *needle, in __dfsw_strstr() argument 1814 char *ret = strstr(haystack, needle); in __dfsw_strstr() 1818 size_t len = ret ? ret + strlen(needle) - haystack : strlen(haystack) + 1; in __dfsw_strstr() 1821 dfsan_union(dfsan_read_label(needle, strlen(needle) + 1), in __dfsw_strstr() 1828 SANITIZER_INTERFACE_ATTRIBUTE char *__dfso_strstr(char *haystack, char *needle, in __dfso_strstr() argument 1836 __dfsw_strstr(haystack, needle, haystack_label, needle_label, ret_label); in __dfso_strstr() 1841 size_t needle_len = strlen(needle); in __dfso_strstr() 1847 o = dfsan_read_origin_of_first_taint(needle, needle_len + 1); in __dfso_strstr()
|
| /openbsd/src/usr.sbin/rpki-client/ |
| D | filemode.c | 85 struct uripath needle = { .uri = uri }; in uripath_lookup() local 88 up = RB_FIND(uripath_tree, &uritree, &needle); in uripath_lookup()
|
| /openbsd/src/usr.bin/tic/ |
| D | tic.c | 555 matches(char **needle, const char *haystack) in matches() argument 560 if (needle != 0) { in matches() 563 for (n = 0; needle[n] != 0; n++) { in matches() 564 if (_nc_name_match(haystack, needle[n], "|")) { in matches()
|