Searched refs:strncpy (Results 1 - 23 of 23) sorted by relevance

/bionic/libc/arch-x86/atom/string/
H A Dssse3-strncpy-atom.S32 #define STRCPY strncpy
/bionic/libc/arch-x86/silvermont/string/
H A Dsse2-strncpy-slm.S32 #define STRCPY strncpy
/bionic/libc/arch-x86_64/string/
H A Dsse2-strncpy-slm.S32 #define STRCPY strncpy
/bionic/libc/upstream-openbsd/lib/libc/string/
H A Dstrncpy.c1 /* $OpenBSD: strncpy.c,v 1.7 2014/06/10 04:17:37 deraadt Exp $ */
42 strncpy(char *dst, const char *src, size_t n) function
/bionic/libc/bionic/
H A Dif_indextoname.c53 ret = strncpy (ifname, ifr.ifr_name, IFNAMSIZ);
H A Dif_nametoindex.c47 strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
H A D__strncpy_chk.cpp43 * This strncpy check is called if _FORTIFY_SOURCE is defined and
49 __fortify_chk_fail("strncpy: prevented write past end of buffer",
53 return strncpy(dest, src, len);
61 * based on the original version of strncpy, but modified to check
68 __fortify_chk_fail("strncpy: prevented write past end of buffer",
87 __fortify_chk_fail("strncpy: prevented read past end of buffer", 0);
/bionic/libstdc++/include/
H A Dcstring59 using ::strncpy;
/bionic/tests/
H A Dfortify_test.cpp91 ASSERT_EXIT(strncpy(myfoo.a, "01234567890", copy_amt),
104 ASSERT_EXIT(strncpy(myfoo.b, myfoo.one, sizeof(myfoo.b)),
332 strncpy(myfoo.a, "012345678", n);
583 strncpy(buf, "012345678", n);
644 ASSERT_EXIT(strncpy(bufb, bufa, n), testing::KilledBySignal(SIGABRT), "");
653 ASSERT_EXIT(strncpy(dest, src, sizeof(dest)), testing::KilledBySignal(SIGABRT), "");
914 TEST(TEST_NAME, strncpy) {
918 strncpy(dst, src, sizeof(dst));
935 strncpy(dst, src, sizeof(dst));
H A Dstring_test.cpp587 strncpy(state.ptr + state.MAX_LEN - 1, state.ptr1, std::min(actual, pos));
672 TEST(string, strncpy) {
/bionic/libc/arch-arm64/
H A Darm64.mk29 upstream-openbsd/lib/libc/string/strncpy.c \
/bionic/libc/arch-mips64/
H A Dmips64.mk43 upstream-openbsd/lib/libc/string/strncpy.c \
/bionic/libc/arch-x86_64/
H A Dx86_64.mk61 arch-x86_64/string/sse2-strncpy-slm.S \
/bionic/libc/dns/resolv/
H A Dres_init.c249 (void)strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1);
307 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1);
323 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1);
573 strncpy(ext->nsuffix, cp, (size_t)i);
581 strncpy(ext->nsuffix2, cp, (size_t)i);
H A Dres_query.c406 strncpy(nbuf, name, (size_t)n);
H A Dres_send.c1282 strncpy(hbuf, "?", sizeof(hbuf) - 1);
1284 strncpy(sbuf, "?", sizeof(sbuf) - 1);
H A Dres_debug.c752 strncpy(buf, ret, size - 1);
/bionic/libc/arch-arm/
H A Darm.mk49 upstream-openbsd/lib/libc/string/strncpy.c \
/bionic/libc/arch-mips/
H A Dmips.mk59 upstream-openbsd/lib/libc/string/strncpy.c \
/bionic/libc/include/
H A Dstring.h77 extern char* strncpy(char* __restrict, const char* __restrict, size_t);
146 char* strncpy(char* __restrict dest, const char* __restrict src, size_t n) { function
/bionic/libc/dns/
H A Dgethnamaddr.c685 strncpy(rs->hostbuf, name, MAXDNAME);
719 strncpy(rs->hostbuf, name, MAXDNAME);
/bionic/libc/tzcode/
H A Dlocaltime.c1169 (void) strncpy(cp, stdname, stdlen);
1173 (void) strncpy(cp, dstname, dstlen);
/bionic/libc/dns/net/
H A Dgetaddrinfo.c2424 strncpy(nbuf, name, n);

Completed in 466 milliseconds