Home
last modified time | relevance | path

Searched refs:strlcpy (Results 1 – 25 of 40) sorted by relevance

12

/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrlcpy.c28 strlcpy(char *dst, const char *src, size_t dsize) in strlcpy() function
51 DEF_WEAK(strlcpy);
/bionic/libc/bionic/
D__strlcpy_chk.cpp53 return strlcpy(dest, src, supplied_size); in __strlcpy_chk()
Dsyslog.cpp90 size_t n = strlcpy(dst, strerror(caller_errno), dst_len); in vsyslog()
Dstrerror_r.cpp58 length = strlcpy(buf, error_name, buf_len); in strerror_r()
Dsystem_properties.cpp544 strlcpy(addr.sun_path, property_service_socket, sizeof(addr.sun_path)); in send_prop_msg()
1156 strlcpy(msg.name, key, sizeof msg.name); in __system_property_set()
1157 strlcpy(msg.value, value, sizeof msg.value); in __system_property_set()
Dlibc_logging.cpp478 strlcpy(u.addrUn.sun_path, "/dev/socket/logdw", sizeof(u.addrUn.sun_path)); in __libc_open_log_socket()
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregerror.c186 (void)strlcpy(convbuf, r->name, sizeof convbuf); in regerror()
197 (void)strlcpy(errbuf, s, errbuf_size); in regerror()
/bionic/libc/dns/net/
Dgetnameinfo.c154 strlcpy(host, sun->sun_path, in getnameinfo_local()
223 strlcpy(serv, sp->s_name, servlen); in getnameinfo_inet()
228 strlcpy(serv, numserv, servlen); in getnameinfo_inet()
302 strlcpy(host, numaddr, hostlen); in getnameinfo_inet()
324 strlcpy(host, hp->h_name, hostlen); in getnameinfo_inet()
370 strlcpy(host, numaddr, hostlen); in ip6_parsenumeric()
Dgethnamaddr.c321 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer()
342 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer()
469 strlcpy(bp, qname, (size_t)(ep - bp)); in getanswer()
581 strlcpy(proxy_addr.sun_path, "/dev/socket/dnsproxyd", sizeof(proxy_addr.sun_path)); in android_open_proxy()
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Drealpath.c82 left_len = strlcpy(left, path + 1, sizeof(left)); in realpath()
94 left_len = strlcpy(left, path, sizeof(left)); in realpath()
219 left_len = strlcpy(left, symlink, sizeof(left)); in realpath()
/bionic/libc/upstream-netbsd/lib/libc/gen/
Dutmp.c103 (void)strlcpy(utfile, fname, sizeof(utfile)); in utmpname()
/bionic/libc/upstream-openbsd/lib/libc/net/
Dinet_ntop.c83 strlcpy(dst, tmp, size); in inet_ntop4()
203 strlcpy(dst, tmp, size); in inet_ntop6()
/bionic/libc/arch-x86_64/
Dx86_64.mk14 upstream-openbsd/lib/libc/string/strlcpy.c \
44 arch-x86_64/string/sse2-strlcpy-slm.S \
/bionic/linker/
Ddlfcn.cpp45 strlcpy(buffer, msg, __BIONIC_DLERROR_BUFFER_SIZE); in __bionic_format_dlerror()
282 strlcpy(__libdl_info->old_name_, __libdl_info->soname_, sizeof(__libdl_info->old_name_)); in get_libdl_info()
Dlinker_utils.cpp104 if (strlcpy(buf, path, sizeof(buf)) >= sizeof(buf)) { in parse_zip_path()
/bionic/libc/include/
Dstring.h103 extern size_t strlcpy(char* __restrict, const char* __restrict, size_t);
141 extern size_t __strlcpy_real(char* __restrict, const char* __restrict, size_t) __RENAME(strlcpy);
268 size_t strlcpy(char* __restrict dest, const char* __restrict src, size_t size) { in strlcpy() function
/bionic/libc/arch-x86/
Dx86.mk38 arch-x86/atom/string/ssse3-strlcpy-atom.S \
93 upstream-openbsd/lib/libc/string/strlcpy.c \
/bionic/libc/upstream-openbsd/lib/libc/gen/
Dexec.c166 strlcpy(cur, path, len); in execvpe()
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Dgethex.c61 strlcpy(decimalpoint_cache, s0, strlen(s0) + 1);
/bionic/tests/
Dfortify_test.cpp272 ASSERT_FORTIFY(strlcpy(myfoo.one, myfoo.a, n)); in TEST_F()
444 ASSERT_FORTIFY(strlcpy(bufb, bufa, n)); in TEST_F()
Dstring_test.cpp585 TEST(STRING_TEST, strlcpy) { in TEST() argument
608 ASSERT_EQ(strlcpy(state.ptr2, state.ptr1, state.MAX_LEN), strlen(state.ptr1)); in TEST()
1131 ASSERT_EQ(len-1, strlcpy(reinterpret_cast<char*>(dst), in DoStrlcpyTest()
/bionic/libc/
Dlibc.arm64.map936 strlcpy;
Dlibc.mips64.map936 strlcpy;
Dlibc.x86_64.map936 strlcpy;
/bionic/libc/dns/resolv/
Dres_cache.c2036 strlcpy(cache_info->defdname, domains, sizeof(cache_info->defdname)); in _resolv_set_nameservers_for_net()
2246 strlcpy(domains[i], cur_domain, MAXDNSRCHPATH); in android_net_res_stats_get_info_for_net()

12