/freebsd/contrib/atf/atf-c++/detail/ |
H A D | text_test.cpp | 69 std::vector< std::string > words; in ATF_TEST_CASE_BODY() local 72 words.clear(); in ATF_TEST_CASE_BODY() 73 str = join(words, ","); in ATF_TEST_CASE_BODY() 76 words.clear(); in ATF_TEST_CASE_BODY() 77 words.push_back(""); in ATF_TEST_CASE_BODY() 78 str = join(words, ","); in ATF_TEST_CASE_BODY() 81 words.clear(); in ATF_TEST_CASE_BODY() 82 words.push_back(""); in ATF_TEST_CASE_BODY() 83 words.push_back(""); in ATF_TEST_CASE_BODY() 84 str = join(words, ","); in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/contrib/atf/atf-c/detail/ |
H A D | text_test.c | 50 array_size(const char *words[]) in array_size() argument 56 for (word = words; *word != NULL; word++) in array_size() 64 check_split(const char *str, const char *delim, const char *words[]) in check_split() argument 73 printf("Expecting %zd words\n", array_size(words)); in check_split() 74 ATF_CHECK_EQ(atf_list_size(&list), array_size(words)); in check_split() 76 for (word = words, i = 0; *word != NULL; word++, i++) { in check_split() 77 printf("Word at position %zd should be '%s'\n", i, words[i]); in check_split() 78 ATF_CHECK_STREQ((const char *)atf_list_index_c(&list, i), words[i]); in check_split() 238 const char *words[] = { NULL }; in ATF_TC_BODY() local 239 check_split("", " ", words); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/bmake/ |
H A D | str.c | 126 Substring *words; in Substring_Words() local 141 words = bmake_malloc((words_cap + 1) * sizeof(words[0])); in Substring_Words() 200 words = bmake_realloc(words, in Substring_Words() 201 (words_cap + 1) * sizeof(words[0])); in Substring_Words() 203 words[words_len++] = in Substring_Words() 210 free(words); in Substring_Words() 213 res.words = NULL; in Substring_Words() 263 words[words_len] = Substring_Init(NULL, NULL); /* useful for argv */ in Substring_Words() 268 result.words = words; in Substring_Words() 279 Words words; in Str_Words() local [all …]
|
H A D | var.c | 656 if (varnames.len == 1 && varnames.words[0][0] == '\0') in Var_Undef() 660 const char *varname = varnames.words[i]; in Var_Undef() 830 ExportVar(varnames.words[i], scope, VEM_ENV); in Var_ReexportVars() 840 Words words = Str_Words(varnames, false); in ExportVars() local 843 if (words.len == 1 && words.words[0][0] == '\0') in ExportVars() 844 words.len = 0; in ExportVars() 846 for (i = 0; i < words.len; i++) { in ExportVars() 847 const char *varname = words.words[i]; in ExportVars() 857 Words_Free(words); in ExportVars() 984 SubstringWords words; in UnexportVars() local [all …]
|
/freebsd/contrib/tnftp/src/ |
H A D | complete.c | 86 complete_ambiguous(char *word, int list, StringList *words) in complete_ambiguous() argument 94 if (words->sl_cur == 0) in complete_ambiguous() 97 if (words->sl_cur == 1) { /* only once choice available */ in complete_ambiguous() 98 p = words->sl_str[0] + wordlen; in complete_ambiguous() 110 lastmatch = words->sl_str[0]; in complete_ambiguous() 112 for (i = 1 ; i < words->sl_cur ; i++) { in complete_ambiguous() 113 for (j = wordlen ; j < strlen(words->sl_str[i]); j++) in complete_ambiguous() 114 if (lastmatch[j] != words->sl_str[i][j]) in complete_ambiguous() 130 qsort(words->sl_str, words->sl_cur, sizeof(char *), comparstr); in complete_ambiguous() 131 list_vertical(words); in complete_ambiguous() [all …]
|
/freebsd/tools/tools/notescheck/ |
H A D | notescheck.py | 233 words = [] 236 words.append(group) 240 words.append(word) 242 return words 248 words = tokenize(line) 251 if words[0] == 'include': 255 if words[1] == 'standard': 259 if words[1] != 'optional' and words[1] != 'mandatory': 264 for word in words[2:]: 307 words = line.split() [all …]
|
/freebsd/contrib/kyua/utils/cmdline/ |
H A D | options_test.cpp | 300 const cmdline::list_option::option_type words = in ATF_TEST_CASE_BODY() local 302 ATF_REQUIRE(words.empty()); in ATF_TEST_CASE_BODY() 307 const cmdline::list_option::option_type words = in ATF_TEST_CASE_BODY() local 309 ATF_REQUIRE_EQ(1, words.size()); in ATF_TEST_CASE_BODY() 310 ATF_REQUIRE_EQ("foo", words[0]); in ATF_TEST_CASE_BODY() 315 const cmdline::list_option::option_type words = in ATF_TEST_CASE_BODY() local 317 ATF_REQUIRE_EQ(3, words.size()); in ATF_TEST_CASE_BODY() 318 ATF_REQUIRE_EQ("foo", words[0]); in ATF_TEST_CASE_BODY() 319 ATF_REQUIRE_EQ("bar", words[1]); in ATF_TEST_CASE_BODY() 320 ATF_REQUIRE_EQ("baz", words[2]); in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/sys/contrib/zlib/ |
H A D | crc32.c | 711 z_word_t const *words; in crc32_z() local 724 words = (z_word_t const *)buf; in crc32_z() 781 word0 = crc0 ^ words[0]; in crc32_z() 783 word1 = crc1 ^ words[1]; in crc32_z() 785 word2 = crc2 ^ words[2]; in crc32_z() 787 word3 = crc3 ^ words[3]; in crc32_z() 789 word4 = crc4 ^ words[4]; in crc32_z() 791 word5 = crc5 ^ words[5]; in crc32_z() 797 words += N; in crc32_z() 841 crc = crc_word(crc0 ^ words[0]); in crc32_z() [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | print-smb.c | 168 const u_char *words, const u_char *dat, const u_char *buf, const u_char *maxbuf) in print_trans2() argument 173 const u_char *w = words + 1; in print_trans2() 177 ND_TCHECK_1(words); in print_trans2() 186 if (GET_U_1(words) == 0) { in print_trans2() 201 if (GET_U_1(words) == 8) { in print_trans2() 202 smb_fdata(ndo, words + 1, in print_trans2() 207 smb_fdata(ndo, words + 1, in print_trans2() 209 words + 1 + 14 * 2, unicodestr); in print_trans2() 214 smb_fdata(ndo, words + 1, in print_trans2() 216 words + 1 + 10 * 2, unicodestr); in print_trans2() [all …]
|
/freebsd/sys/tools/syscalls/core/ |
H A D | scret.lua | 17 local words = util.split(self.scret, "%S+") 18 self.scret = words[1] 20 if words[2]:sub(1,1) == "*" then 23 while words[2]:sub(1,1) == "*" do 24 words[2] = words[2]:sub(2)
|
H A D | syscall.lua | 198 local words = util.split(line, "%S+") 199 self.num = words[1] 200 self.audit = words[2] 201 self.type = util.setFromString(words[3], "[^|]+") 203 self.name = words[4] 206 self.altname = words[5] 207 self.alttag = words[6] 208 self.rettype = words[7] 218 local words = util.split(line, "%S+") 220 if #words ~= 2 then [all …]
|
/freebsd/sys/libkern/ |
H A D | inet_ntop.c | 100 u_int words[NS_IN6ADDRSZ / NS_INT16SZ]; in inet_ntop6() local 108 memset(words, '\0', sizeof words); in inet_ntop6() 110 words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); in inet_ntop6() 116 if (words[i] == 0) { in inet_ntop6() 153 (best.len == 7 && words[7] != 0x0001) || in inet_ntop6() 154 (best.len == 5 && words[5] == 0xffff))) { in inet_ntop6() 160 tp += sprintf(tp, "%x", words[i]); in inet_ntop6()
|
/freebsd/contrib/ntp/libntp/lib/isc/ |
H A D | inet_ntop.c | 125 unsigned int words[NS_IN6ADDRSZ / NS_INT16SZ]; in inet_ntop6() local 133 memset(words, '\0', sizeof(words)); in inet_ntop6() 135 words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); in inet_ntop6() 140 if (words[i] == 0) { in inet_ntop6() 177 (best.len == 7 && words[7] != 0x0001) || in inet_ntop6() 178 (best.len == 5 && words[5] == 0xffff))) { in inet_ntop6() 185 tp += snprintf(tp, sizeof(tmp) - (tp - tmp), "%x", words[i]); in inet_ntop6()
|
/freebsd/lib/libc/inet/ |
H A D | inet_ntop.c | 112 u_int words[NS_IN6ADDRSZ / NS_INT16SZ]; in inet_ntop6() local 120 memset(words, '\0', sizeof words); in inet_ntop6() 122 words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); in inet_ntop6() 128 if (words[i] == 0) { in inet_ntop6() 165 (best.len == 7 && words[7] != 0x0001) || in inet_ntop6() 166 (best.len == 5 && words[5] == 0xffff))) { in inet_ntop6() 174 tp += sprintf(tp, "%x", words[i]); in inet_ntop6()
|
H A D | inet_net_ntop.c | 168 int words; in inet_net_ntop_ipv6() local 196 words = (bits + 15) / 16; in inet_net_ntop_ipv6() 197 if (words == 1) in inet_net_ntop_ipv6() 198 words = 2; in inet_net_ntop_ipv6() 202 for (i = 0; i < (words * 2); i += 2) { in inet_net_ntop_ipv6() 221 if (zero_l != words && zero_s == 0 && ((zero_l == 6) || in inet_net_ntop_ipv6() 227 for (p = 0; p < words; p++) { in inet_net_ntop_ipv6() 232 if (p == words - 1) in inet_net_ntop_ipv6()
|
H A D | inet_cidr_ntop.c | 162 u_int words[NS_IN6ADDRSZ / NS_INT16SZ]; in inet_cidr_ntop_ipv6() local 175 memset(words, '\0', sizeof words); in inet_cidr_ntop_ipv6() 177 words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); in inet_cidr_ntop_ipv6() 183 if (words[i] == 0) { in inet_cidr_ntop_ipv6() 220 (best.len == 7 && words[7] != 0x0001) || in inet_cidr_ntop_ipv6() 221 (best.len == 5 && words[5] == 0xffff))) { in inet_cidr_ntop_ipv6() 238 tp += SPRINTF((tp, "%x", words[i])); in inet_cidr_ntop_ipv6()
|
/freebsd/contrib/bmake/unit-tests/ |
H A D | varmod-unique.mk | 7 . warning The modifier ':u' only merges _adjacent_ duplicate words. 11 . warning The modifier ':u' must merge adjacent duplicate words. 31 . warning The modifier ':u' must merge _all_ adjacent duplicate words. 35 . warning The modifier ':u' must normalize whitespace between the words. 39 . warning Duplicate words at the beginning must be merged. 43 . warning Duplicate words at the end must be merged.
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | inet_ntop.c | 119 u_int words[IN6ADDRSZ / INT16SZ]; in inet_ntop6() local 128 memset(words, '\0', sizeof words); in inet_ntop6() 130 words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); in inet_ntop6() 134 if (words[i] == 0) { in inet_ntop6() 178 (best.len == 6 || (best.len == 5 && words[5] == 0xffff))) { in inet_ntop6() 184 advance = snprintf(tp, ep - tp, "%x", words[i]); in inet_ntop6()
|
/freebsd/sys/contrib/ck/include/ |
H A D | ck_bitmap.h | 317 unsigned int i, words, slop; in ck_bitmap_empty() local 322 words = limit / CK_BITMAP_BLOCK; in ck_bitmap_empty() 324 for (i = 0; i < words; i++) { in ck_bitmap_empty() 348 unsigned int i, slop, words; in ck_bitmap_full() local 354 words = limit / CK_BITMAP_BLOCK; in ck_bitmap_full() 356 for (i = 0; i < words; i++) { in ck_bitmap_full() 379 unsigned int count, i, slop, words; in ck_bitmap_count() local 384 words = limit / CK_BITMAP_BLOCK; in ck_bitmap_count() 386 for (i = 0, count = 0; i < words; i++) in ck_bitmap_count() 407 unsigned int count, i, slop, words; in ck_bitmap_count_intersect() local [all …]
|
/freebsd/contrib/unbound/compat/ |
H A D | inet_ntop.c | 125 u_int words[IN6ADDRSZ / INT16SZ]; in inet_ntop6() local 134 memset(words, '\0', sizeof words); in inet_ntop6() 136 words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); in inet_ntop6() 142 if (words[i] == 0) { in inet_ntop6() 186 (best.len == 6 || (best.len == 5 && words[5] == 0xffff))) { in inet_ntop6() 192 advance = snprintf(tp, ep - tp, "%x", words[i]); in inet_ntop6()
|
/freebsd/contrib/ldns/compat/ |
H A D | inet_ntop.c | 125 u_int words[IN6ADDRSZ / INT16SZ]; in inet_ntop6() local 134 memset(words, '\0', sizeof words); in inet_ntop6() 136 words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); in inet_ntop6() 142 if (words[i] == 0) { in inet_ntop6() 186 (best.len == 6 || (best.len == 5 && words[5] == 0xffff))) { in inet_ntop6() 192 advance = snprintf(tp, ep - tp, "%x", words[i]); in inet_ntop6()
|
/freebsd/sys/dev/ixl/ |
H A D | i40e_nvm.c | 262 u16 words, void *data, in i40e_read_nvm_aq() argument 278 if ((offset + words) > hw->nvm.sr_size) in i40e_read_nvm_aq() 281 (offset + words), hw->nvm.sr_size); in i40e_read_nvm_aq() 282 else if (words > I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_read_nvm_aq() 286 words, I40E_SR_SECTOR_SIZE_IN_WORDS); in i40e_read_nvm_aq() 287 else if (((offset + (words - 1)) / I40E_SR_SECTOR_SIZE_IN_WORDS) in i40e_read_nvm_aq() 292 offset, words); in i40e_read_nvm_aq() 296 2 * words, /*bytes*/ in i40e_read_nvm_aq() 453 u16 *words, u16 *data) in i40e_read_nvm_buffer_srctl() argument 461 for (word = 0; word < *words; word++) { in i40e_read_nvm_buffer_srctl() [all …]
|
/freebsd/tests/atf_python/sys/net/ |
H A D | tools.py | 92 words = line.split() 93 if words[0] == "inet6" and words[1].startswith("fe80"): 95 ip = words[1].split("%")[0] 96 scopeid = int(words[words.index("scopeid") + 1], 16)
|
/freebsd/tools/tools/locale/tools/ |
H A D | convert_map.pl | 97 @words = split /\s+/; 98 $name = $words[0]; 99 $utf8val = $words[1]; 127 @words = split /\s+/; 128 $utf8 = $words[1]; 131 $val = $words[0];
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | cracklib | 7 >4 long >0 (%i words) 9 >>8 long >-1 (%i words) 11 >4 belong >-1 (%i words) 14 >12 belong >0 (%i words)
|