/bionic/libc/upstream-openbsd/lib/libc/string/ |
H A D | strlcpy.c | 23 * Copy string src to buffer dst of size dsize. At most dsize-1 25 * Returns strlen(src); if retval >= dsize, truncation occurred. 28 strlcpy(char *dst, const char *src, size_t dsize) argument 30 const char *osrc = src; 36 if ((*dst++ = *src++) == '\0') 41 /* Not enough room in dst, add NUL and traverse rest of src. */ 45 while (*src++) 49 return(src - osrc - 1); /* count does not include NUL */
|
H A D | strlcat.c | 23 * Appends src to string dst of size dsize (unlike strncat, dsize is the 26 * Returns strlen(src) + MIN(dsize, strlen(initial dst)). 30 strlcat(char *dst, const char *src, size_t dsize) argument 33 const char *osrc = src; 44 return(dlen + strlen(src)); 45 while (*src != '\0') { 47 *dst++ = *src; 50 src++; 54 return(dlen + (src - osrc)); /* count does not include NUL */
|
H A D | wcslcpy.c | 23 * Copy string src to buffer dst of size dsize. At most dsize-1 25 * Returns wcslen(src); if retval >= dsize, truncation occurred. 28 wcslcpy(wchar_t *dst, const wchar_t *src, size_t dsize) argument 30 const wchar_t *osrc = src; 36 if ((*dst++ = *src++) == L'\0') 41 /* Not enough room in dst, add NUL and traverse rest of src. */ 45 while (*src++) 49 return(src - osrc - 1); /* count does not include NUL */
|
H A D | memmove.c | 52 const char *src = src0; local 55 if (length == 0 || dst == src) /* nothing to do */ 64 if ((unsigned long)dst < (unsigned long)src) { 68 t = (long)src; /* only need low bits */ 79 TLOOP1(*dst++ = *src++); 85 TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize); 87 TLOOP(*dst++ = *src++); 94 src += length; 96 t = (long)src; [all...] |
H A D | strncpy.c | 38 * Copy src to dst, truncating or null-padding to always copy n bytes. 42 strncpy(char *dst, const char *src, size_t n) argument 46 const char *s = src;
|
H A D | stpncpy.c | 38 stpncpy(char *dst, const char *src, size_t n) argument 42 const char *s = src;
|
H A D | strncat.c | 37 * Concatenate src on the end of dst. At most strlen(dst)+n+1 bytes 41 strncat(char *dst, const char *src, size_t n) argument 45 const char *s = src;
|
/bionic/libc/upstream-openbsd/lib/libc/locale/ |
H A D | wcsxfrm.c | 37 wcsxfrm(wchar_t *dest, const wchar_t *src, size_t n) argument 40 return wcslen(src); 41 return wcslcpy(dest, src, n);
|
/bionic/libc/bionic/ |
H A D | mempcpy.cpp | 31 void* mempcpy(void* dst, const void* src, size_t n) { argument 32 return reinterpret_cast<char*>(memcpy(dst, src, n)) + n;
|
H A D | wmempcpy.cpp | 31 wchar_t* wmempcpy(wchar_t* dst, const wchar_t* src, size_t n) { argument 32 return wmemcpy(dst, src, n) + n;
|
H A D | swab.cpp | 32 const uint8_t* src = static_cast<const uint8_t*>(void_src); local 35 uint8_t x = *src++; 36 uint8_t y = *src++;
|
H A D | string_l.cpp | 40 size_t strxfrm_l(char* dst, const char* src, size_t n, locale_t) { argument 41 return strxfrm(dst, src, n);
|
H A D | syslog.cpp | 86 const char* src = fmt; local 87 for (; dst_len > 0 && *src != '\0'; ++src) { 88 if (*src == '%' && *(src + 1) == 'm') { 96 ++src; 97 } else if (*src == '%' && *(src + 1) == '%') { 104 ++src; 106 *dst++ = *src; [all...] |
/bionic/libc/dns/nameser/ |
H A D | ns_netint.c | 36 ns_get16(const u_char *src) { argument 39 NS_GET16(dst, src); 44 ns_get32(const u_char *src) { argument 47 NS_GET32(dst, src); 52 ns_put16(uint16_t src, u_char *dst) { argument 53 NS_PUT16(src, dst); 57 ns_put32(uint32_t src, u_char *dst) { argument 58 NS_PUT32(src, dst);
|
H A D | ns_ttl.c | 50 ns_format_ttl(u_long src, char *dst, size_t dstlen) { argument 55 secs = (int)(src % 60); src /= 60; 56 mins = (int)(src % 60); src /= 60; 57 hours = (int)(src % 24); src /= 24; 58 days = (int)(src % 7); src /= 7; 59 weeks = (int)src; sr 97 ns_parse_ttl(const char *src, u_long *dst) argument [all...] |
/bionic/libc/upstream-freebsd/lib/libc/string/ |
H A D | wcpncpy.c | 33 wcpncpy(wchar_t * __restrict dst, const wchar_t * __restrict src, size_t n) argument 36 for (; n--; dst++, src++) { 37 if (!(*dst = *src)) {
|
H A D | wcslcat.c | 42 * Appends src to string dst of size siz (unlike wcsncat, siz is the 45 * Returns wcslen(initial dst) + wcslen(src); if retval >= siz, 49 wcslcat(wchar_t *dst, const wchar_t *src, size_t siz) argument 52 const wchar_t *s = src; 73 return(dlen + (s - src)); /* count does not include NUL */
|
/bionic/libc/arch-arm64/generic/bionic/ |
H A D | memmove.S | 39 #define src x1 define 64 cmp dstin, src 66 add tmp1, src, count 74 add src, src, count 86 sub src, src, tmp1 90 ldp A_l, A_h, [src, #32] 93 ldp A_l, A_h, [src, #16] 96 ldp A_l, A_h, [src] [all...] |
/bionic/libc/arch-arm/bionic/ |
H A D | __aeabi.c | 64 void __attribute__((weak)) __aeabi_memcpy8_impl(void *dest, const void *src, size_t n) { argument 65 memcpy(dest, src, n); 68 void __attribute__((weak)) __aeabi_memcpy4_impl(void *dest, const void *src, size_t n) { argument 69 memcpy(dest, src, n); 72 void __attribute__((weak)) __aeabi_memcpy_impl(void *dest, const void *src, size_t n) { argument 73 memcpy(dest, src, n); 76 void __attribute__((weak)) __aeabi_memcpy8_impl2(void *dest, const void *src, size_t n) { argument 77 memcpy(dest, src, n); 80 void __attribute__((weak)) __aeabi_memcpy4_impl2(void *dest, const void *src, size_t n) { argument 81 memcpy(dest, src, 84 __aeabi_memcpy_impl2(void *dest, const void *src, size_t n) argument 89 __aeabi_memmove8_impl(void *dest, const void *src, size_t n) argument 93 __aeabi_memmove4_impl(void *dest, const void *src, size_t n) argument 97 __aeabi_memmove_impl(void *dest, const void *src, size_t n) argument 101 __aeabi_memmove8_impl2(void *dest, const void *src, size_t n) argument 105 __aeabi_memmove4_impl2(void *dest, const void *src, size_t n) argument 109 __aeabi_memmove_impl2(void *dest, const void *src, size_t n) argument [all...] |
/bionic/libc/upstream-netbsd/lib/libc/string/ |
H A D | strxfrm.c | 48 * Transform src, storing the result in dst, such that 53 strxfrm(char *dst, const char *src, size_t n) argument 57 _DIAGASSERT(src != NULL); 62 srclen = strlen(src); 66 (void)memcpy(dst, src, copysize);
|
/bionic/libc/arch-arm64/denver64/bionic/ |
H A D | memcpy_base.S | 37 #define src x1 define 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], # [all...] |
/bionic/libc/upstream-openbsd/lib/libc/net/ |
H A 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); 36 * inet_pton(af, src, dst) 47 inet_pton(int af, const char *src, void *dst) argument 51 return (inet_pton4(src, dst)); 53 return (inet_pton6(src, dst)); 63 * inet_pton4(src, dst) 66 * 1 if `src' is a valid dotted quad, else 0. 73 inet_pton4(const char *src, u_char *dst) argument 82 while ((ch = *src 124 inet_pton6(const char *src, u_char *dst) argument [all...] |
/bionic/libc/include/bits/fortify/ |
H A D | string.h | 47 void* memcpy(void* const dst __pass_object_size0, const void* src, size_t copy_amount) 51 return __builtin___memcpy_chk(dst, src, copy_amount, __bos0(dst)); 55 void* memmove(void* const dst __pass_object_size0, const void* src, size_t len) 59 return __builtin___memmove_chk(dst, src, len, __bos0(dst)); 65 char* stpcpy(char* const dst __pass_object_size, const char* src) 68 __bos(dst) <= __builtin_strlen(src), 70 return __builtin___stpcpy_chk(dst, src, __bos(dst)); 76 char* strcpy(char* const dst __pass_object_size, const char* src) 79 __bos(dst) <= __builtin_strlen(src), 81 return __builtin___strcpy_chk(dst, src, __bo [all...] |
/bionic/tools/versioner/current/bits/fortify/ |
H A D | string.h | 47 void* memcpy(void* const dst __pass_object_size0, const void* src, size_t copy_amount) 51 return __builtin___memcpy_chk(dst, src, copy_amount, __bos0(dst)); 55 void* memmove(void* const dst __pass_object_size0, const void* src, size_t len) 59 return __builtin___memmove_chk(dst, src, len, __bos0(dst)); 65 char* stpcpy(char* const dst __pass_object_size, const char* src) 68 __bos(dst) <= __builtin_strlen(src), 70 return __builtin___stpcpy_chk(dst, src, __bos(dst)); 76 char* strcpy(char* const dst __pass_object_size, const char* src) 79 __bos(dst) <= __builtin_strlen(src), 81 return __builtin___strcpy_chk(dst, src, __bo [all...] |
/bionic/tests/ |
H A D | sys_uio_test.cpp | 75 char src[1024] = "This is the source buffer containing some data"; local 77 iovec remote = { src, sizeof src }; 79 ASSERT_EQ(ssize_t(sizeof src), process_vm_readv(getpid(), &local, 1, &remote, 1, 0)); 82 ASSERT_EQ(0, memcmp(src, dst, sizeof src)); 94 char src[1024] = "This is the source buffer containing some data"; local 97 iovec local = { src, sizeof src }; 98 ASSERT_EQ(ssize_t(sizeof src), process_vm_write [all...] |