Home
last modified time | relevance | path

Searched refs:str1 (Results 1 – 25 of 33) sorted by relevance

12

/freebsd/contrib/one-true-awk/bugs-fixed/
H A Dsubsep-overflow.awk10 str1 = foo("a", 4500);
13 a[(SUBSEP = str1), (SUBSEP = str2), "c"] = 1;
19 print (((SUBSEP = str1), (SUBSEP = str2), "c") in a);
20 print (((SUBSEP = str1) SUBSEP (SUBSEP = str2) SUBSEP "c") in a);
21 delete a[(SUBSEP = str1), (SUBSEP = str2), "c"];
22 print (((SUBSEP = str1), (SUBSEP = str2), "c") in a);
23 print (((SUBSEP = str1) SUBSEP (SUBSEP = str2) SUBSEP "c") in a);
/freebsd/contrib/tcsh/
H A Dtc.str.c356 s_strcmp(const Char *str1, const Char *str2) argument
358 for (; *str1 && *str1 == *str2; str1++, str2++)
365 if (*str1 == '\0' && *str2 == '\0')
367 else if (*str1 == '\0')
372 return (*str1 - *str2);
376 s_strncmp(const Char *str1, const Char *str2, size_t n) argument
381 if (*str1 != *str2) {
387 if (*str1 == '\0')
392 return (*str1 - *str2);
394 if (*str1 == '\0')
[all …]
/freebsd/usr.sbin/mtest/
H A Dmtest.c285 const char *str1, const char *str2, const char *str3) in parse_cmd_args() argument
293 assert(str1 != NULL); in parse_cmd_args()
310 error = getaddrinfo(str1, "0", &hints, &res); in parse_cmd_args()
377 char str1[STR_SIZE]; in process_cmd() local
422 sscanf(line, "%s %s %s", str1, str2, str3); in process_cmd()
423 ifindex = parse_cmd_args(&su, &su2, str1, str2, str3); in process_cmd()
535 if ((sscanf(line, "%s %s %d", str1, str2, &n)) != 3) { in process_cmd()
540 ifindex = parse_cmd_args(&su, NULL, str1, str2, NULL); in process_cmd()
562 fgets(str1, sizeof(str1), fp); in process_cmd()
563 cp = strchr(str1, '\n'); in process_cmd()
[all …]
/freebsd/contrib/elftoolchain/libdwarf/
H A Ddwarf_pro_macinfo.c33 Dwarf_Signed fileindex, char *str1, char *str2, Dwarf_Error *error) in _dwarf_add_macro() argument
54 if (str1 == NULL) in _dwarf_add_macro()
57 if ((md->dmd_macro = strdup(str1)) == NULL) { in _dwarf_add_macro()
64 len = strlen(str1) + strlen(str2) + 2; in _dwarf_add_macro()
70 snprintf(md->dmd_macro, len, "%s %s", str1, str2); in _dwarf_add_macro()
/freebsd/lib/libc/iconv/
H A Dcitrus_bcs.c42 _citrus_bcs_strcasecmp(const char * __restrict str1, in _citrus_bcs_strcasecmp() argument
50 c1 = _bcs_toupper(*str1++); in _citrus_bcs_strcasecmp()
61 _citrus_bcs_strncasecmp(const char * __restrict str1, in _citrus_bcs_strncasecmp() argument
69 c1 = _bcs_toupper(*str1++); in _citrus_bcs_strncasecmp()
/freebsd/contrib/netbsd-tests/lib/libpthread/
H A Dh_cancel.c42 char str1[] = "You should see this.\n"; in main() local
53 write(STDOUT_FILENO, str1, sizeof(str1)-1); in main()
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/
H A Dtst.shortstr.d65 this->str1 = ".........................................";
66 printf("%d\n", index(this->str, this->str1));
71 printf("%d\n", rindex(this->str, this->str1));
/freebsd/crypto/openssl/test/
H A Dlocaletest.c95 char str1[] = "SubjectPublicKeyInfo", str2[] = "subjectpublickeyinfo"; in setup_tests() local
104 res = strcasecmp(str1, str2); in setup_tests()
107 if (!TEST_false(OPENSSL_strcasecmp(str1, str2))) in setup_tests()
H A Ddsatest.c80 static const unsigned char str1[] = "12345678901234567890"; in dsa_test() local
114 if (!TEST_true(DSA_sign(0, str1, 20, sig, &siglen, dsa))) in dsa_test()
116 if (TEST_int_gt(DSA_verify(0, str1, 20, sig, siglen, dsa), 0)) in dsa_test()
/freebsd/sbin/ipf/ipfstat/
H A Dipfstat.c1277 char str1[STSTRSIZE], str2[STSTRSIZE], str3[STSTRSIZE], str4[STSTRSIZE]; in topipstates() local
1495 snprintf(str1, sizeof(str1), "%s - %s - state top", hostnm, IPL_VERSION); in topipstates()
1496 for (j = 0 ; j < (maxx - 8 - strlen(str1)) / 2; j++) in topipstates()
1498 printw("%s", str1); in topipstates()
1504 strftime(str1, 80, "%T", localtime(&t)); in topipstates()
1505 printw("%s\n", str1); in topipstates()
1513 snprintf(str1, sizeof(str1), "%s,%d", getip(ver, &saddr), sport); in topipstates()
1515 snprintf(str1, sizeof(str1), "%s", getip(ver, &saddr)); in topipstates()
1566 str1, str2, str3, str4); in topipstates()
1603 snprintf(str1, sizeof(str1), "%s,%hu", in topipstates()
[all …]
/freebsd/usr.bin/diff/
H A Ddiffreg_new.c147 char *str1, *str2; in diffreg_new() local
178 f1 = openfile(file1, &str1, &st1); in diffreg_new()
217 if (diff_atomize_file(&left, cfg, f1, (uint8_t *)str1, st1.st_size, diff_flags)) { in diffreg_new()
278 if (str1) in diffreg_new()
279 munmap(str1, st1.st_size); in diffreg_new()
/freebsd/tools/test/iconv/
H A Dconst-gnuism.c39 char *str1 = "FOOBAR"; in main() local
56 in1 = &str1; in main()
/freebsd/contrib/ee/
H A Dee.c2301 unsigned char *str1; in get_line() local
2324 str1 = str2; in get_line()
2354 *point = *str1; in get_line()
2356 str1++; in get_line()
4129 unsigned char *str1; in ee_init() local
4138 str1 = home = malloc(strlen(string)+10); in ee_init()
4151 str1 = str2 = string; in ee_init()
4159 if (compare(str1, CASE, FALSE)) in ee_init()
4161 else if (compare(str1, NOCASE, FALSE)) in ee_init()
4163 else if (compare(str1, EXPAND, FALSE)) in ee_init()
[all …]
/freebsd/crypto/openssl/util/perl/OpenSSL/
H A DOID.pm222 my $str1 = join(',', @nums);
226 unless $str1 eq $str2;
/freebsd/contrib/googletest/googlemock/test/
H A Dgmock-matchers-comparisons_test.cc1252 std::string str1("oabocdooeoo"); in TEST() local
1254 Matcher<const std::string&> m0 = StrCaseEq(str1); in TEST()
1257 str1[3] = str2[3] = '\0'; in TEST()
1258 Matcher<const std::string&> m1 = StrCaseEq(str1); in TEST()
1261 str1[0] = str1[6] = str1[7] = str1[10] = '\0'; in TEST()
1263 Matcher<const std::string&> m2 = StrCaseEq(str1); in TEST()
1264 str1[9] = str2[9] = '\0'; in TEST()
1267 Matcher<const std::string&> m3 = StrCaseEq(str1); in TEST()
1990 ::std::wstring str1(L"oabocdooeoo"); in TEST()
1992 Matcher<const ::std::wstring&> m0 = StrCaseEq(str1); in TEST()
[all …]
/freebsd/contrib/googletest/docs/reference/
H A Dassertions.md233 `EXPECT_STREQ(`*`str1`*`,`*`str2`*`)` \
234 `ASSERT_STREQ(`*`str1`*`,`*`str2`*`)`
236 Verifies that the two C strings *`str1`* and *`str2`* have the same contents.
240 `EXPECT_STRNE(`*`str1`*`,`*`str2`*`)` \
241 `ASSERT_STRNE(`*`str1`*`,`*`str2`*`)`
243 Verifies that the two C strings *`str1`* and *`str2`* have different contents.
247 `EXPECT_STRCASEEQ(`*`str1`*`,`*`str2`*`)` \
248 `ASSERT_STRCASEEQ(`*`str1`*`,`*`str2`*`)`
250 Verifies that the two C strings *`str1`* and *`str2`* have the same contents,
255 `EXPECT_STRCASENE(`*`str1`*`,`*`str2`*`)` \
[all …]
/freebsd/usr.bin/patch/
H A Dbackupfile.c158 concat(const char *str1, const char *str2) in concat() argument
162 if (asprintf(&newstr, "%s%s", str1, str2) == -1) in concat()
/freebsd/lib/libutil/
H A Dlogin_ok.c68 login_str2inlist(const char **ttlst, const char *str1, const char *str2, int flags) in login_str2inlist() argument
72 if (login_strinlist(ttlst, str1, flags)) in login_str2inlist()
/freebsd/contrib/tcpdump/
H A Dprint-zephyr.c140 #define ZEPHYR_PRINT(str1,str2) \ argument
141 { ND_PRINT("%s", (str1)); fn_print_str(ndo, (const u_char *)(str2)); }
/freebsd/contrib/libpcap/
H A Dpcap-sita.c503 char str1[MAX_LINE_SIZE], str2[MAX_LINE_SIZE]; in if_sort() local
521 …strncpy(str1, s1, (s1_p1_len > sizeof(str1)) ? s1_p1_len : sizeof(str1)); *(str1 + s1_p1_len) = … in if_sort()
523 retval = strcmp(str1, str2); in if_sort()
/freebsd/contrib/ldns/
H A Dradix.c63 static int ldns_radix_str_is_prefix(uint8_t* str1, radix_strlen_t len1,
65 static radix_strlen_t ldns_radix_str_common(uint8_t* str1, radix_strlen_t len1,
1192 ldns_radix_str_is_prefix(uint8_t* str1, radix_strlen_t len1, in ldns_radix_str_is_prefix() argument
1201 return (memcmp(str1, str2, len1) == 0); in ldns_radix_str_is_prefix()
1215 ldns_radix_str_common(uint8_t* str1, radix_strlen_t len1, in ldns_radix_str_common() argument
1220 if (str1[i] != str2[i]) { in ldns_radix_str_common()
/freebsd/sbin/ipfw/
H A Dipfw2.h358 int _substrcmp(const char *str1, const char* str2);
359 int _substrcmp2(const char *str1, const char* str2, const char* str3);
/freebsd/usr.bin/sort/
H A Dcoll.c534 str_list_coll(struct bwstring *str1, struct sort_list_item **ss2) in str_list_coll() argument
541 preproc(str1, ka1); in str_list_coll()
546 bwsprintf(stdout, str1, "; s1=<", ">"); in str_list_coll()
555 clean_keys_array(str1, ka1); in str_list_coll()
559 ret = top_level_str_coll(str1, ((*ss2)->str)); in str_list_coll()
H A Dcoll.h174 int str_list_coll(struct bwstring *str1, struct sort_list_item **ss2);
/freebsd/contrib/ntp/sntp/libevent/include/event2/
H A Dutil.h662 int evutil_ascii_strcasecmp(const char *str1, const char *str2);
667 int evutil_ascii_strncasecmp(const char *str1, const char *str2, size_t n);

12