| /netbsd/src/external/bsd/atf/dist/tools/ |
| D | text_test.cpp | 73 std::vector< std::string > words; in ATF_TEST_CASE_BODY() local 76 words.clear(); in ATF_TEST_CASE_BODY() 77 str = join(words, ","); in ATF_TEST_CASE_BODY() 80 words.clear(); in ATF_TEST_CASE_BODY() 81 words.push_back(""); in ATF_TEST_CASE_BODY() 82 str = join(words, ","); in ATF_TEST_CASE_BODY() 85 words.clear(); in ATF_TEST_CASE_BODY() 86 words.push_back(""); in ATF_TEST_CASE_BODY() 87 words.push_back(""); in ATF_TEST_CASE_BODY() 88 str = join(words, ","); in ATF_TEST_CASE_BODY() [all …]
|
| /netbsd/src/external/bsd/atf/dist/atf-c++/detail/ |
| D | text_test.cpp | 73 std::vector< std::string > words; in ATF_TEST_CASE_BODY() local 76 words.clear(); in ATF_TEST_CASE_BODY() 77 str = join(words, ","); in ATF_TEST_CASE_BODY() 80 words.clear(); in ATF_TEST_CASE_BODY() 81 words.push_back(""); in ATF_TEST_CASE_BODY() 82 str = join(words, ","); in ATF_TEST_CASE_BODY() 85 words.clear(); in ATF_TEST_CASE_BODY() 86 words.push_back(""); in ATF_TEST_CASE_BODY() 87 words.push_back(""); in ATF_TEST_CASE_BODY() 88 str = join(words, ","); in ATF_TEST_CASE_BODY() [all …]
|
| /netbsd/src/external/gpl3/binutils/dist/gas/config/ |
| D | atof-ieee.c | 146 make_invalid_floating_point_number (LITTLENUM_TYPE *words) in make_invalid_floating_point_number() argument 150 words[0] = (LITTLENUM_TYPE) ((unsigned) -1) >> 1; in make_invalid_floating_point_number() 151 words[1] = (LITTLENUM_TYPE) -1; in make_invalid_floating_point_number() 152 words[2] = (LITTLENUM_TYPE) -1; in make_invalid_floating_point_number() 153 words[3] = (LITTLENUM_TYPE) -1; in make_invalid_floating_point_number() 154 words[4] = (LITTLENUM_TYPE) -1; in make_invalid_floating_point_number() 155 words[5] = (LITTLENUM_TYPE) -1; in make_invalid_floating_point_number() 172 LITTLENUM_TYPE * words, in atof_ieee_detail() argument 207 make_invalid_floating_point_number (words); in atof_ieee_detail() 214 gen_to_words (words, precision, exponent_bits); in atof_ieee_detail() [all …]
|
| D | atof-vax.c | 141 make_invalid_floating_point_number (LITTLENUM_TYPE *words) in make_invalid_floating_point_number() argument 143 *words = 0x8000; /* Floating Reserved Operand Code. */ in make_invalid_floating_point_number() 192 LITTLENUM_TYPE *words) /* Build the binary here. */ in atof_vax() argument 213 make_invalid_floating_point_number (words); in atof_vax() 227 make_invalid_floating_point_number (words); in atof_vax() 230 else if (flonum_gen2vax (what_kind, &f, words)) in atof_vax() 243 LITTLENUM_TYPE *words) /* Deliver answer here. */ in flonum_gen2vax() argument 253 make_invalid_floating_point_number (words); in flonum_gen2vax() 259 memset (words, '\0', sizeof (LITTLENUM_TYPE) * precision); in flonum_gen2vax() 275 memset (words, 0x00, sizeof (LITTLENUM_TYPE) * precision); in flonum_gen2vax() [all …]
|
| /netbsd/src/external/bsd/atf/dist/atf-c/detail/ |
| D | text_test.c | 53 array_size(const char *words[]) in array_size() argument 59 for (word = words; *word != NULL; word++) in array_size() 67 check_split(const char *str, const char *delim, const char *words[]) in check_split() argument 76 printf("Expecting %zd words\n", array_size(words)); in check_split() 77 ATF_CHECK_EQ(atf_list_size(&list), array_size(words)); in check_split() 79 for (word = words, i = 0; *word != NULL; word++, i++) { in check_split() 80 printf("Word at position %zd should be '%s'\n", i, words[i]); in check_split() 81 ATF_CHECK_STREQ((const char *)atf_list_index_c(&list, i), words[i]); in check_split() 241 const char *words[] = { NULL }; in ATF_TC_BODY() local 242 check_split("", " ", words); in ATF_TC_BODY() [all …]
|
| /netbsd/src/usr.bin/make/ |
| 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 …]
|
| /netbsd/src/usr.bin/ftp/ |
| D | complete.c | 79 complete_ambiguous(char *word, int list, StringList *words) in complete_ambiguous() argument 87 if (words->sl_cur == 0) in complete_ambiguous() 90 if (words->sl_cur == 1) { /* only once choice available */ in complete_ambiguous() 91 p = words->sl_str[0] + wordlen; in complete_ambiguous() 102 lastmatch = words->sl_str[0]; in complete_ambiguous() 104 for (i = 1 ; i < words->sl_cur ; i++) { in complete_ambiguous() 105 for (j = wordlen; j < strlen(words->sl_str[i]); j++) in complete_ambiguous() 106 if (lastmatch[j] != words->sl_str[i][j]) in complete_ambiguous() 122 qsort(words->sl_str, words->sl_cur, sizeof(char *), comparstr); in complete_ambiguous() 123 list_vertical(words); in complete_ambiguous() [all …]
|
| /netbsd/src/bin/ksh/ |
| D | edit.c | 454 x_print_expansions(nwords, words, is_command) in x_print_expansions() argument 456 char *const *words; 469 && (prefix_len = x_longest_prefix(nwords, words)) > 0) 475 prefix_len = x_basename(words[0], (char *) 0); 478 if (x_basename(words[i] + prefix_len, (char *) 0) 484 && !ISDIRSEP(words[0][prefix_len - 1])) 489 XPput(l, words[i] + prefix_len); 499 pr_list(use_copy ? (char **) XPptrv(l) : words); 520 char **words; local 560 words = (char **) XPclose(w); [all …]
|
| /netbsd/src/sys/lib/libsa/ |
| D | byteorder.c | 52 uint32_t words[2]; member 162 un.words[BE64_HI] = sa_htobe32(val >> 32); in sa_htobe64() 163 un.words[BE64_LO] = sa_htobe32(val & 0xffffffffU); in sa_htobe64() 173 un.words[LE64_HI] = sa_htole32(val >> 32); in sa_htole64() 174 un.words[LE64_LO] = sa_htole32(val & 0xffffffffU); in sa_htole64() 186 un.words[BE64_HI] = sa_be32toh(un.words[BE64_HI]); in sa_be64toh() 187 un.words[BE64_LO] = sa_be32toh(un.words[BE64_LO]); in sa_be64toh() 189 rv = (((uint64_t)un.words[BE64_HI]) << 32) | in sa_be64toh() 190 un.words[BE64_LO]; in sa_be64toh() 202 un.words[LE64_HI] = sa_le32toh(un.words[LE64_HI]); in sa_le64toh() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/sim/common/ |
| D | sim-endian.c | 57 union { unsigned_8 dword; unsigned_4 words[2]; } in, out; \ 59 _SWAP_4 (out.words[0] =, in.words[1]); \ 60 _SWAP_4 (out.words[1] =, in.words[0]); \ 66 union { unsigned_16 word; unsigned_4 words[4]; } in, out; \ 68 _SWAP_4 (out.words[0] =, in.words[3]); \ 69 _SWAP_4 (out.words[1] =, in.words[2]); \ 70 _SWAP_4 (out.words[2] =, in.words[1]); \ 71 _SWAP_4 (out.words[3] =, in.words[0]); \
|
| /netbsd/src/usr.bin/mail/ |
| D | complete.c | 248 complete_ambiguous(EditLine *el, char *word, int dolist, StringList *words) in complete_ambiguous() argument 255 if (words->sl_cur == 0) in complete_ambiguous() 258 if (words->sl_cur == 1) { /* only once choice available */ in complete_ambiguous() 259 p = words->sl_str[0] + wordlen; in complete_ambiguous() 271 lastmatch = words->sl_str[0]; in complete_ambiguous() 273 for (i = 1; i < words->sl_cur; i++) { in complete_ambiguous() 274 for (j = wordlen; j < strlen(words->sl_str[i]); j++) in complete_ambiguous() 275 if (lastmatch[j] != words->sl_str[i][j]) in complete_ambiguous() 291 qsort(words->sl_str, words->sl_cur, sizeof(char *), comparstr); in complete_ambiguous() 293 list_vertical(words); in complete_ambiguous() [all …]
|
| /netbsd/src/lib/libc/gen/ |
| D | wordexp.c | 61 wordexp(const char * __restrict words, wordexp_t * __restrict we, int flags) in wordexp() argument 66 _DIAGASSERT(words != NULL); in wordexp() 75 if ((error = we_check(words, flags)) != 0) { in wordexp() 79 if ((error = we_askshell(words, we, flags)) != 0) { in wordexp() 93 we_askshell(const char *words, wordexp_t *we, int flags) in we_askshell() argument 112 if (asprintf(&cmd, "wordexp%c%s\n", *ifs, words) < 0) in we_askshell() 253 we_check(const char *words, int flags) in we_check() argument 259 while ((c = *words++) != '\0') { in we_check() 275 while ((c = *words++) != '\0' && c != '`') in we_check() 276 if (c == '\\' && (c = *words++) == '\0') in we_check() [all …]
|
| /netbsd/src/external/bsd/kyua-cli/dist/utils/cmdline/ |
| D | options_test.cpp | 301 const cmdline::list_option::option_type words = in ATF_TEST_CASE_BODY() local 303 ATF_REQUIRE(words.empty()); in ATF_TEST_CASE_BODY() 308 const cmdline::list_option::option_type words = in ATF_TEST_CASE_BODY() local 310 ATF_REQUIRE_EQ(1, words.size()); in ATF_TEST_CASE_BODY() 311 ATF_REQUIRE_EQ("foo", words[0]); in ATF_TEST_CASE_BODY() 316 const cmdline::list_option::option_type words = in ATF_TEST_CASE_BODY() local 318 ATF_REQUIRE_EQ(3, words.size()); in ATF_TEST_CASE_BODY() 319 ATF_REQUIRE_EQ("foo", words[0]); in ATF_TEST_CASE_BODY() 320 ATF_REQUIRE_EQ("bar", words[1]); in ATF_TEST_CASE_BODY() 321 ATF_REQUIRE_EQ("baz", words[2]); in ATF_TEST_CASE_BODY() [all …]
|
| /netbsd/src/common/dist/zlib/ |
| D | crc32.c | 713 z_word_t const *words; in crc32_z() local 726 words = (z_word_t const *)buf; in crc32_z() 783 word0 = crc0 ^ words[0]; in crc32_z() 785 word1 = crc1 ^ words[1]; in crc32_z() 787 word2 = crc2 ^ words[2]; in crc32_z() 789 word3 = crc3 ^ words[3]; in crc32_z() 791 word4 = crc4 ^ words[4]; in crc32_z() 793 word5 = crc5 ^ words[5]; in crc32_z() 799 words += N; in crc32_z() 843 crc = crc_word(crc0 ^ words[0]); in crc32_z() [all …]
|
| /netbsd/src/games/battlestar/ |
| D | parse.c | 108 if ((wp = lookup(words[n])) == NULL) { in parse() 123 strlcpy(words[i - 1], words[i], WORDLEN); in parse() 129 if (wordvalue[n] == AND && words[n][0] == ',' in parse() 143 strlcpy(words[i - 1], words[i], WORDLEN); in parse() 166 strcpy(tmpword, words[n - 1]); in parse() 167 strlcpy(words[n - 1], words[n + 1], WORDLEN); in parse() 168 strcpy(words[n + 1], tmpword); in parse() 180 strlcpy(words[i - 1], words[i + 1], WORDLEN); in parse()
|
| /netbsd/src/usr.bin/vndcompress/ |
| D | Makefile | 18 head -c 512 < /usr/share/dict/words > ${.TARGET}.tmp \ 25 head -c 5120 < /usr/share/dict/words > ${.TARGET}.tmp \ 32 head -c 12345 < /usr/share/dict/words > ${.TARGET}.tmp \ 40 head -c 54321 < /usr/share/dict/words \ 46 head -c 65536 < /usr/share/dict/words > ${.TARGET}.tmp \ 51 head -c 655360 < /usr/share/dict/words > ${.TARGET}.tmp \ 58 head -c $$((65536 + 512)) < /usr/share/dict/words > ${.TARGET}.tmp \ 65 head -c 123456 < /usr/share/dict/words > ${.TARGET}.tmp \ 71 head -c 512 < /usr/share/dict/words > ${.TARGET}.tmp \ 77 head -c 5120 < /usr/share/dict/words > ${.TARGET}.tmp \ [all …]
|
| /netbsd/src/external/bsd/tcpdump/dist/ |
| D | print-smb.c | 173 const u_char *words, const u_char *dat, const u_char *buf, const u_char *maxbuf) in print_trans2() argument 178 const u_char *w = words + 1; in print_trans2() 182 ND_TCHECK_1(words); in print_trans2() 191 if (GET_U_1(words) == 0) { in print_trans2() 206 if (GET_U_1(words) == 8) { in print_trans2() 207 smb_fdata(ndo, words + 1, in print_trans2() 212 smb_fdata(ndo, words + 1, in print_trans2() 214 words + 1 + 14 * 2, unicodestr); in print_trans2() 219 smb_fdata(ndo, words + 1, in print_trans2() 221 words + 1 + 10 * 2, unicodestr); in print_trans2() [all …]
|
| /netbsd/src/external/bsd/flex/dist/examples/fastwc/ |
| D | wc4.l | 6 words {word}{ws}+ 14 {words}{word}{ws}* wc += 2; cc += yyleng; 15 {words}{word}{ws}*\n wc += 2; cc += yyleng; ++lc; 16 {words}{2}{word}{ws}* wc += 3; cc += yyleng; 17 {words}{2}{word}{ws}*\n wc += 3; cc += yyleng; ++lc; 18 {words}{3}{word}{ws}* wc += 4; cc += yyleng; 19 {words}{3}{word}{ws}*\n wc += 4; cc += yyleng; ++lc;
|
| /netbsd/src/sys/arch/hpc/hpc/ |
| D | platid_copyright.awk | 37 words = "" 41 words=sprintf("%s%s\n", words, $0) 48 printf("%s", words) 51 words = ""
|
| /netbsd/src/external/bsd/libbind/dist/inet/ |
| D | inet_ntop.c | 130 u_int words[NS_IN6ADDRSZ / NS_INT16SZ]; local 138 memset(words, '\0', sizeof words); 140 words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); 146 if (words[i] == 0) { 183 (best.len == 7 && words[7] != 0x0001) || 184 (best.len == 5 && words[5] == 0xffff))) { 190 tp += SPRINTF((tp, "%x", words[i]));
|
| D | inet_net_ntop.c | 181 int words; in inet_net_ntop_ipv6() local 209 words = (bits + 15) / 16; in inet_net_ntop_ipv6() 210 if (words == 1) in inet_net_ntop_ipv6() 211 words = 2; in inet_net_ntop_ipv6() 215 for (i = 0; i < (words * 2); i += 2) { in inet_net_ntop_ipv6() 234 if (zero_l != words && zero_s == 0 && ((zero_l == 6) || in inet_net_ntop_ipv6() 240 for (p = 0; p < words; p++) { in inet_net_ntop_ipv6() 245 if (p == words - 1) in inet_net_ntop_ipv6()
|
| /netbsd/src/sys/dev/ |
| D | devlist2h.awk | 141 if (words[$f, 1] == 0) { 146 words[$f, 1] = nwords; 147 words[$f, 2] = l; 152 wordlist[words[$f, 1], 2]++; 153 vendors[nvendors, i] = words[$f, 1]; 203 if (words[$f, 1] == 0) { 208 words[$f, 2] = l; 209 words[$f, 1] = nwords; 214 productlen += words[$f, 2] + 1; 215 wordlist[words[$f, 1], 2]++; [all …]
|
| D | dev_verbose.c | 40 dev_untokenstring(const char *words, const uint32_t *token, char *buf, in dev_untokenstring() argument 48 newlen = strlcat(buf, words + *token, len - 2); in dev_untokenstring() 60 dev_findvendor(char *buf, size_t len, const char *words, size_t nwords, in dev_findvendor() argument 68 return dev_untokenstring(words, &vendors[n + 1], in dev_findvendor() 81 dev_findproduct(char *buf, size_t len, const char *words, size_t nwords, in dev_findproduct() argument 89 return dev_untokenstring(words, &products[n + 2], in dev_findproduct()
|
| /netbsd/src/usr.bin/make/unit-tests/ |
| 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.
|
| /netbsd/src/lib/libc/inet/ |
| D | inet_ntop.c | 136 u_int words[NS_IN6ADDRSZ / NS_INT16SZ]; in inet_ntop6() local 148 memset(words, '\0', sizeof words); in inet_ntop6() 150 words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); in inet_ntop6() 156 if (words[i] == 0) { in inet_ntop6() 198 (best.len == 7 && words[7] != 0x0001) || in inet_ntop6() 199 (best.len == 5 && words[5] == 0xffff))) { in inet_ntop6() 205 advance = snprintf(tp, (size_t)(ep - tp), "%x", words[i]); in inet_ntop6()
|