/bionic/libc/include/bits/fortify/ |
D | string.h | 46 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 …]
|
D | strings.h | 32 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/ |
D | memset.S | 77 #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 …]
|
/bionic/libc/kernel/tools/ |
D | utils.py | 89 dst = "%s/%s" % (root,f) 90 self.old_files.add(dst) 92 def editFile(self,dst,data): argument 98 if os.path.exists(dst): 99 f = open(dst, "r") 103 self.old_files.remove(dst) 108 self.new_data[dst] = data 109 self.new_files.add(dst) 118 for dst in self.new_files: 119 if not (dst in self.old_files): [all …]
|
/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()
|
D | ns_name.c | 98 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 …]
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
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 | 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 | 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/tests/ |
D | wchar_test.cpp | 536 wchar_t dst[128]; in TEST() local 540 memset(dst, 0, sizeof(dst)); in TEST() 542 ASSERT_EQ(0U, mbsnrtowcs(dst, &src, 0, 0, nullptr)); in TEST() 544 memset(dst, 0, sizeof(dst)); in TEST() 546 ASSERT_EQ(2U, mbsnrtowcs(dst, &src, 2, 123, nullptr)); // glibc chokes on SIZE_MAX here. in TEST() 547 ASSERT_EQ(L'h', dst[0]); in TEST() 548 ASSERT_EQ(L'e', dst[1]); in TEST() 551 memset(dst, 0, sizeof(dst)); in TEST() 553 ASSERT_EQ(3U, mbsnrtowcs(dst, &src, SIZE_MAX, 3, nullptr)); in TEST() 554 ASSERT_EQ(L'h', dst[0]); in TEST() [all …]
|
D | sys_uio_test.cpp | 76 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()
|
D | fortify_test.cpp | 829 char dst[10]; in TEST() local 831 stpncpy(dst, src, sizeof(dst)); in TEST() 832 ASSERT_EQ('0', dst[0]); in TEST() 833 ASSERT_EQ('1', dst[1]); in TEST() 834 ASSERT_EQ('2', dst[2]); in TEST() 835 ASSERT_EQ('3', dst[3]); in TEST() 836 ASSERT_EQ('4', dst[4]); in TEST() 837 ASSERT_EQ('5', dst[5]); in TEST() 838 ASSERT_EQ('6', dst[6]); in TEST() 839 ASSERT_EQ('7', dst[7]); in TEST() [all …]
|
/bionic/libc/upstream-freebsd/lib/libc/string/ |
D | wcpncpy.c | 35 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/bionic/ |
D | fortify.cpp | 96 char* __fgets_chk(char* dst, int supplied_size, FILE* stream, size_t dst_len_from_compiler) { in __fgets_chk() argument 98 return fgets(dst, supplied_size, stream); in __fgets_chk() 132 extern "C" void* __memmove_chk(void* dst, const void* src, size_t len, size_t dst_len) { in __memmove_chk() argument 134 return memmove(dst, src, len); in __memmove_chk() 233 extern "C" char* __stpcpy_chk(char* dst, const char* src, size_t dst_len) { in __stpcpy_chk() argument 237 return stpcpy(dst, src); in __stpcpy_chk() 241 extern "C" char* __stpncpy_chk(char* dst, const char* src, size_t len, size_t dst_len) { in __stpncpy_chk() argument 243 return stpncpy(dst, src, len); in __stpncpy_chk() 250 char* __stpncpy_chk2(char* dst, const char* src, size_t n, size_t dst_len, size_t src_len) { in __stpncpy_chk2() argument 253 char* d = dst; in __stpncpy_chk2() [all …]
|
D | realpath.cpp | 65 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()
|
D | wchar.cpp | 68 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 …]
|
/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/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 | 33 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 …]
|
D | inet_pton.c | 32 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()
|