Home
last modified time | relevance | path

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

/bionic/libc/arch-x86_64/string/
Dsse2-strncpy-slm.S32 #define STRCPY strncpy
/bionic/libc/arch-x86/atom/string/
Dssse3-strncpy-atom.S32 #define STRCPY strncpy
/bionic/libc/arch-x86/silvermont/string/
Dsse2-strncpy-slm.S32 #define STRCPY strncpy
/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrncpy.c42 strncpy(char *dst, const char *src, size_t n) __overloadable in strncpy() function
/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.cpp360 return strncpy(dst, src, len); in __strncpy_chk()
/bionic/tests/
Dfortify_test.cpp88 ASSERT_FORTIFY(strncpy(myfoo.a, "01234567890", copy_amt)); in TEST_F()
99 ASSERT_FORTIFY(strncpy(myfoo.b, myfoo.one, sizeof(myfoo.b))); in TEST_F()
301 strncpy(myfoo.a, "012345678", n); in TEST_F()
529 strncpy(buf, "012345678", n); in TEST_F()
589 ASSERT_FORTIFY(strncpy(bufb, bufa, n)); in TEST_F()
597 ASSERT_FORTIFY(strncpy(dest, src, sizeof(dest))); in TEST_F()
921 TEST(TEST_NAME, strncpy) { in TEST() argument
925 strncpy(dst, src, sizeof(dst)); in TEST()
942 strncpy(dst, src, sizeof(dst)); in TEST()
Dfortify_compilation_test.cpp120 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.c1317 strncpy(hbuf, "?", sizeof(hbuf) - 1); in Aerror()
1319 strncpy(sbuf, "?", sizeof(sbuf) - 1); in Aerror()
Dres_debug.c744 strncpy(buf, ret, size - 1); in p_sockun()
/bionic/libc/include/
Dstring.h114 char* strncpy(char* _Nonnull __restrict, const char* _Nonnull __restrict, size_t)
115 __overloadable __RENAME_CLANG(strncpy);
292 char* strncpy(char* __restrict const _Nonnull dst __pass_object_size, in strncpy() function
421 extern char* __strncpy_real(char* __restrict, const char*, size_t) __RENAME(strncpy);
494 char* strncpy(char* _Nonnull __restrict dst, const char* _Nonnull __restrict src, size_t n) { in strncpy() function
/bionic/libc/
DAndroid.bp561 "upstream-openbsd/lib/libc/string/strncpy.c",
661 "upstream-openbsd/lib/libc/string/strncpy.c",
683 "upstream-openbsd/lib/libc/string/strncpy.c",
1136 "arch-x86/silvermont/string/sse2-strncpy-slm.S",
1160 "arch-x86/atom/string/ssse3-strncpy-atom.S",
1170 "arch-x86/silvermont/string/sse2-strncpy-slm.S",
1213 "arch-x86_64/string/sse2-strncpy-slm.S",
Dlibc.mips64.map935 strncpy;
Dlibc.arm64.map935 strncpy;
Dlibc.x86_64.map935 strncpy;
Dlibc.mips.map992 strncpy;
Dlibc.x86.map990 strncpy;
Dlibc.map.txt1019 strncpy;
Dlibc.arm.map994 strncpy;
/bionic/libc/tools/
Dposix-2013.txt1012 strncpy
/bionic/libc/dns/net/
Dgetaddrinfo.c2434 strncpy(nbuf, name, n); in res_querydomainN()