Searched refs:dst (Results 1 - 25 of 55) sorted by relevance

123

/bionic/libc/upstream-freebsd/lib/libc/string/
H A Dwcpncpy.c33 wcpncpy(wchar_t * __restrict dst, const wchar_t * __restrict src, size_t n) argument
36 for (; n--; dst++, src++) {
37 if (!(*dst = *src)) {
38 wchar_t *ret = dst;
40 *++dst = L'\0';
44 return (dst);
H A Dwcsncpy.c44 * Copy src to dst, truncating or null-padding to always copy n bytes.
45 * Return dst.
48 wcsncpy(wchar_t * __restrict dst, const wchar_t * __restrict src, size_t n) argument
51 wchar_t *d = dst;
63 return (dst);
H A Dwcslcat.c42 * Appends src to string dst of size siz (unlike wcsncat, siz is the
43 * full size of dst, not space left). At most siz-1 characters
45 * Returns wcslen(initial dst) + wcslen(src); if retval >= siz,
49 wcslcat(wchar_t *dst, const wchar_t *src, size_t siz) argument
51 wchar_t *d = dst;
56 /* Find the end of dst and adjust bytes left but don't go past end */
59 dlen = d - dst;
/bionic/libc/upstream-openbsd/lib/libc/string/
H A Dstpncpy.c38 stpncpy(char *dst, const char *src, size_t n) argument
41 char *d = dst;
44 dst = &dst[n];
47 dst = d - 1;
55 return (dst);
H A Dstrncat.c37 * Concatenate src on the end of dst. At most strlen(dst)+n+1 bytes
38 * are written at dst (at most n+1 bytes being appended). Return dst.
41 strncat(char *dst, const char *src, size_t n) argument
44 char *d = dst;
56 return (dst);
H A Dstrncpy.c38 * Copy src to dst, truncating or null-padding to always copy n bytes.
39 * Return dst.
42 strncpy(char *dst, const char *src, size_t n) argument
45 char *d = dst;
57 return (dst);
H A Dmemmove.c51 char *dst = dst0; local
55 if (length == 0 || dst == src) /* nothing to do */
64 if ((unsigned long)dst < (unsigned long)src) {
69 if ((t | (long)dst) & wmask) {
74 if ((t ^ (long)dst) & wmask || length < wsize)
79 TLOOP1(*dst++ = *src++);
85 TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize);
87 TLOOP(*dst++ = *src++);
95 dst
[all...]
H A Dstrlcpy.c23 * Copy src to string dst of size siz. At most siz-1 characters
28 strlcpy(char *dst, const char *src, size_t siz) argument
30 char *d = dst;
42 /* Not enough room in dst, add NUL and traverse rest of src */
45 *d = '\0'; /* NUL-terminate dst */
H A Dwcslcpy.c24 * Copy src to string dst of size siz. At most siz-1 characters
29 wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz) argument
31 wchar_t *d = dst;
43 /* Not enough room in dst, add NUL and traverse rest of src */
46 *d = '\0'; /* NUL-terminate dst */
H A Dstrlcat.c23 * Appends src to string dst of size siz (unlike strncat, siz is the
24 * full size of dst, not space left). At most siz-1 characters
25 * will be copied. Always NUL terminates (unless siz <= strlen(dst)).
26 * Returns strlen(src) + MIN(siz, strlen(initial dst)).
30 strlcat(char *dst, const char *src, size_t siz) argument
32 char *d = dst;
37 /* Find the end of dst and adjust bytes left but don't go past end */
40 dlen = d - dst;
/bionic/libc/dns/nameser/
H A Dns_netint.c37 uint16_t dst; local
39 NS_GET16(dst, src);
40 return dst;
45 u_int32_t dst; local
47 NS_GET32(dst, src);
48 return dst;
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);
[all...]
H A Dns_ttl.c50 ns_format_ttl(u_long src, char *dst, size_t dstlen) { argument
51 char *odst = dst;
63 T(fmt1(weeks, 'W', &dst, &dstlen));
67 T(fmt1(days, 'D', &dst, &dstlen));
71 T(fmt1(hours, 'H', &dst, &dstlen));
75 T(fmt1(mins, 'M', &dst, &dstlen));
79 T(fmt1(secs, 'S', &dst, &dstlen));
91 _DIAGASSERT(__type_fit(int, dst - odst));
92 return (int)(dst - odst);
97 ns_parse_ttl(const char *src, u_long *dst) { argument
[all...]
H A Dns_samedomain.c170 ns_makecanon(const char *src, char *dst, size_t dstsize) { argument
177 strcpy(dst, src);
178 while (n >= 1U && dst[n - 1] == '.') /* Ends in "." */
179 if (n >= 2U && dst[n - 2] == '\\' && /* Ends in "\." */
180 (n < 3U || dst[n - 3] != '\\')) /* But not "\\." */
183 dst[--n] = '\0';
184 dst[n++] = '.';
185 dst[n] = '\0';
/bionic/libc/bionic/
H A Dmempcpy.cpp31 void* mempcpy(void* dst, const void* src, size_t n) { argument
32 return reinterpret_cast<char*>(memcpy(dst, src, n)) + n;
H A Dwmempcpy.cpp31 wchar_t* wmempcpy(wchar_t* dst, const wchar_t* src, size_t n) { argument
32 return wmemcpy(dst, src, n) + n;
H A Dsyslog.cpp83 char* dst = reinterpret_cast<char*>(malloc(dst_len)); local
84 log_fmt = dst;
90 size_t n = strlcpy(dst, strerror(caller_errno), dst_len);
94 dst += n;
102 *dst++ = '%'; --dst_len;
103 *dst++ = '%'; --dst_len;
106 *dst++ = *src; --dst_len;
109 *dst = '\0';
/bionic/libc/arch-arm64/denver64/bionic/
H A Dmemset.S61 #define dst x8 define
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, tmp
[all...]
H A Dmemcpy_base.S45 #define dst x6 define
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, #
[all...]
/bionic/libc/kernel/tools/
H A Dutils.py66 dst = "%s/%s" % (root,f)
67 self.old_files.add(dst)
69 def editFile(self,dst,data):
73 #dst = os.path.realpath(dst)
75 if os.path.exists(dst):
76 f = open(dst, "r")
80 self.old_files.remove(dst)
85 self.new_data[dst] = data
86 self.new_files.add(dst)
[all...]
/bionic/libc/arch-arm64/generic/bionic/
H A Dmemmove.S51 #define dst x6 define
64 /* Swap src and dst so that a branch to memcpy doesn't cause issues. */
83 add dst, dstin, count
95 sub dst, dst, tmp1
101 stp A_l, A_h, [dst, #32]
104 stp A_l, A_h, [dst, #16]
107 stp A_l, A_h, [dst]
113 str tmp1, [dst, #-8]!
117 str tmp1w, [dst, #
[all...]
H A Dmemset.S64 #define dst x8 define
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, #
[all...]
H A Dmemcpy_base.S44 #define dst x6 define
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, #
[all...]
H A Dstring_copy.S70 #define dst x0 define
78 #define dst x2 define
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]
159 // Back up one so that dst point
[all...]
/bionic/libc/upstream-netbsd/lib/libc/string/
H A Dstrxfrm.c48 * Transform src, storing the result in dst, such that
53 strxfrm(char *dst, const char *src, size_t n) argument
64 _DIAGASSERT(dst != NULL);
66 (void)memcpy(dst, src, copysize);
67 dst[copysize] = 0;
/bionic/libc/dns/include/
H A Dhostent.h67 #define HENT_ARRAY(dst, anum, ptr, len) \
69 size_t _len = (anum + 1) * sizeof(*dst); \
72 dst = (void *)ptr; \
77 #define HENT_COPY(dst, src, slen, ptr, len) \
82 dst = ptr; \
87 #define HENT_SCOPY(dst, src, ptr, len) \
90 HENT_COPY(dst, src, _len, ptr, len); \

Completed in 530 milliseconds

123