Searched refs:stpncpy (Results 1 - 12 of 12) sorted by relevance

/bionic/libc/arch-x86/silvermont/string/
H A Dsse2-stpncpy-slm.S33 #define STRCPY stpncpy
/bionic/libc/arch-x86_64/string/
H A Dsse2-stpncpy-slm.S33 #define STRCPY stpncpy
/bionic/libc/upstream-openbsd/lib/libc/string/
H A Dstpncpy.c1 /* $OpenBSD: stpncpy.c,v 1.2 2012/07/11 10:44:59 naddy Exp $ */
38 stpncpy(char *dst, const char *src, size_t n) function
/bionic/libc/bionic/
H A D__stpncpy_chk.cpp43 * This stpncpy check is called if _FORTIFY_SOURCE is defined and
49 __fortify_chk_fail("stpncpy: prevented write past end of buffer",
53 return stpncpy(dest, src, len);
61 * based on the original version of stpncpy, but modified to check
68 __fortify_chk_fail("stpncpy: prevented write past end of buffer",
87 __fortify_chk_fail("stpncpy: prevented read past end of buffer", 0);
/bionic/libc/arch-arm64/
H A Darm64.mk24 upstream-openbsd/lib/libc/string/stpncpy.c \
/bionic/libc/arch-mips/
H A Dmips.mk35 upstream-openbsd/lib/libc/string/stpncpy.c \
/bionic/libc/arch-mips64/
H A Dmips64.mk36 upstream-openbsd/lib/libc/string/stpncpy.c \
/bionic/libc/arch-x86_64/
H A Dx86_64.mk52 arch-x86_64/string/sse2-stpncpy-slm.S \
/bionic/tests/
H A Dfortify_test.cpp59 ASSERT_FORTIFY(stpncpy(myfoo.a, "01234567890", copy_amt));
70 ASSERT_FORTIFY(stpncpy(myfoo.b, myfoo.one, sizeof(myfoo.b)));
560 ASSERT_FORTIFY(stpncpy(bufb, bufa, n));
567 ASSERT_FORTIFY(stpncpy(dest, src, sizeof(dest)));
816 TEST(TEST_NAME, stpncpy) {
820 stpncpy(dst, src, sizeof(dst));
837 stpncpy(dst, src, sizeof(dst));
H A Dstring_test.cpp659 TEST(string, stpncpy) {
685 ASSERT_EQ(state.ptr2 + expected_end, stpncpy(state.ptr2, state.ptr1, copy_len));
722 ASSERT_EQ(state.ptr2 + expected_end, stpncpy(state.ptr2, state.ptr1, copy_len));
/bionic/libc/arch-arm/
H A Darm.mk25 upstream-openbsd/lib/libc/string/stpncpy.c \
/bionic/libc/include/
H A Dstring.h91 extern char* stpncpy(char* __restrict, const char* __restrict, size_t);
203 char* stpncpy(char* __restrict dest, const char* __restrict src, size_t n) { function

Completed in 78 milliseconds