Home
last modified time | relevance | path

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

12

/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.cpp53 : strncpy(ifname, ifr.ifr_name, IFNAMSIZ); in if_indextoname()
61 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in if_nametoindex()
Dlibc_init_static.cpp179 strncpy(options, env, options_size); in get_config_from_env_or_sysprops()
Dfortify.cpp354 return strncpy(dst, src, len); in __strncpy_chk()
/bionic/libc/arch-x86/
Dstatic_function_dispatch.S42 FUNCTION_DELEGATE(strncpy, strncpy_generic)
Ddynamic_function_dispatch.cpp77 DEFINE_IFUNC_FOR(strncpy) { in DEFINE_IFUNC_FOR() argument
/bionic/tests/
Dfortify_test.cpp70 ASSERT_FORTIFY(strncpy(myfoo.a, "01234567890", copy_amt)); in TEST_F()
77 ASSERT_FORTIFY(strncpy(myfoo.b, myfoo.one, sizeof(myfoo.b))); in TEST_F()
255 strncpy(myfoo.a, "012345678", n); in TEST_F()
474 strncpy(buf, "012345678", n); in TEST_F()
534 ASSERT_FORTIFY(strncpy(bufb, bufa, n)); in TEST_F()
542 ASSERT_FORTIFY(strncpy(dest, src, sizeof(dest))); in TEST_F()
866 TEST(TEST_NAME, strncpy) { in TEST() argument
870 strncpy(dst, src, sizeof(dst)); in TEST()
887 strncpy(dst, src, sizeof(dst)); in TEST()
Dclang_fortify_tests.cpp172 EXPECT_FORTIFY_DEATH(strncpy(small_buffer, large_string, sizeof(large_string))); in FORTIFY_TEST()
216 EXPECT_FORTIFY_DEATH_STRUCT(strncpy(split.tiny_buffer, small_string, sizeof(small_string))); in FORTIFY_TEST()
Dstring_test.cpp637 strncpy(state.ptr + state.MAX_LEN - 1, state.ptr1, std::min(actual, pos)); in TEST()
716 TEST(STRING_TEST, strncpy) { in TEST() argument
/bionic/tests/headers/posix/
Dstring_h.c60 FUNCTION(strncpy, char* (*f)(char*, const char*, size_t)); in string_h()
/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.c1305 strncpy(hbuf, "?", sizeof(hbuf) - 1); in Aerror()
1307 strncpy(sbuf, "?", sizeof(sbuf) - 1); in Aerror()
Dres_debug.c762 strncpy(buf, ret, size - 1); in p_sockun()
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_083.S131 CALL(strncpy)
Dliblinker_reloc_bench_023.S231 CALL(strncpy)
Dliblinker_reloc_bench_027.S309 CALL(strncpy)
Dliblinker_reloc_bench_008.S341 CALL(strncpy)
Dliblinker_reloc_bench_076.S300 CALL(strncpy)
/bionic/libc/include/
Dstring.h107 char* strncpy(char* __dst, const char* __src, size_t __n);
/bionic/libc/include/bits/fortify/
Dstring.h174 char* strncpy(char* const dst __pass_object_size, const char* const src __pass_object_size, size_t … in strncpy() function
/bionic/libc/
DAndroid.bp633 "upstream-openbsd/lib/libc/string/strncpy.c",
662 "upstream-openbsd/lib/libc/string/strncpy.c",
677 "upstream-openbsd/lib/libc/string/strncpy.c",
928 "arch-x86/silvermont/string/sse2-strncpy-slm.S",
959 "arch-x86/atom/string/ssse3-strncpy-atom.S",
982 "arch-x86_64/string/sse2-strncpy-slm.S",
/bionic/libc/tools/
Dposix-2013.txt1012 strncpy

12