Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 66) sorted by relevance

123

/bionic/libc/include/bits/fortify/
Dstring.h46 void* memcpy(void* const dst __pass_object_size0, const void* src, size_t copy_amount) in memcpy()
48 return __builtin___memcpy_chk(dst, src, copy_amount, __bos0(dst)); in memcpy()
53 void* memmove(void* const dst __pass_object_size0, const void* src, size_t len) __overloadable { in memmove()
54 return __builtin___memmove_chk(dst, src, len, __bos0(dst)); in memmove()
61 void* mempcpy(void* const dst __pass_object_size0, const void* src, size_t copy_amount) in mempcpy()
63 __clang_error_if(__bos_unevaluated_lt(__bos0(dst), copy_amount), in mempcpy()
66 size_t bos_dst = __bos0(dst); in mempcpy()
68 return __builtin___mempcpy_chk(dst, src, copy_amount, bos_dst); in mempcpy()
71 return __builtin_mempcpy(dst, src, copy_amount); in mempcpy()
77 char* stpcpy(char* const dst __pass_object_size, const char* src) in stpcpy()
[all …]
Dstrings.h32 void __bionic_bcopy(const void *src, void* const dst __pass_object_size0, size_t len) in __bionic_bcopy()
34 __clang_error_if(__bos_unevaluated_lt(__bos0(dst), len), in __bionic_bcopy()
37 size_t bos = __bos0(dst); in __bionic_bcopy()
39 __builtin___memmove_chk(dst, src, len, bos); in __bionic_bcopy()
43 __builtin_memmove(dst, src, len); in __bionic_bcopy()
/bionic/libc/arch-arm64/generic/bionic/
Dmemset.S77 #define dst x3 macro
89 cmp count, dst
151 bic dst, dstin, 15
157 sub count, dstend, dst /* Count is 16 too large. */
158 add dst, dst, 16
160 1: stp q0, q0, [dst], 64
161 stp q0, q0, [dst, -32]
181 str q0, [dst, 16]
182 stp q0, q0, [dst, 32]
183 bic dst, dst, 63
[all …]
Dstring_copy.S70 #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 …]
Dmemcpy_base.S66 #define dst x3 macro
83 #define F_h dst
178 bic dst, dstin, 15
190 stp A_l, A_h, [dst, 16]
192 stp B_l, B_h, [dst, 32]
194 stp C_l, C_h, [dst, 48]
196 stp D_l, D_h, [dst, 64]!
206 stp A_l, A_h, [dst, 16]
208 stp B_l, B_h, [dst, 32]
210 stp C_l, C_h, [dst, 48]
[all …]
/bionic/libc/kernel/tools/
Dutils.py90 dst = "%s/%s" % (root,f)
91 self.old_files.add(dst)
93 def editFile(self,dst,data): argument
99 if os.path.exists(dst):
100 f = open(dst, "r")
104 self.old_files.remove(dst)
109 self.new_data[dst] = data
110 self.new_files.add(dst)
119 for dst in self.new_files:
120 if not (dst in self.old_files):
[all …]
/bionic/libc/bionic/
Dfortify.cpp96 char* __fgets_chk(char* dst, int supplied_size, FILE* stream, size_t dst_len_from_compiler) { in __fgets_chk() argument
101 return fgets(dst, supplied_size, stream); in __fgets_chk()
135 extern "C" void* __memmove_chk(void* dst, const void* src, size_t len, size_t dst_len) { in __memmove_chk() argument
137 return memmove(dst, src, len); in __memmove_chk()
236 extern "C" char* __stpcpy_chk(char* dst, const char* src, size_t dst_len) { in __stpcpy_chk() argument
240 return stpcpy(dst, src); in __stpcpy_chk()
244 extern "C" char* __stpncpy_chk(char* dst, const char* src, size_t len, size_t dst_len) { in __stpncpy_chk() argument
246 return stpncpy(dst, src, len); in __stpncpy_chk()
253 char* __stpncpy_chk2(char* dst, const char* src, size_t n, size_t dst_len, size_t src_len) { in __stpncpy_chk2() argument
256 char* d = dst; in __stpncpy_chk2()
[all …]
Dwchar.cpp68 size_t mbsnrtowcs(wchar_t* dst, const char** src, size_t nmc, size_t len, mbstate_t* ps) { in mbsnrtowcs() argument
81 if (dst == nullptr) { in mbsnrtowcs()
109 dst[o] = (*src)[i]; in mbsnrtowcs()
116 r = mbrtowc(dst + o, *src + i, nmc - i, state); in mbsnrtowcs()
135 size_t mbsrtowcs(wchar_t* dst, const char** src, size_t len, mbstate_t* ps) { in mbsrtowcs() argument
136 return mbsnrtowcs(dst, src, SIZE_MAX, len, ps); in mbsrtowcs()
147 size_t wcsnrtombs(char* dst, const wchar_t** src, size_t nwc, size_t len, mbstate_t* ps) { in wcsnrtombs() argument
157 if (dst == nullptr) { in wcsnrtombs()
180 dst[o] = wc; in wcsnrtombs()
188 r = wcrtomb(dst + o, wc, state); in wcsnrtombs()
[all …]
Drealpath.cpp65 char dst[PATH_MAX]; in realpath() local
66 ssize_t l = readlink(fd_path.c_str(), dst, sizeof(dst) - 1); in realpath()
68 dst[l] = '\0'; in realpath()
72 if (stat(dst, &sb) == -1 || st_dev != sb.st_dev || st_ino != sb.st_ino) { in realpath()
77 return result ? strcpy(result, dst) : strdup(dst); in realpath()
/bionic/libc/dns/nameser/
Dns_netint.c37 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()
Dns_name.c98 ns_name_ntop(const u_char *src, char *dst, size_t dstsiz) in ns_name_ntop() argument
107 dn = dst; in ns_name_ntop()
108 eom = dst + dstsiz; in ns_name_ntop()
116 if (dn != dst) { in ns_name_ntop()
174 if (dn == dst) { in ns_name_ntop()
186 _DIAGASSERT(__type_fit(int, dn - dst)); in ns_name_ntop()
187 return (int)(dn - dst); in ns_name_ntop()
203 ns_name_pton(const char *src, u_char *dst, size_t dstsiz) { in ns_name_pton() argument
204 return (ns_name_pton2(src, dst, dstsiz, NULL)); in ns_name_pton()
221 ns_name_pton2(const char *src, u_char *dst, size_t dstsiz, size_t *dstlen) { in ns_name_pton2() argument
[all …]
Dns_ttl.c50 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 …]
Dns_samedomain.c170 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/tests/
Dsys_uio_test.cpp76 char dst[1024] = ""; in TEST() local
78 iovec local = { dst, sizeof dst }; in TEST()
81 ASSERT_EQ('T', dst[0]); in TEST()
82 ASSERT_EQ(0, memcmp(src, dst, sizeof src)); in TEST()
85 remote = { nullptr, sizeof dst }; in TEST()
95 char dst[1024] = ""; in TEST() local
96 iovec remote = { dst, sizeof dst }; in TEST()
100 ASSERT_EQ('T', dst[0]); in TEST()
101 ASSERT_EQ(0, memcmp(src, dst, sizeof src)); in TEST()
104 remote = { nullptr, sizeof dst }; in TEST()
Dfortify_test.cpp834 char dst[10]; in TEST() local
836 stpncpy(dst, src, sizeof(dst)); in TEST()
837 ASSERT_EQ('0', dst[0]); in TEST()
838 ASSERT_EQ('1', dst[1]); in TEST()
839 ASSERT_EQ('2', dst[2]); in TEST()
840 ASSERT_EQ('3', dst[3]); in TEST()
841 ASSERT_EQ('4', dst[4]); in TEST()
842 ASSERT_EQ('5', dst[5]); in TEST()
843 ASSERT_EQ('6', dst[6]); in TEST()
844 ASSERT_EQ('7', dst[7]); in TEST()
[all …]
Dwchar_test.cpp528 wchar_t dst[128]; in TEST() local
532 memset(dst, 0, sizeof(dst)); in TEST()
534 ASSERT_EQ(0U, mbsnrtowcs(dst, &src, 0, 0, nullptr)); in TEST()
536 memset(dst, 0, sizeof(dst)); in TEST()
538 ASSERT_EQ(2U, mbsnrtowcs(dst, &src, 2, 123, nullptr)); // glibc chokes on SIZE_MAX here. in TEST()
539 ASSERT_EQ(L'h', dst[0]); in TEST()
540 ASSERT_EQ(L'e', dst[1]); in TEST()
543 memset(dst, 0, sizeof(dst)); in TEST()
545 ASSERT_EQ(3U, mbsnrtowcs(dst, &src, SIZE_MAX, 3, nullptr)); in TEST()
546 ASSERT_EQ(L'h', dst[0]); in TEST()
[all …]
Dstring_test.cpp958 static void verify_memmove(char* src_copy, char* dst, char* src, size_t size) { in verify_memmove() argument
959 memset(dst, 0, size); in verify_memmove()
961 ASSERT_EQ(dst, memmove(dst, src, size)); in verify_memmove()
962 ASSERT_EQ(0, memcmp(dst, src_copy, size)); in verify_memmove()
982 char* dst = buffer + 256 + i; in TEST() local
984 verify_memmove(src_data, dst, src, 1024); in TEST()
987 verify_memmove(src_data, dst, src, 64 * 1024); in TEST()
990 verify_memmove(src_data, dst, src, 1024 * 1024 + 128 * 1024); in TEST()
994 char* dst = buffer + 256; in TEST() local
998 verify_memmove(src_data, dst, src, 1024); in TEST()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrlcat.c30 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()
Dstpncpy.c38 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()
/bionic/libc/include/
Dsched.h86 #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/dns/resolv/
Dres_comp.c105 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/upstream-freebsd/lib/libc/string/
Dwcpncpy.c35 wcpncpy(wchar_t * __restrict dst, const wchar_t * __restrict src, size_t n) in wcpncpy() argument
38 for (; n--; dst++, src++) { in wcpncpy()
39 if (!(*dst = *src)) { in wcpncpy()
40 wchar_t *ret = dst; in wcpncpy()
42 *++dst = L'\0'; in wcpncpy()
46 return (dst); in wcpncpy()
/bionic/libc/upstream-openbsd/lib/libc/net/
Dinet_ntop.c33 static const char *inet_ntop4(const u_char *src, char *dst, size_t size);
34 static const char *inet_ntop6(const u_char *src, char *dst, size_t size);
45 inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop() argument
49 return (inet_ntop4(src, dst, size)); in inet_ntop()
51 return (inet_ntop6(src, dst, 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 …]
Dinet_pton.c32 static int inet_pton4(const char *src, u_char *dst);
33 static int inet_pton6(const char *src, u_char *dst);
47 inet_pton(int af, const char *src, void *dst) in inet_pton() argument
51 return (inet_pton4(src, dst)); in inet_pton()
53 return (inet_pton6(src, dst)); in inet_pton()
73 inet_pton4(const char *src, u_char *dst) in inet_pton4() argument
107 memcpy(dst, tmp, INADDRSZ); in inet_pton4()
124 inet_pton6(const char *src, u_char *dst) in inet_pton6() argument
211 memcpy(dst, tmp, IN6ADDRSZ); in inet_pton6()
/bionic/libc/dns/include/
Dhostent.h67 #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); \

123