/bionic/libc/dns/nameser/ |
H A D | ns_samedomain.c | 170 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';
|
H A D | ns_name.c | 104 ns_name_ntop(const u_char *src, char *dst, size_t dstsiz) argument 113 dn = dst; 114 eom = dst + dstsiz; 122 if (dn != dst) { 180 if (dn == dst) { 192 _DIAGASSERT(__type_fit(int, dn - dst)); 193 return (int)(dn - dst); 209 ns_name_pton(const char *src, u_char *dst, size_t dstsiz) { argument 210 return (ns_name_pton2(src, dst, dstsiz, NULL)); 214 * ns_name_pton2(src, dst, dstsi 227 ns_name_pton2(const char *src, u_char *dst, size_t dstsiz, size_t *dstlen) argument 363 ns_name_ntol(const u_char *src, u_char *dst, size_t dstsiz) argument 414 ns_name_unpack(const u_char *msg, const u_char *eom, const u_char *src, u_char *dst, size_t dstsiz) argument 429 ns_name_unpack2(const u_char *msg, const u_char *eom, const u_char *src, u_char *dst, size_t dstsiz, size_t *dstlen) argument 531 ns_name_pack(const u_char *src, u_char *dst, int dstsiz, const u_char **dnptrs, const u_char **lastdnptr) argument 634 ns_name_uncompress(const u_char *msg, const u_char *eom, const u_char *src, char *dst, size_t dstsiz) argument 663 ns_name_compress(const char *src, u_char *dst, size_t dstsiz, const u_char **dnptrs, const u_char **lastdnptr) argument 1050 encode_bitsring(const char **bp, const char *end, unsigned char **labelp, unsigned char ** dst, unsigned const char *eom) argument [all...] |
/bionic/benchmarks/ |
H A D | string_benchmark.cpp | 31 char* src = new char[nbytes]; char* dst = new char[nbytes]; local 33 memset(dst, 'x', nbytes); 38 c += memcmp(dst, src, nbytes); 44 delete[] dst; 50 char* src = new char[nbytes]; char* dst = new char[nbytes]; local 55 memcpy(dst, src, nbytes); 61 delete[] dst; 83 char* dst = new char[nbytes]; local 87 memset(dst, 0, nbytes); 92 delete[] dst; [all...] |
/bionic/libc/include/ |
H A D | sched.h | 88 #define CPU_AND(dst, set1, set2) __CPU_OP(dst, set1, set2, &) 89 #define CPU_OR(dst, set1, set2) __CPU_OP(dst, set1, set2, |) 90 #define CPU_XOR(dst, set1, set2) __CPU_OP(dst, set1, set2, ^) 92 #define __CPU_OP(dst, set1, set2, op) __CPU_OP_S(sizeof(cpu_set_t), dst, set1, set2, op) 131 #define CPU_AND_S(setsize, dst, set1, set2) __CPU_OP_S(setsize, dst, set [all...] |
/bionic/libc/upstream-openbsd/lib/libc/net/ |
H A 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); 37 * inet_pton(af, src, dst) 42 * 0 if the address wasn't valid (`dst' is untouched in this case) 43 * -1 if some other error occurred (`dst' is untouched in this case, too) 48 inet_pton(int af, const char *src, void *dst) argument 52 return (inet_pton4(src, dst)); 54 return (inet_pton6(src, dst)); 63 * inet_pton4(src, dst) 68 * does not touch `dst' unles 73 inet_pton4(const char *src, u_char *dst) argument 124 inet_pton6(const char *src, u_char *dst) argument [all...] |
H A 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); 38 * inet_ntop(af, src, dst, size) 41 * pointer to presentation format address (`dst'), or NULL (see errno). 46 inet_ntop(int af, const void *src, char *dst, socklen_t size) argument 50 return (inet_ntop4(src, dst, (size_t)size)); 52 return (inet_ntop6(src, dst, (size_t)size)); 61 * inet_ntop4(src, dst, size) 64 * `dst' (as a const) 72 inet_ntop4(const u_char *src, char *dst, size_ argument 94 inet_ntop6(const u_char *src, char *dst, size_t size) argument [all...] |
/bionic/libc/bionic/ |
H A D | __stpncpy_chk.cpp | 64 extern "C" char* __stpncpy_chk2(char* __restrict dst, const char* __restrict src, argument 72 char* d = dst; 91 return dst;
|
H A D | __strncpy_chk.cpp | 64 extern "C" char* __strncpy_chk2(char* __restrict dst, const char* __restrict src, argument 72 char* d = dst; 91 return dst;
|
H A D | wchar.cpp | 68 size_t mbsnrtowcs(wchar_t* dst, const char** src, size_t nmc, size_t len, mbstate_t* ps) { argument 73 if (dst == NULL) { 120 dst[o] = (*src)[i]; 127 r = mbrtowc(dst + o, *src + i, nmc - i, state); 146 size_t mbsrtowcs(wchar_t* dst, const char** src, size_t len, mbstate_t* ps) { argument 147 return mbsnrtowcs(dst, src, SIZE_MAX, len, ps); 158 size_t wcsnrtombs(char* dst, const wchar_t** src, size_t nwc, size_t len, mbstate_t* ps) { argument 168 if (dst == NULL) { 191 dst[o] = wc; 199 r = wcrtomb(dst 221 wcsrtombs(char* dst, const wchar_t** src, size_t len, mbstate_t* ps) argument [all...] |
H A D | stubs.cpp | 58 passwd* dst, char* buf, size_t byte_count, 79 dst->pw_name = buf; 81 dst->pw_dir = buf + required_byte_count; 83 dst->pw_shell = buf + required_byte_count; 93 dst->pw_passwd = NULL; 95 dst->pw_gecos = NULL; 99 dst->pw_gid = src->pw_gid; 100 dst->pw_uid = src->pw_uid; 102 *result = dst; 57 do_getpw_r(int by_name, const char* name, uid_t uid, passwd* dst, char* buf, size_t byte_count, passwd** result) argument
|
/bionic/libc/dns/resolv/ |
H A D | res_comp.c | 100 * 'dst' is a pointer to a buffer of size 'dstsiz' for the result. 105 char *dst, int dstsiz) 107 int n = ns_name_uncompress(msg, eom, src, dst, (size_t)dstsiz); 109 if (n > 0 && dst[0] == '.') 110 dst[0] = '\0'; 120 dn_comp(const char *src, u_char *dst, int dstsiz, argument 123 return (ns_name_compress(src, dst, (size_t)dstsiz, 260 void __putlong(u_int32_t src, u_char *dst) { ns_put32(src, dst); } argument 261 void __putshort(u_int16_t src, u_char *dst) { ns_put1 argument 104 dn_expand(const u_char *msg, const u_char *eom, const u_char *src, char *dst, int dstsiz) argument [all...] |
/bionic/tests/ |
H A D | fortify_test.cpp | 877 char dst[10]; local 879 stpncpy(dst, src, sizeof(dst)); 880 ASSERT_EQ('0', dst[0]); 881 ASSERT_EQ('1', dst[1]); 882 ASSERT_EQ('2', dst[2]); 883 ASSERT_EQ('3', dst[3]); 884 ASSERT_EQ('4', dst[4]); 885 ASSERT_EQ('5', dst[5]); 886 ASSERT_EQ('6', dst[ 894 char dst[15]; local 916 char dst[10]; local 933 char dst[15]; local [all...] |
H A D | string_test.cpp | 937 static void verify_memmove(char* src_copy, char* dst, char* src, size_t size) { argument 938 memset(dst, 0, size); 940 ASSERT_EQ(dst, memmove(dst, src, size)); 941 ASSERT_EQ(0, memcmp(dst, src_copy, size)); 953 // to compare dst against. 958 // Check all different dst offsets between 0 and 127 inclusive. 961 char* dst = buffer + 256 + i; local 963 verify_memmove(src_data, dst, src, 1024); 966 verify_memmove(src_data, dst, sr 973 char* dst = buffer + 256; local 1026 DoMemcpyTest(uint8_t* src, uint8_t* dst, size_t len) argument 1042 DoMemmoveTest(uint8_t* src, uint8_t* dst, size_t len) argument 1089 DoStrcpyTest(uint8_t* src, uint8_t* dst, size_t len) argument 1108 DoStpcpyTest(uint8_t* src, uint8_t* dst, size_t len) argument 1141 DoStrcatTest(uint8_t* src, uint8_t* dst, size_t len) argument [all...] |
H A D | wchar_test.cpp | 414 wchar_t dst[128]; local 418 memset(dst, 0, sizeof(dst)); 420 ASSERT_EQ(0U, mbsnrtowcs(dst, &src, 0, 0, NULL)); 422 memset(dst, 0, sizeof(dst)); 424 ASSERT_EQ(2U, mbsnrtowcs(dst, &src, 2, 123, NULL)); // glibc chokes on SIZE_MAX here. 425 ASSERT_EQ(L'h', dst[0]); 426 ASSERT_EQ(L'e', dst[1]); 429 memset(dst, [all...] |
H A D | buffer_tests.cpp | 271 uint8_t* dst = new uint8_t[3*max_test_size]; local 285 dst+FENCEPOST_LENGTH, g_double_aligns[i][2], g_double_aligns[i][3])); 296 delete dst; 384 uint8_t* dst = new uint8_t[pagesize]; local 388 test_func(src, dst, i); 392 delete dst;
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
H A D | xt_HMARK.h | 49 __u16 dst; member in struct:hmark_ports::__anon521 54 __be16 dst; member in struct:hmark_ports::__anon522
|
/bionic/linker/ |
H A D | linker_environ.cpp | 151 char** dst = _envp; local 160 dst[0] = src[0]; 161 ++dst; 163 dst[0] = NULL;
|
/bionic/libc/kernel/uapi/linux/ |
H A D | ivtv.h | 32 struct v4l2_rect dst; member in struct:ivtv_dma_frame
|
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
H A D | regexec.c | 127 #define FWD(dst, src, n) ((dst) |= ((unsigned long)(src)&(here)) << (n)) 128 #define BACK(dst, src, n) ((dst) |= ((unsigned long)(src)&(here)) >> (n)) 179 #define FWD(dst, src, n) ((dst)[here+(n)] |= (src)[here]) 180 #define BACK(dst, src, n) ((dst)[here-(n)] |= (src)[here])
|
/bionic/libc/arch-mips/string/ |
H A D | memcpy.S | 68 * Below we handle the case where memcpy is called with overlapping src and dst. 84 move v0,a0 # memcpy returns the dst pointer 86 # Test if the src and dst are word-aligned, or can be made word-aligned 94 beq a3,zero,.Lchk16w # when a3=0 then the dst (a0) is word-aligned 102 # Now the dst/src are mutually word-aligned with word-aligned addresses 111 addu a3,a0,a3 # Now a3 is the final dst after 64-byte chunks 217 addu a3,a0,a3 # now a3 is the dst address past the 1w chunks 230 addu a3,a0,a2 # a3 is the last dst address 256 addu a0,a0,a3 # below the dst will be word aligned (NOTE1) 265 addu a3,a0,a3 # Now a3 is the final dst afte [all...] |
H A D | memset.S | 71 * void _memset16(uint16_t* dst, uint16_t value, size_t size); 121 * void _memset32(uint32_t* dst, uint32_t value, size_t size); 158 move v0,a0 # memset returns the dst pointer 190 addu a3,a0,a3 # Now a3 is the final dst after 64-byte chunks 205 addu t4,a0,t5 # Now t4 is the dst after 64-byte "safe" chunks 290 addu a3,a0,a3 # now a3 is the dst address past the 1w chunks
|
/bionic/libc/arch-mips64/string/ |
H A D | memcpy.S | 68 * Below we handle the case where memcpy is called with overlapping src and dst. 84 move v0,a0 # memcpy returns the dst pointer 86 # Test if the src and dst are word-aligned, or can be made word-aligned 94 beq a3,zero,.Lchk16w # when a3=0 then the dst (a0) is word-aligned 102 # Now the dst/src are mutually word-aligned with word-aligned addresses 111 addu a3,a0,a3 # Now a3 is the final dst after 64-byte chunks 217 addu a3,a0,a3 # now a3 is the dst address past the 1w chunks 230 addu a3,a0,a2 # a3 is the last dst address 256 addu a0,a0,a3 # below the dst will be word aligned (NOTE1) 265 addu a3,a0,a3 # Now a3 is the final dst afte [all...] |
H A D | memset.S | 71 * void _memset16(uint16_t* dst, uint16_t value, size_t size); 121 * void _memset32(uint32_t* dst, uint32_t value, size_t size); 158 move v0,a0 # memset returns the dst pointer 190 addu a3,a0,a3 # Now a3 is the final dst after 64-byte chunks 205 addu t4,a0,t5 # Now t4 is the dst after 64-byte "safe" chunks 290 addu a3,a0,a3 # now a3 is the dst address past the 1w chunks
|
/bionic/libc/tools/zoneinfo/ |
H A D | ZoneCompactor.java | 169 private static byte[] toAscii(byte[] dst, String src) { argument 174 dst[i] = (byte) src.charAt(i); 176 return dst;
|
/bionic/libc/kernel/uapi/linux/netfilter_ipv4/ |
H A D | ip_tables.h | 64 struct in_addr src, dst; member in struct:ipt_ip
|