/bionic/libc/upstream-openbsd/lib/libc/locale/ |
D | _wcstod.h | 44 const wchar_t *src; in FUNCNAME() local 52 src = nptr; in FUNCNAME() 55 while (iswspace(*src)) { in FUNCNAME() 56 src++; in FUNCNAME() 60 start = src; in FUNCNAME() 61 if (*src && wcschr(L"+-", *src)) in FUNCNAME() 62 src++; in FUNCNAME() 63 aftersign = src; in FUNCNAME() 64 if (wcsncasecmp(src, L"inf", 3) == 0) { in FUNCNAME() 65 src += 3; in FUNCNAME() [all …]
|
D | wcsxfrm.c | 37 wcsxfrm(wchar_t *dest, const wchar_t *src, size_t n) in wcsxfrm() argument 40 return wcslen(src); in wcsxfrm() 41 return wcslcpy(dest, src, n); in wcsxfrm()
|
/bionic/libm/ |
D | Android.mk | 22 upstream-freebsd/lib/msun/src/catrig.c \ 23 upstream-freebsd/lib/msun/src/catrigf.c \ 24 upstream-freebsd/lib/msun/src/e_acosf.c \ 25 upstream-freebsd/lib/msun/src/e_acosh.c \ 26 upstream-freebsd/lib/msun/src/e_acoshf.c \ 27 upstream-freebsd/lib/msun/src/e_asinf.c \ 28 upstream-freebsd/lib/msun/src/e_atan2f.c \ 29 upstream-freebsd/lib/msun/src/e_atanh.c \ 30 upstream-freebsd/lib/msun/src/e_atanhf.c \ 31 upstream-freebsd/lib/msun/src/e_coshf.c \ [all …]
|
/bionic/libc/arch-arm64/generic/bionic/ |
D | memmove.S | 43 #define src x1 macro 74 cmp dstin, src 76 add tmp1, src, count 84 add src, src, count 96 sub src, src, tmp1 100 ldp A_l, A_h, [src, #32] 103 ldp A_l, A_h, [src, #16] 106 ldp A_l, A_h, [src] 112 ldr tmp1, [src, #-8]! 116 ldr tmp1w, [src, #-4]! [all …]
|
D | memcpy_base.S | 36 #define src x1 macro 69 add src, src, tmp1 73 ldp A_l, A_h, [src, #-48] 76 ldp A_l, A_h, [src, #-32] 79 ldp A_l, A_h, [src, #-16] 85 add src, src, count 86 ldp A_l, A_h, [src, #-16] 96 ldr tmp1, [src], #8 100 ldr tmp1w, [src], #4 104 ldrh tmp1w, [src], #2 [all …]
|
/bionic/libc/dns/nameser/ |
D | ns_netint.c | 36 ns_get16(const u_char *src) { in ns_get16() argument 39 NS_GET16(dst, src); in ns_get16() 44 ns_get32(const u_char *src) { in ns_get32() argument 47 NS_GET32(dst, src); 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 55 secs = (int)(src % 60); src /= 60; in ns_format_ttl() 56 mins = (int)(src % 60); src /= 60; in ns_format_ttl() 57 hours = (int)(src % 24); src /= 24; in ns_format_ttl() 58 days = (int)(src % 7); src /= 7; in ns_format_ttl() 59 weeks = (int)src; src = 0; in ns_format_ttl() 97 ns_parse_ttl(const char *src, u_long *dst) { in ns_parse_ttl() argument 105 while ((ch = *src++) != '\0') { in ns_parse_ttl()
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | memmove.c | 52 const char *src = src0; in memmove() local 55 if (length == 0 || dst == src) /* nothing to do */ in memmove() 64 if ((unsigned long)dst < (unsigned long)src) { in memmove() 68 t = (long)src; /* only need low bits */ 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() 94 src += length; in memmove() 96 t = (long)src; in memmove() 103 TLOOP1(*--dst = *--src); in memmove() [all …]
|
D | strlcpy.c | 28 strlcpy(char *dst, const char *src, size_t siz) in strlcpy() argument 31 const char *s = src; in strlcpy() 50 return(s - src - 1); /* count does not include NUL */ in strlcpy()
|
/bionic/libc/arch-arm64/denver64/bionic/ |
D | memcpy_base.S | 37 #define src x1 macro 75 add src, src, tmp1 79 ldp A_l, A_h, [src, #-48] 82 ldp A_l, A_h, [src, #-32] 85 ldp A_l, A_h, [src, #-16] 91 add src, src, count 92 ldp A_l, A_h, [src, #-16] 102 ldr tmp1, [src], #8 106 ldr tmp1w, [src], #4 110 ldrh tmp1w, [src], #2 [all …]
|
/bionic/libc/bionic/ |
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 80 && (static_cast<uint8_t>((*src)[0]) < 0x80)) { in mbsnrtowcs() 84 if (static_cast<uint8_t>((*src)[i]) < 0x80) { in mbsnrtowcs() 86 if ((*src)[i] == '\0') { in mbsnrtowcs() 87 *src = nullptr; in mbsnrtowcs() 92 r = mbrtowc(NULL, *src + i, nmc - i, state); in mbsnrtowcs() 100 *src = nullptr; in mbsnrtowcs() 114 && (static_cast<uint8_t>((*src)[0]) < 0x80)) { in mbsnrtowcs() 118 if (static_cast<uint8_t>((*src)[i]) < 0x80) { in mbsnrtowcs() 120 dst[o] = (*src)[i]; in mbsnrtowcs() [all …]
|
D | syslog.cpp | 86 const char* src = fmt; in vsyslog() local 87 for (; dst_len > 0 && *src != '\0'; ++src) { in vsyslog() 88 if (*src == '%' && *(src + 1) == 'm') { in vsyslog() 96 ++src; in vsyslog() 97 } else if (*src == '%' && *(src + 1) == '%') { in vsyslog() 104 ++src; in vsyslog() 106 *dst++ = *src; --dst_len; in vsyslog()
|
D | __stpncpy_chk.cpp | 46 extern "C" char* __stpncpy_chk(char* __restrict dest, const char* __restrict src, in __stpncpy_chk() argument 53 return stpncpy(dest, src, len); in __stpncpy_chk() 64 extern "C" char* __stpncpy_chk2(char* __restrict dst, const char* __restrict src, in __stpncpy_chk2() argument 73 const char* s = src; in __stpncpy_chk2() 85 size_t s_copy_len = static_cast<size_t>(s - src); in __stpncpy_chk2()
|
D | __strncpy_chk.cpp | 46 extern "C" char* __strncpy_chk(char* __restrict dest, const char* __restrict src, in __strncpy_chk() argument 53 return strncpy(dest, src, len); in __strncpy_chk() 64 extern "C" char* __strncpy_chk2(char* __restrict dst, const char* __restrict src, in __strncpy_chk2() argument 73 const char* s = src; in __strncpy_chk2() 85 size_t s_copy_len = static_cast<size_t>(s - src); in __strncpy_chk2()
|
D | __stpcpy_chk.cpp | 46 extern "C" char* __stpcpy_chk(char* dest, const char* src, size_t dest_len) { in __stpcpy_chk() argument 48 size_t src_len = strlen(src) + 1; in __stpcpy_chk() 54 return stpcpy(dest, src); in __stpcpy_chk()
|
D | __strcpy_chk.cpp | 46 extern "C" char* __strcpy_chk(char* dest, const char* src, size_t dest_len) { in __strcpy_chk() argument 48 size_t src_len = strlen(src) + 1; in __strcpy_chk() 54 return strcpy(dest, src); in __strcpy_chk()
|
/bionic/tools/relocation_packer/ |
D | Android.mk | 27 src/debug.cc \ 28 src/delta_encoder.cc \ 29 src/elf_file.cc \ 30 src/packer.cc \ 31 src/sleb128.cc \ 34 LOCAL_C_INCLUDES := external/elfutils/src/libelf 47 LOCAL_SRC_FILES := src/main.cc 52 LOCAL_C_INCLUDES := external/elfutils/src/libelf libnativehelper/include 67 src/debug_unittest.cc \ 68 src/delta_encoder_unittest.cc \ [all …]
|
/bionic/libc/arch-arm/bionic/ |
D | __aeabi.c | 60 __aeabi_memcpy8(void *dest, const void *src, size_t n) { in __aeabi_memcpy8() argument 61 memcpy(dest, src, n); in __aeabi_memcpy8() 64 void __attribute__((weak)) __aeabi_memcpy4(void *dest, const void *src, size_t n) { in __aeabi_memcpy4() argument 65 memcpy(dest, src, n); in __aeabi_memcpy4() 68 void __attribute__((weak)) __aeabi_memcpy(void *dest, const void *src, size_t n) { in __aeabi_memcpy() argument 69 memcpy(dest, src, n); in __aeabi_memcpy() 73 void __attribute__((weak)) __aeabi_memmove8(void *dest, const void *src, size_t n) { in __aeabi_memmove8() argument 74 memmove(dest, src, n); in __aeabi_memmove8() 77 void __attribute__((weak)) __aeabi_memmove4(void *dest, const void *src, size_t n) { in __aeabi_memmove4() argument 78 memmove(dest, src, n); in __aeabi_memmove4() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | inet_pton.c | 33 static int inet_pton4(const char *src, u_char *dst); 34 static int inet_pton6(const char *src, u_char *dst); 48 inet_pton(int af, const char *src, void *dst) in inet_pton() argument 52 return (inet_pton4(src, dst)); in inet_pton() 54 return (inet_pton6(src, dst)); in inet_pton() 73 inet_pton4(const char *src, u_char *dst) in inet_pton4() argument 82 while ((ch = *src++) != '\0') { in inet_pton4() 124 inet_pton6(const char *src, u_char *dst) in inet_pton6() argument 137 if (*src == ':') in inet_pton6() 138 if (*++src != ':') in inet_pton6() [all …]
|
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 78 src[0], src[1], src[2], src[3]); in inet_ntop4() 94 inet_ntop6(const u_char *src, char *dst, size_t size) in inet_ntop6() argument 117 words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); in inet_ntop6() 170 if (!inet_ntop4(src+12, tp, (size_t)(ep - tp))) in inet_ntop6()
|
/bionic/libc/dns/net/ |
D | base64.c | 137 b64_ntop(src, srclength, target, targsize) in b64_ntop() argument 138 u_char const *src; in b64_ntop() 148 assert(src != NULL); 152 input[0] = *src++; 153 input[1] = *src++; 154 input[2] = *src++; 181 input[i] = *src++; 215 b64_pton(src, target, targsize) in b64_pton() argument 216 char const *src; in b64_pton() 224 assert(src != NULL); [all …]
|
/bionic/libc/include/ |
D | string.h | 183 void* memcpy(void* __restrict dest, const void* __restrict src, size_t copy_amount) { in memcpy() argument 184 return __builtin___memcpy_chk(dest, src, copy_amount, __bos0(dest)); in memcpy() 188 void* memmove(void *dest, const void *src, size_t len) { in memmove() argument 189 return __builtin___memmove_chk(dest, src, len, __bos0(dest)); in memmove() 193 char* stpcpy(char* __restrict dest, const char* __restrict src) { in stpcpy() argument 194 return __builtin___stpcpy_chk(dest, src, __bos(dest)); in stpcpy() 198 char* strcpy(char* __restrict dest, const char* __restrict src) { in strcpy() argument 199 return __builtin___strcpy_chk(dest, src, __bos(dest)); in strcpy() 203 char* stpncpy(char* __restrict dest, const char* __restrict src, size_t n) { in stpncpy() argument 205 size_t bos_src = __bos(src); in stpncpy() [all …]
|
/bionic/libc/dns/resolv/ |
D | res_comp.c | 104 dn_expand(const u_char *msg, const u_char *eom, const u_char *src, in dn_expand() argument 107 int n = ns_name_uncompress(msg, eom, src, dst, (size_t)dstsiz); 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 263 u_int32_t _getlong(const u_char *src) { return (ns_get32(src)); } in _getlong() argument 264 u_int16_t _getshort(const u_char *src) { return (ns_get16(src)); } in _getshort() argument
|
/bionic/tests/ |
D | wchar_test.cpp | 118 const wchar_t* src; in TEST() local 125 src = chars; in TEST() 126 EXPECT_EQ(5U, wcsrtombs(NULL, &src, 0, NULL)); in TEST() 127 EXPECT_EQ(&chars[0], src); in TEST() 128 src = chars; in TEST() 129 EXPECT_EQ(5U, wcsrtombs(NULL, &src, 4, NULL)); in TEST() 130 EXPECT_EQ(&chars[0], src); in TEST() 131 src = chars; in TEST() 132 EXPECT_EQ(5U, wcsrtombs(NULL, &src, 256, NULL)); in TEST() 133 EXPECT_EQ(&chars[0], src); in TEST() [all …]
|
/bionic/libc/upstream-netbsd/lib/libc/string/ |
D | strxfrm.c | 53 strxfrm(char *dst, const char *src, size_t n) in strxfrm() argument 57 _DIAGASSERT(src != NULL); in strxfrm() 62 srclen = strlen(src); in strxfrm() 66 (void)memcpy(dst, src, copysize); in strxfrm()
|