| /mirbsd/src/lib/libc/gen/ |
| D | vis.c | 116 #define HVIS(dst, c, flag, nextc, extra) \ argument 119 *dst++ = '%'; \ 120 *dst++ = xtoa(((unsigned int)c >> 4) & 0xf); \ 121 *dst++ = xtoa((unsigned int)c & 0xf); \ 123 SVIS(dst, c, flag, nextc, extra); \ 136 #define SVIS(dst, c, flag, nextc, extra) \ argument 142 *dst++ = c; \ 148 *dst++ = '\\'; *dst++ = 'n'; \ 151 *dst++ = '\\'; *dst++ = 'r'; \ 154 *dst++ = '\\'; *dst++ = 'b'; \ [all …]
|
| D | unvis.c | 213 strunvis(char *dst, const char *src) in strunvis() argument 216 char *start = dst; in strunvis() 221 switch (unvis(dst, c, &state, 0)) { in strunvis() 223 dst++; in strunvis() 226 dst++; in strunvis() 232 *dst = '\0'; in strunvis() 236 if (unvis(dst, c, &state, UNVIS_END) == UNVIS_VALID) in strunvis() 237 dst++; in strunvis() 238 *dst = '\0'; in strunvis() 239 return (dst - start); in strunvis() [all …]
|
| /mirbsd/src/gnu/usr.bin/binutils/bfd/ |
| D | nlmswap.h | 38 Nlm_Internal_Fixed_Header *dst) in nlm_swap_fixed_header_in() argument 42 memcpy (dst->signature, src->signature, NLM_SIGNATURE_SIZE); in nlm_swap_fixed_header_in() 43 memcpy (dst->moduleName, src->moduleName, NLM_MODULE_NAME_SIZE); in nlm_swap_fixed_header_in() 44 dst->version = in nlm_swap_fixed_header_in() 46 dst->codeImageOffset = in nlm_swap_fixed_header_in() 48 dst->codeImageSize = in nlm_swap_fixed_header_in() 50 dst->dataImageOffset = in nlm_swap_fixed_header_in() 52 dst->dataImageSize = in nlm_swap_fixed_header_in() 54 dst->uninitializedDataSize = in nlm_swap_fixed_header_in() 56 dst->customDataOffset = in nlm_swap_fixed_header_in() [all …]
|
| D | elfcode.h | 172 Elf_Internal_Sym *dst) in elf_swap_symbol_in() argument 178 dst->st_name = H_GET_32 (abfd, src->st_name); in elf_swap_symbol_in() 180 dst->st_value = H_GET_SIGNED_WORD (abfd, src->st_value); in elf_swap_symbol_in() 182 dst->st_value = H_GET_WORD (abfd, src->st_value); in elf_swap_symbol_in() 183 dst->st_size = H_GET_WORD (abfd, src->st_size); in elf_swap_symbol_in() 184 dst->st_info = H_GET_8 (abfd, src->st_info); in elf_swap_symbol_in() 185 dst->st_other = H_GET_8 (abfd, src->st_other); in elf_swap_symbol_in() 186 dst->st_shndx = H_GET_16 (abfd, src->st_shndx); in elf_swap_symbol_in() 187 if (dst->st_shndx == SHN_XINDEX) in elf_swap_symbol_in() 191 dst->st_shndx = H_GET_32 (abfd, shndx->est_shndx); in elf_swap_symbol_in() [all …]
|
| /mirbsd/src/lib/libc/net/ |
| D | inet_net_ntop.c | 45 inet_net_ntop(int af, const void *src, int bits, char *dst, size_t size) in inet_net_ntop() argument 49 return (inet_net_ntop_ipv4(src, bits, dst, size)); in inet_net_ntop() 70 inet_net_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size) in inet_net_ntop_ipv4() argument 72 char *odst = dst; in inet_net_ntop_ipv4() 78 ep = dst + size; in inet_net_ntop_ipv4() 79 if (ep <= dst) in inet_net_ntop_ipv4() 87 if ((size_t)(ep - dst) < sizeof("0")) in inet_net_ntop_ipv4() 89 *dst++ = '0'; in inet_net_ntop_ipv4() 90 *dst = '\0'; in inet_net_ntop_ipv4() 95 if ((size_t)(ep - dst) < sizeof("255.")) in inet_net_ntop_ipv4() [all …]
|
| D | inet_neta.c | 43 inet_neta(in_addr_t src, char *dst, size_t size) in inet_neta() argument 45 char *odst = dst; in inet_neta() 52 strlcpy(dst, "0.0.0.0", size); in inet_neta() 53 return dst; in inet_neta() 55 ep = dst + size; in inet_neta() 56 if (ep <= dst) in inet_neta() 63 if ((size_t)(ep - dst) < sizeof("255.")) in inet_neta() 65 advance = snprintf(dst, ep - dst, "%u", b); in inet_neta() 66 if (advance <= 0 || advance >= ep - dst) in inet_neta() 68 dst += advance; in inet_neta() [all …]
|
| D | inet_net_pton.c | 53 inet_net_pton(int af, const char *src, void *dst, size_t size) in inet_net_pton() argument 57 return (inet_net_pton_ipv4(src, dst, size)); in inet_net_pton() 81 inet_net_pton_ipv4(const char *src, u_char *dst, size_t size) in inet_net_pton_ipv4() argument 84 const u_char *odst = dst; in inet_net_pton_ipv4() 92 *dst = 0, dirty = 0; in inet_net_pton_ipv4() 101 *dst |= n; in inet_net_pton_ipv4() 103 *dst <<= 4; in inet_net_pton_ipv4() 105 *++dst = 0, dirty = 0; in inet_net_pton_ipv4() 127 *dst++ = (u_char) tmp; in inet_net_pton_ipv4() 140 if (ch == '/' && isascii(src[0]) && isdigit(src[0]) && dst > odst) { in inet_net_pton_ipv4() [all …]
|
| /mirbsd/src/lib/libncurses/src/ncurses/tinfo/ |
| D | strings.c | 70 _nc_str_init(string_desc * dst, char *src, size_t len) in _nc_str_init() argument 72 if (dst != 0) { in _nc_str_init() 73 dst->s_head = src; in _nc_str_init() 74 dst->s_tail = src; in _nc_str_init() 75 dst->s_size = len - 1; in _nc_str_init() 76 dst->s_init = dst->s_size; in _nc_str_init() 80 return dst; in _nc_str_init() 87 _nc_str_null(string_desc * dst, size_t len) in _nc_str_null() argument 89 return _nc_str_init(dst, 0, len); in _nc_str_null() 96 _nc_str_copy(string_desc * dst, string_desc * src) in _nc_str_copy() argument [all …]
|
| /mirbsd/src/gnu/usr.sbin/sendmail/libsm/ |
| D | strl.c | 58 sm_strlcpy(dst, src, size) 59 register char *dst; 67 for (i = 0; i < size && (dst[i] = src[i]) != 0; i++) 69 dst[i] = '\0'; 104 sm_strlcat(dst, src, size) in sm_strlcat() argument 105 register char *dst; in sm_strlcat() 111 o = strlen(dst); 115 for (i = 0, j = o; i < size && (dst[j] = src[i]) != 0; i++, j++) 117 dst[j] = '\0'; 148 sm_strlcat2(dst, src1, src2, len) in sm_strlcat2() argument [all …]
|
| /mirbsd/src/sys/dev/raidframe/ |
| D | rf_nwayxor.c | 112 unsigned long *dst = (unsigned long *) dest_rb->buffer; in rf_nWayXor2() local 113 unsigned long *a = dst; in rf_nWayXor2() 120 while ((((unsigned long) dst) & 0x1f)) { in rf_nWayXor2() 121 *dst++ = *a++ ^ *b++ ^ *c++; in rf_nWayXor2() 158 dst[0] = a0; in rf_nWayXor2() 160 dst[1] = a1; in rf_nWayXor2() 162 dst[2] = a2; in rf_nWayXor2() 163 dst[3] = a3; in rf_nWayXor2() 164 dst += 4; in rf_nWayXor2() 167 *dst++ = *a++ ^ *b++ ^ *c++; in rf_nWayXor2() [all …]
|
| /mirbsd/src/gnu/usr.bin/binutils/opcodes/ |
| D | msp430-dis.c | 95 short dst = 0; in msp430_singleoperand() local 140 dst = msp430dis_opcode (addr + 2, info); in msp430_singleoperand() 143 sprintf (op, "0x%04x", dst); in msp430_singleoperand() 145 PS ((short) (addr + 2) + dst)); in msp430_singleoperand() 150 dst = msp430dis_opcode (addr + 2, info); in msp430_singleoperand() 153 sprintf (op, "&0x%04x", PS (dst)); in msp430_singleoperand() 157 dst = msp430dis_opcode (addr + 2, info); in msp430_singleoperand() 160 sprintf (op, "%d(r%d)", dst, regd); in msp430_singleoperand() 218 dst = msp430dis_opcode (addr + 2, info); in msp430_singleoperand() 220 sprintf (op, "#%d", dst); in msp430_singleoperand() [all …]
|
| /mirbsd/src/gnu/usr.bin/perl/ext/Encode/t/ |
| D | fallback.t | 56 my $dst = $ascii->encode($src, FB_DEFAULT); 57 is($dst, $af, "FB_DEFAULT ascii"); 61 $dst = $utf8->decode($src, FB_DEFAULT); 62 is($dst, $uf, "FB_DEFAULT utf8"); 66 eval{ $dst = $ascii->encode($src, FB_CROAK) }; 71 eval{ $dst = $utf8->decode($src, FB_CROAK) }; 76 eval{ $dst = $ascii->encode($src, FB_CROAK) }; 81 eval{ $dst = $utf8->decode($src, FB_CROAK) }; 86 $dst = $ascii->encode($src, FB_QUIET); 87 is($dst, $aq, "FB_QUIET ascii"); [all …]
|
| /mirbsd/src/lib/libc/stdlib/ |
| D | gcvt.c | 32 char *digits, *dst, *src; in gcvt() local 47 dst = buf; in gcvt() 49 *dst++ = '-'; in gcvt() 59 *dst++ = *src++; in gcvt() 60 *dst++ = 'e'; in gcvt() 62 *dst++ = '-'; in gcvt() 64 *dst++ = '+'; in gcvt() 66 *dst++ = '0'; in gcvt() 67 *dst++ = '0' + decpt; in gcvt() 68 *dst = '\0'; in gcvt() [all …]
|
| /mirbsd/src/gnu/share/ |
| D | install-sh | 98 dst= 240 dst=$src 241 dstdir=$dst 259 dst=$dst_arg 261 case $dst in 262 -*) dst=./$dst;; 267 if test -d "$dst"; then 272 dstdir=$dst 273 dst=$dstdir/`basename "$src"` 278 (dirname "$dst") 2>/dev/null || [all …]
|
| /mirbsd/src/usr.sbin/mrouted/ |
| D | igmp.c | 124 register u_int32_t src, dst, group; in accept_igmp() local 137 dst = ip->ip_dst.s_addr; in accept_igmp() 145 if (src == 0 || dst == 0) in accept_igmp() 148 add_table_entry(src, dst); in accept_igmp() 173 inet_fmt(src, s1), inet_fmt(dst, s2)); in accept_igmp() 178 accept_membership_query(src, dst, group, igmp->igmp_code); in accept_igmp() 183 accept_group_report(src, dst, group, igmp->igmp_type); in accept_igmp() 187 accept_leave_message(src, dst, group); in accept_igmp() 195 accept_probe(src, dst, in accept_igmp() 200 accept_report(src, dst, in accept_igmp() [all …]
|
| /mirbsd/src/sys/net/ |
| D | if_gif.c | 154 struct sockaddr dst; local 161 bzero(&dst, sizeof(dst)); 168 dst.sa_family = AF_LINK; 181 else gif_output(ifp, m, &dst, NULL); 189 gif_output(ifp, m, dst, rt) in gif_output() argument 192 struct sockaddr *dst; 244 u_int32_t af = dst->sa_family; 260 error = in_gif_output(ifp, dst->sa_family, m, rt); 265 error = in6_gif_output(ifp, dst->sa_family, m, rt); 289 struct sockaddr *dst, *src; local [all …]
|
| /mirbsd/src/gnu/usr.bin/perl/ext/Encode/ |
| D | Encode.xs | 103 SV *dst = sv_2mortal(newSV(slen+1)); in encode_method() local 104 U8 *d = (U8 *)SvPVX(dst); in encode_method() 105 STRLEN dlen = SvLEN(dst)-1; in encode_method() 121 SvCUR_set(dst, 0); in encode_method() 122 SvPOK_only(dst); in encode_method() 129 SvCUR_set(dst, dlen+ddone); in encode_method() 130 SvPOK_only(dst); in encode_method() 147 more, sdone, sleft, SvLEN(dst)); in encode_method() 151 more = (1.0*tlen*SvLEN(dst)+sdone-1)/sdone in encode_method() 152 - SvLEN(dst); in encode_method() [all …]
|
| /mirbsd/src/sbin/isakmpd/ |
| D | udp.c | 227 u2->dst = malloc(SA_LEN(raddr)); in udp_clone() 228 if (!u2->dst) { in udp_clone() 235 memcpy(u2->dst, raddr, SA_LEN(raddr)); in udp_clone() 271 struct sockaddr *dst, *addr; in udp_create() local 288 if (text2sockaddr(addr_str, port_str, &dst, 0, 0)) { in udp_create() 297 v = virtual_get_default(dst->sa_family); in udp_create() 305 rv = udp_clone((struct transport *)u, dst); in udp_create() 345 rv = udp_clone(v->main, dst); in udp_create() 352 free(dst); in udp_create() 363 if (u->dst) in udp_remove() [all …]
|
| /mirbsd/src/sys/netipx/ |
| D | ipx_outputfl.c | 66 struct sockaddr_ipx *dst; local 76 dst = (struct sockaddr_ipx *)&ro->ro_dst; 78 dst->sipx_family = AF_IPX; 79 dst->sipx_len = sizeof(*dst); 80 dst->sipx_addr = ipx->ipx_dna; 81 dst->sipx_addr.ipx_port = 0; 113 dst = (struct sockaddr_ipx *)ro->ro_rt->rt_gateway; 120 if (dst->sipx_addr.ipx_host.c_host[0] & 1) { 137 error = (*ifp->if_output)(ifp, m0, (struct sockaddr *)dst, 172 struct sockaddr_ipx dst; local [all …]
|
| /mirbsd/src/usr.sbin/httpd/src/helpers/ |
| D | install.sh | 39 dst="" 66 dst=$1 76 if [ "x$dst" = "x" ]; then 86 if [ -d $dst ]; then 87 dst="$dst/`basename $src`" 100 dst="$dst$ext" 103 dstdir=`dirname $dst` 116 $rmcmd $dst 117 $mvcmd $dsttmp $dst
|
| /mirbsd/src/lib/libc/i18n/ |
| D | wcsrtombs.c | 30 wcsnrtombs(char *dst, const wchar_t **src, size_t max, size_t len, mbstate_t *ps) in wcsnrtombs() argument 33 wcsrtombs(char *dst, const wchar_t **src, size_t len, mbstate_t *ps) in wcsnrtombs() 38 unsigned char *d = (unsigned char *)dst; in wcsnrtombs() 43 if ((dst != NULL) && (len == 0)) in wcsnrtombs() 67 if (dst != NULL) in wcsnrtombs() 71 if (dst != NULL) in wcsnrtombs() 75 if (dst != NULL) in wcsnrtombs() 87 while (__predict_false((count > 0) && ((len > 0) || (dst == NULL)))) { in wcsnrtombs() 89 if (dst != NULL) in wcsnrtombs() 101 if ((len > 0) || (dst == NULL)) in wcsnrtombs() [all …]
|
| /mirbsd/src/sys/dev/rasops/ |
| D | rasops_bitops.h | 165 NAME(copycols)(cookie, row, src, dst, num) 167 int row, src, dst, num; variable 176 if (dst == src) 191 if (dst < 0) { 192 num += dst; 193 dst = 0; 196 if ((dst + num) > ri->ri_cols) 197 num = ri->ri_cols - dst; 205 dst *= cnt; 209 db = dst & 31; [all …]
|
| /mirbsd/src/kern/c/ |
| D | memcpy.c | 30 memmove(void *dst, const void *src, size_t len) in memmove() argument 33 uint8_t *d = dst; in memmove() 35 uint8_t * const rv = dst + len; in memmove() 39 if (src < dst) { in memmove() 51 return (dst); in memmove() 58 bcopy(const void *src, void *dst, size_t len) in bcopy() argument 60 memmove(dst, src, len); in bcopy() 66 memcpy(void *dst, const void *src, size_t len) in memcpy() argument 68 return (memmove(dst, src, len)); in memcpy()
|
| /mirbsd/src/sys/dev/ic/ |
| D | isp_inline.h | 641 isp_get_pdb(struct ispsoftc *isp, isp_pdb_t *src, isp_pdb_t *dst) in isp_get_pdb() argument 644 ISP_IOXGET_16(isp, &src->pdb_options, dst->pdb_options); in isp_get_pdb() 645 ISP_IOXGET_8(isp, &src->pdb_mstate, dst->pdb_mstate); in isp_get_pdb() 646 ISP_IOXGET_8(isp, &src->pdb_sstate, dst->pdb_sstate); in isp_get_pdb() 649 dst->pdb_hardaddr_bits[i]); in isp_get_pdb() 653 dst->pdb_portid_bits[i]); in isp_get_pdb() 656 ISP_IOXGET_8(isp, &src->pdb_nodename[i], dst->pdb_nodename[i]); in isp_get_pdb() 659 ISP_IOXGET_8(isp, &src->pdb_portname[i], dst->pdb_portname[i]); in isp_get_pdb() 661 ISP_IOXGET_16(isp, &src->pdb_execthrottle, dst->pdb_execthrottle); in isp_get_pdb() 662 ISP_IOXGET_16(isp, &src->pdb_exec_count, dst->pdb_exec_count); in isp_get_pdb() [all …]
|
| /mirbsd/src/usr.sbin/mrinfo/ |
| D | mrinfo.c | 107 void ask(u_int32_t dst); 108 void ask2(u_int32_t dst); 171 ask(u_int32_t dst) in ask() argument 173 send_igmp(our_addr, dst, IGMP_DVMRP, DVMRP_ASK_NEIGHBORS, in ask() 178 ask2(u_int32_t dst) in ask2() argument 180 send_igmp(our_addr, dst, IGMP_DVMRP, DVMRP_ASK_NEIGHBORS2, in ask2() 188 accept_neighbors(u_int32_t src, u_int32_t dst, u_char *p, int datalen, in accept_neighbors() argument 220 accept_neighbors2(u_int32_t src, u_int32_t dst, u_char *p, int datalen, in accept_neighbors2() argument 411 u_int32_t src, dst, group; in main() local 474 dst = ip->ip_dst.s_addr; in main() [all …]
|