Home
last modified time | relevance | path

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

/bionic/libc/bionic/
D__strncpy_chk.cpp52 return strncpy(dest, src, len); in __strncpy_chk()
Dif_nametoindex.c47 strncpy(ifr.ifr_name, ifname, IFNAMSIZ); in if_nametoindex()
Dif_indextoname.c54 ret = strncpy (ifname, ifr.ifr_name, IFNAMSIZ); in if_indextoname()
/bionic/libc/string/
Dstrncpy.c46 strncpy(char *dst, const char *src, size_t n) in strncpy() function
/bionic/libc/netbsd/resolv/
Dres_init.c238 (void)strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit()
296 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit()
312 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit()
562 strncpy(ext->nsuffix, cp, (size_t)i); in res_setoptions()
570 strncpy(ext->nsuffix2, cp, (size_t)i); in res_setoptions()
802 strncpy(statp->iface, iface, len - 1); in res_setiface()
Dres_query.c396 strncpy(nbuf, name, (size_t)n); in res_nquerydomain()
Dres_cache.c1901 strncpy(cache_info->ifname, ifname, len - 1); in _get_res_cache_for_iface_locked()
2072 strncpy(_res_default_ifname, ifname, size - 1); in _resolv_set_default_iface()
2221 strncpy(addr, ns, len); in _get_nameserver_locked()
2357 strncpy(pidiface_info->ifname, ifname, len - 1); in _resolv_set_iface_for_pid()
2402 strncpy(buff, pidiface_info->ifname, len); in _resolv_get_pids_associated_interface()
2438 strncpy(buff, ifname, len); in _resolv_get_default_iface()
Dres_send.c1264 strncpy(hbuf, "?", sizeof(hbuf) - 1); in Aerror()
1266 strncpy(sbuf, "?", sizeof(sbuf) - 1); in Aerror()
Dres_debug.c690 strncpy(buf, ret, size - 1); in p_sockun()
/bionic/libc/include/
Dstring.h72 extern char* strncpy(char *, const char *, size_t);
123 char *strncpy(char *dest, const char *src, size_t n) { in strncpy() function
/bionic/libstdc++/include/
Dcstring59 using ::strncpy;
/bionic/tests/
Dstring_test.cpp423 strncpy(state.ptr + state.MAX_LEN - 1, state.ptr1, std::min(actual, pos)); in TEST()
469 TEST(string, strncpy) { in TEST() argument
490 ASSERT_TRUE(strncpy(state.ptr2, state.ptr1, state.MAX_LEN) == state.ptr2); in TEST()
/bionic/libc/netbsd/net/
Dgetnameinfo.c170 if (nameBuf) strncpy(nameBuf, hostResult->h_name, nameBufLen); in android_gethostbyaddr_proxy()
Dgetaddrinfo.c2425 strncpy(nbuf, name, n); in res_querydomainN()
/bionic/libc/netbsd/
Dgethnamaddr.c680 strncpy(rs->hostbuf, name, MAXDNAME); in gethostbyname_internal_real()
714 strncpy(rs->hostbuf, name, MAXDNAME); in gethostbyname_internal_real()
/bionic/libc/tzcode/
Dlocaltime.c1183 (void) strncpy(cp, stdname, stdlen);
1187 (void) strncpy(cp, dstname, dstlen);
/bionic/libc/
DAndroid.mk106 string/strncpy.c \