/bionic/libc/dns/nameser/ |
D | ns_netint.c | 37 uint16_t dst; in ns_get16() local 39 NS_GET16(dst, src); in ns_get16() 40 return dst; in ns_get16() 45 u_int32_t dst; in ns_get32() local 47 NS_GET32(dst, src); in ns_get32() 48 return dst; in ns_get32() 52 ns_put16(uint16_t src, u_char *dst) { in ns_put16() argument 53 NS_PUT16(src, dst); in ns_put16() 57 ns_put32(uint32_t src, u_char *dst) { in ns_put32() argument 58 NS_PUT32(src, dst); in ns_put32()
|
D | ns_ttl.c | 50 ns_format_ttl(u_long src, char *dst, size_t dstlen) { in ns_format_ttl() argument 51 char *odst = dst; in ns_format_ttl() 63 T(fmt1(weeks, 'W', &dst, &dstlen)); in ns_format_ttl() 67 T(fmt1(days, 'D', &dst, &dstlen)); in ns_format_ttl() 71 T(fmt1(hours, 'H', &dst, &dstlen)); in ns_format_ttl() 75 T(fmt1(mins, 'M', &dst, &dstlen)); in ns_format_ttl() 79 T(fmt1(secs, 'S', &dst, &dstlen)); in ns_format_ttl() 91 _DIAGASSERT(__type_fit(int, dst - odst)); in ns_format_ttl() 92 return (int)(dst - odst); in ns_format_ttl() 97 ns_parse_ttl(const char *src, u_long *dst) { in ns_parse_ttl() argument [all …]
|
D | ns_samedomain.c | 170 ns_makecanon(const char *src, char *dst, size_t dstsize) { in ns_makecanon() argument 177 strcpy(dst, src); in ns_makecanon() 178 while (n >= 1U && dst[n - 1] == '.') /* Ends in "." */ in ns_makecanon() 179 if (n >= 2U && dst[n - 2] == '\\' && /* Ends in "\." */ in ns_makecanon() 180 (n < 3U || dst[n - 3] != '\\')) /* But not "\\." */ in ns_makecanon() 183 dst[--n] = '\0'; in ns_makecanon() 184 dst[n++] = '.'; in ns_makecanon() 185 dst[n] = '\0'; in ns_makecanon()
|
/bionic/libc/arch-arm64/denver64/bionic/ |
D | memset.S | 61 #define dst x8 macro 68 mov dst, dstin /* Preserve return value. */ 89 stp QA_l, QA_l, [dst], #32 90 stp QA_l, QA_l, [dst], #32 92 stp QA_l, QA_l, [dst], #32 93 stp QA_l, QA_l, [dst], #32 95 stp QA_l, QA_l, [dst], #32 96 stp QA_l, QA_l, [dst], #32 100 add dst, dst, tmp1 104 stp A_l, A_l, [dst, #-48] [all …]
|
D | memcpy_base.S | 45 #define dst x6 macro 61 mov dst, dstin 74 add dst, dst, tmp1 80 stp A_l, A_h, [dst, #-48] 83 stp A_l, A_h, [dst, #-32] 86 stp A_l, A_h, [dst, #-16] 93 add dst, dst, count 94 stp A_l, A_h, [dst, #-16] 103 str tmp1, [dst], #8 107 str tmp1w, [dst], #4 [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | memmove.c | 51 char *dst = dst0; in memmove() local 55 if (length == 0 || dst == src) /* nothing to do */ in memmove() 64 if ((unsigned long)dst < (unsigned long)src) { in memmove() 69 if ((t | (long)dst) & wmask) { in memmove() 74 if ((t ^ (long)dst) & wmask || length < wsize) in memmove() 79 TLOOP1(*dst++ = *src++); in memmove() 85 TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize); in memmove() 87 TLOOP(*dst++ = *src++); in memmove() 95 dst += length; in memmove() 97 if ((t | (long)dst) & wmask) { in memmove() [all …]
|
D | stpncpy.c | 38 stpncpy(char *dst, const char *src, size_t n) in stpncpy() argument 41 char *d = dst; in stpncpy() 44 dst = &dst[n]; in stpncpy() 47 dst = d - 1; in stpncpy() 55 return (dst); in stpncpy()
|
D | strlcat.c | 30 strlcat(char *dst, const char *src, size_t dsize) in strlcat() argument 32 const char *odst = dst; in strlcat() 38 while (n-- != 0 && *dst != '\0') in strlcat() 39 dst++; in strlcat() 40 dlen = dst - odst; in strlcat() 47 *dst++ = *src; in strlcat() 52 *dst = '\0'; in strlcat()
|
D | strncpy.c | 42 strncpy(char *dst, const char *src, size_t n) in strncpy() argument 45 char *d = dst; in strncpy() 57 return (dst); in strncpy()
|
D | strncat.c | 41 strncat(char *dst, const char *src, size_t n) in strncat() argument 44 char *d = dst; in strncat() 56 return (dst); in strncat()
|
D | strlcpy.c | 28 strlcpy(char *dst, const char *src, size_t dsize) in strlcpy() argument 36 if ((*dst++ = *src++) == '\0') in strlcpy() 44 *dst = '\0'; /* NUL-terminate dst */ in strlcpy()
|
/bionic/libc/arch-arm64/generic/bionic/ |
D | memcpy_base.S | 44 #define dst x6 macro 55 mov dst, dstin 68 add dst, dst, tmp1 74 stp A_l, A_h, [dst, #-48] 77 stp A_l, A_h, [dst, #-32] 80 stp A_l, A_h, [dst, #-16] 87 add dst, dst, count 88 stp A_l, A_h, [dst, #-16] 97 str tmp1, [dst], #8 101 str tmp1w, [dst], #4 [all …]
|
D | memset.S | 64 #define dst x8 macro 73 mov dst, dstin /* Preserve return value. */ 91 add dst, dst, tmp1 95 stp A_l, A_l, [dst, #-48] 97 stp A_l, A_l, [dst, #-32] 99 stp A_l, A_l, [dst, #-16] 103 add dst, dst, count 104 stp A_l, A_l, [dst, #-16] /* Repeat some/all of last store. */ 111 str A_l, [dst], #8 114 str A_lw, [dst], #4 [all …]
|
D | memmove.S | 47 #define dst x6 macro 73 add dst, dstin, count 85 sub dst, dst, tmp1 91 stp A_l, A_h, [dst, #32] 94 stp A_l, A_h, [dst, #16] 97 stp A_l, A_h, [dst] 103 str tmp1, [dst, #-8]! 107 str tmp1w, [dst, #-4]! 111 strh tmp1w, [dst, #-2]! 115 strb tmp1w, [dst, #-1] [all …]
|
D | string_copy.S | 70 #define dst x0 macro 78 #define dst x2 macro 106 mov dst, dstin 128 stp data1, data2, [dst], #16 138 str data1, [dst], #7 140 str data1, [dst] 145 str data1_w, [dst], #4 149 strh data1_w, [dst], #2 153 strb data1_w, [dst] 160 sub dst, dst, #1 [all …]
|
/bionic/libc/kernel/tools/ |
D | utils.py | 84 dst = "%s/%s" % (root,f) 85 self.old_files.add(dst) 87 def editFile(self,dst,data): argument 93 if os.path.exists(dst): 94 f = open(dst, "r") 98 self.old_files.remove(dst) 103 self.new_data[dst] = data 104 self.new_files.add(dst) 113 for dst in self.new_files: 114 if not (dst in self.old_files): [all …]
|
/bionic/libc/upstream-freebsd/lib/libc/string/ |
D | wcpncpy.c | 33 wcpncpy(wchar_t * __restrict dst, const wchar_t * __restrict src, size_t n) in wcpncpy() argument 36 for (; n--; dst++, src++) { in wcpncpy() 37 if (!(*dst = *src)) { in wcpncpy() 38 wchar_t *ret = dst; in wcpncpy() 40 *++dst = L'\0'; in wcpncpy() 44 return (dst); in wcpncpy()
|
/bionic/libc/dns/include/ |
D | hostent.h | 67 #define HENT_ARRAY(dst, anum, ptr, len) \ argument 69 size_t _len = (anum + 1) * sizeof(*dst); \ 72 dst = (void *)ptr; \ 77 #define HENT_COPY(dst, src, slen, ptr, len) \ argument 82 dst = ptr; \ 87 #define HENT_SCOPY(dst, src, ptr, len) \ argument 90 HENT_COPY(dst, src, _len, ptr, len); \
|
/bionic/libc/bionic/ |
D | syslog.cpp | 83 char* dst = reinterpret_cast<char*>(malloc(dst_len)); in vsyslog() local 84 log_fmt = dst; in vsyslog() 90 size_t n = strlcpy(dst, strerror(caller_errno), dst_len); in vsyslog() 94 dst += n; in vsyslog() 102 *dst++ = '%'; --dst_len; in vsyslog() 103 *dst++ = '%'; --dst_len; in vsyslog() 106 *dst++ = *src; --dst_len; in vsyslog() 109 *dst = '\0'; in vsyslog()
|
/bionic/libc/upstream-netbsd/lib/libc/string/ |
D | strxfrm.c | 53 strxfrm(char *dst, const char *src, size_t n) in strxfrm() argument 64 _DIAGASSERT(dst != NULL); in strxfrm() 66 (void)memcpy(dst, src, copysize); in strxfrm() 67 dst[copysize] = 0; in strxfrm()
|
/bionic/benchmarks/ |
D | string_benchmark.cpp | 32 char* src = new char[nbytes]; char* dst = new char[nbytes]; in BM_string_memcmp() local 34 memset(dst, 'x', nbytes); in BM_string_memcmp() 38 c += memcmp(dst, src, nbytes); in BM_string_memcmp() 43 delete[] dst; in BM_string_memcmp() 49 char* src = new char[nbytes]; char* dst = new char[nbytes]; in BM_string_memcpy() local 53 memcpy(dst, src, nbytes); in BM_string_memcpy() 58 delete[] dst; in BM_string_memcpy() 78 char* dst = new char[nbytes]; in BM_string_memset() local 81 memset(dst, 0, nbytes); in BM_string_memset() 85 delete[] dst; in BM_string_memset()
|
/bionic/tests/ |
D | wchar_test.cpp | 421 wchar_t dst[128]; in TEST() local 425 memset(dst, 0, sizeof(dst)); in TEST() 427 ASSERT_EQ(0U, mbsnrtowcs(dst, &src, 0, 0, NULL)); in TEST() 429 memset(dst, 0, sizeof(dst)); in TEST() 431 ASSERT_EQ(2U, mbsnrtowcs(dst, &src, 2, 123, NULL)); // glibc chokes on SIZE_MAX here. in TEST() 432 ASSERT_EQ(L'h', dst[0]); in TEST() 433 ASSERT_EQ(L'e', dst[1]); in TEST() 436 memset(dst, 0, sizeof(dst)); in TEST() 438 ASSERT_EQ(3U, mbsnrtowcs(dst, &src, SIZE_MAX, 3, NULL)); in TEST() 439 ASSERT_EQ(L'h', dst[0]); in TEST() [all …]
|
/bionic/libc/dns/resolv/ |
D | res_comp.c | 105 char *dst, int dstsiz) in dn_expand() argument 107 int n = ns_name_uncompress(msg, eom, src, dst, (size_t)dstsiz); in dn_expand() 109 if (n > 0 && dst[0] == '.') in dn_expand() 110 dst[0] = '\0'; in dn_expand() 120 dn_comp(const char *src, u_char *dst, int dstsiz, in dn_comp() argument 123 return (ns_name_compress(src, dst, (size_t)dstsiz, in dn_comp() 260 void __putlong(u_int32_t src, u_char *dst) { ns_put32(src, dst); } in __putlong() argument 261 void __putshort(u_int16_t src, u_char *dst) { ns_put16(src, dst); } in __putshort() argument
|
/bionic/libc/include/ |
D | sched.h | 86 #define CPU_AND(dst, set1, set2) __CPU_OP(dst, set1, set2, &) argument 87 #define CPU_OR(dst, set1, set2) __CPU_OP(dst, set1, set2, |) argument 88 #define CPU_XOR(dst, set1, set2) __CPU_OP(dst, set1, set2, ^) argument 90 #define __CPU_OP(dst, set1, set2, op) __CPU_OP_S(sizeof(cpu_set_t), dst, set1, set2, op) argument 129 #define CPU_AND_S(setsize, dst, set1, set2) __CPU_OP_S(setsize, dst, set1, set2, &) argument 130 #define CPU_OR_S(setsize, dst, set1, set2) __CPU_OP_S(setsize, dst, set1, set2, |) argument 131 #define CPU_XOR_S(setsize, dst, set1, set2) __CPU_OP_S(setsize, dst, set1, set2, ^) argument
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | inet_ntop.c | 34 static const char *inet_ntop4(const u_char *src, char *dst, size_t size); 35 static const char *inet_ntop6(const u_char *src, char *dst, size_t size); 46 inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop() argument 50 return (inet_ntop4(src, dst, (size_t)size)); in inet_ntop() 52 return (inet_ntop6(src, dst, (size_t)size)); in inet_ntop() 72 inet_ntop4(const u_char *src, char *dst, size_t size) in inet_ntop4() argument 83 strlcpy(dst, tmp, size); in inet_ntop4() 84 return (dst); in inet_ntop4() 94 inet_ntop6(const u_char *src, char *dst, size_t size) in inet_ntop6() argument 203 strlcpy(dst, tmp, size); in inet_ntop6() [all …]
|