/bionic/libc/arch-x86/atom/string/ |
H A D | ssse3-strncpy-atom.S | 32 #define STRCPY strncpy
|
/bionic/libc/arch-x86/silvermont/string/ |
H A D | sse2-strncpy-slm.S | 32 #define STRCPY strncpy
|
/bionic/libc/arch-x86_64/string/ |
H A D | sse2-strncpy-slm.S | 32 #define STRCPY strncpy
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
H A D | strncpy.c | 1 /* $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 D | if_indextoname.c | 53 ret = strncpy (ifname, ifr.ifr_name, IFNAMSIZ);
|
H A D | if_nametoindex.c | 47 strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
|
H A D | __strncpy_chk.cpp | 43 * 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 D | cstring | 59 using ::strncpy;
|
/bionic/tests/ |
H A D | fortify_test.cpp | 91 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 D | string_test.cpp | 587 strncpy(state.ptr + state.MAX_LEN - 1, state.ptr1, std::min(actual, pos)); 672 TEST(string, strncpy) {
|
/bionic/libc/arch-arm64/ |
H A D | arm64.mk | 29 upstream-openbsd/lib/libc/string/strncpy.c \
|
/bionic/libc/arch-mips64/ |
H A D | mips64.mk | 43 upstream-openbsd/lib/libc/string/strncpy.c \
|
/bionic/libc/arch-x86_64/ |
H A D | x86_64.mk | 61 arch-x86_64/string/sse2-strncpy-slm.S \
|
/bionic/libc/dns/resolv/ |
H A D | res_init.c | 249 (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 D | res_query.c | 406 strncpy(nbuf, name, (size_t)n);
|
H A D | res_send.c | 1282 strncpy(hbuf, "?", sizeof(hbuf) - 1); 1284 strncpy(sbuf, "?", sizeof(sbuf) - 1);
|
H A D | res_debug.c | 752 strncpy(buf, ret, size - 1);
|
/bionic/libc/arch-arm/ |
H A D | arm.mk | 49 upstream-openbsd/lib/libc/string/strncpy.c \
|
/bionic/libc/arch-mips/ |
H A D | mips.mk | 59 upstream-openbsd/lib/libc/string/strncpy.c \
|
/bionic/libc/include/ |
H A D | string.h | 77 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 D | gethnamaddr.c | 685 strncpy(rs->hostbuf, name, MAXDNAME); 719 strncpy(rs->hostbuf, name, MAXDNAME);
|
/bionic/libc/tzcode/ |
H A D | localtime.c | 1169 (void) strncpy(cp, stdname, stdlen); 1173 (void) strncpy(cp, dstname, dstlen);
|
/bionic/libc/dns/net/ |
H A D | getaddrinfo.c | 2424 strncpy(nbuf, name, n);
|