Home
last modified time | relevance | path

Searched refs:strlcpy (Results 1 – 25 of 32) 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);
Dstrxfrm.c50 return (strlcpy(dst, src, n)); in strxfrm()
/bionic/libc/arch-x86/generic/string/
Dstrlcpy.c31 #define strlcpy strlcpy_openbsd macro
/bionic/libc/dns/net/
Dgetnameinfo.c161 strlcpy(host, sun->sun_path, in getnameinfo_local()
230 strlcpy(serv, sp->s_name, servlen); in getnameinfo_inet()
235 strlcpy(serv, numserv, servlen); in getnameinfo_inet()
311 strlcpy(host, numaddr, hostlen); in getnameinfo_inet()
336 strlcpy(host, hp->h_name, hostlen); in getnameinfo_inet()
382 strlcpy(host, numaddr, hostlen); in ip6_parsenumeric()
Dgethnamaddr.c337 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer()
358 strlcpy(bp, tbuf, (size_t)(ep - bp)); in getanswer()
485 strlcpy(bp, qname, (size_t)(ep - bp)); in getanswer()
/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/bionic/
Dsystem_property_set.cpp66 strlcpy(addr.sun_path, property_service_socket, sizeof(addr.sun_path)); in PropertyServiceConnection()
264 strlcpy(msg.name, key, sizeof msg.name); in __system_property_set()
265 strlcpy(msg.value, value, sizeof msg.value); in __system_property_set()
Dstrerror.cpp194 length = strlcpy(buf, error_name, buf_len); in strerror_r()
Difaddrs.cpp292 strlcpy(ifr.ifr_name, addr->ifa.ifa_name, sizeof(ifr.ifr_name)); in get_interface_flags_via_ioctl()
Dfortify.cpp310 return strlcpy(dst, src, supplied_size); in __strlcpy_chk()
/bionic/libc/arch-x86/
Dstatic_function_dispatch.S52 FUNCTION_DELEGATE(strlcpy, strlcpy_openbsd)
Ddynamic_function_dispatch.cpp141 DEFINE_IFUNC_FOR(strlcpy) { in DEFINE_IFUNC_FOR() argument
/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/private/
DCachedProperty.h104 strlcpy(instance->cached_value_, value, PROP_VALUE_MAX); in Callback()
/bionic/linker/
Dlinker_globals.h100 strlcpy(linker_get_error_buffer(), saved_error_msg_.c_str(), linker_get_error_buffer_size()); in ~DlErrorRestorer()
Ddlfcn.cpp109 strlcpy(buffer, msg, __BIONIC_DLERROR_BUFFER_SIZE); in __bionic_format_dlerror()
335 strlcpy(__libdl_info->old_name_, __libdl_info->soname_.c_str(), in get_libdl_info()
Dlinker_utils.cpp159 if (strlcpy(buf, path, sizeof(buf)) >= sizeof(buf)) { in parse_zip_path()
/bionic/libc/include/bits/fortify/
Dstring.h189 size_t strlcpy(char* const dst __pass_object_size, const char* src, size_t size) in strlcpy() function
196 return __call_bypassing_fortify(strlcpy)(dst, src, size); in strlcpy()
/bionic/libc/system_properties/
Dsystem_properties.cpp177 size_t namelen = strlcpy(name, pi->name, PROP_NAME_MAX); in Read()
259 strlcpy(pi->value, value, len + 1); in Update()
/bionic/libc/tzcode/
Dbionic.cpp59 strlcpy(buf, name, sizeof(buf)); in tzset_unlocked()
/bionic/tests/
Dclang_fortify_tests.cpp180 EXPECT_FORTIFY_DEATH(strlcpy(small_buffer, large_string, sizeof(large_string))); in FORTIFY_TEST()
241 EXPECT_FORTIFY_DEATH_STRUCT(strlcpy(split.tiny_buffer, small_string, sizeof(small_string))); in FORTIFY_TEST()
Dfortify_test.cpp234 ASSERT_FORTIFY(strlcpy(myfoo.one, myfoo.a, n)); in TEST_F()
389 ASSERT_FORTIFY(strlcpy(bufb, bufa, n)); in TEST_F()
Dstring_test.cpp590 TEST(STRING_TEST, strlcpy) { in TEST() argument
613 ASSERT_EQ(strlcpy(state.ptr2, state.ptr1, state.MAX_LEN), strlen(state.ptr1)); in TEST()
1136 ASSERT_EQ(len-1, strlcpy(reinterpret_cast<char*>(dst), in DoStrlcpyTest()
/bionic/libc/include/
Dstring.h110 size_t strlcpy(char* __dst, const char* __src, size_t __n);
/bionic/libc/async_safe/
Dasync_safe_log.cpp485 strlcpy(u.addrUn.sun_path, "/dev/socket/logdw", sizeof(u.addrUn.sun_path)); in open_log_socket()

12