Home
last modified time | relevance | path

Searched refs:strncpy (Results 1 – 22 of 22) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrncpy.c42 strncpy(char *dst, const char *src, size_t n) in strncpy() function
59 DEF_STRONG(strncpy);
/bionic/libc/arch-x86_64/string/
Dsse2-strncpy-slm.S32 #define STRCPY strncpy
/bionic/libc/bionic/
Dgetdomainname.cpp47 strncpy(name, uts.domainname, len); in getdomainname()
Dnet_if.cpp58 return (rc == -1) ? nullptr : strncpy(ifname, ifr.ifr_name, IFNAMSIZ); in if_indextoname()
67 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in if_nametoindex()
Dfortify.cpp357 return strncpy(dst, src, len); in __strncpy_chk()
/bionic/libc/arch-x86/
Dstatic_function_dispatch.S42 FUNCTION_DELEGATE(strncpy, strncpy_generic)
Ddynamic_function_dispatch.cpp89 DEFINE_IFUNC_FOR(strncpy) { in DEFINE_IFUNC_FOR() argument
/bionic/tests/headers/posix/
Dstring_h.c60 FUNCTION(strncpy, char* (*f)(char*, const char*, size_t)); in string_h()
/bionic/tests/
Dfortify_test.cpp77 ASSERT_FORTIFY(strncpy(myfoo.a, "01234567890", copy_amt)); in TEST_F()
84 ASSERT_FORTIFY(strncpy(myfoo.b, myfoo.one, sizeof(myfoo.b))); in TEST_F()
260 strncpy(myfoo.a, "012345678", n); in TEST_F()
479 strncpy(buf, "012345678", n); in TEST_F()
539 ASSERT_FORTIFY(strncpy(bufb, bufa, n)); in TEST_F()
547 ASSERT_FORTIFY(strncpy(dest, src, sizeof(dest))); in TEST_F()
871 TEST(TEST_NAME, strncpy) { in TEST() argument
875 strncpy(dst, src, sizeof(dst)); in TEST()
892 strncpy(dst, src, sizeof(dst)); in TEST()
Dfortify_filecheck_diagnostics_test.cpp119 strncpy(buf, "foobar", sizeof("foobar")); in test_strncpy()
Dstring_test.cpp632 strncpy(state.ptr + state.MAX_LEN - 1, state.ptr1, std::min(actual, pos)); in TEST()
711 TEST(STRING_TEST, strncpy) { in TEST() argument
/bionic/libc/dns/resolv/
Dres_init.c250 (void)strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit()
308 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit()
324 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit()
574 strncpy(ext->nsuffix, cp, (size_t)i); in res_setoptions()
582 strncpy(ext->nsuffix2, cp, (size_t)i); in res_setoptions()
Dres_query.c406 strncpy(nbuf, name, (size_t)n); in res_nquerydomain()
Dres_send.c1303 strncpy(hbuf, "?", sizeof(hbuf) - 1); in Aerror()
1305 strncpy(sbuf, "?", sizeof(sbuf) - 1); in Aerror()
Dres_debug.c744 strncpy(buf, ret, size - 1); in p_sockun()
/bionic/libc/include/bits/fortify/
Dstring.h143 char* strncpy(char* const dst __pass_object_size, const char* const src __pass_object_size, size_t … in strncpy() function
/bionic/libc/include/
Dstring.h107 char* strncpy(char* __dst, const char* __src, size_t __n);
/bionic/libc/
DAndroid.bp545 "upstream-openbsd/lib/libc/string/strncpy.c",
587 "upstream-openbsd/lib/libc/string/strncpy.c",
602 "upstream-openbsd/lib/libc/string/strncpy.c",
919 "arch-x86/silvermont/string/sse2-strncpy-slm.S",
949 "arch-x86/atom/string/ssse3-strncpy-atom.S",
969 "arch-x86_64/string/sse2-strncpy-slm.S",
Dlibc.map.txt1020 strncpy;
/bionic/libc/tools/
Dposix-2013.txt1012 strncpy
/bionic/libc/dns/net/
Dgetaddrinfo.c2455 strncpy(nbuf, name, n); in res_querydomainN()
/bionic/tools/versioner/platforms/
Dlibc.map.txt1020 strncpy;