Home
last modified time | relevance | path

Searched refs:strlcpy (Results 1 – 25 of 156) sorted by relevance

1234567

/external/clang/test/Sema/
Dwarn-strlcpycat-size.c4 size_t strlcpy (char * restrict dst, const char * restrict src, size_t size);
21 strlcpy(s1, s2, sizeof(s1)); // no warning in f()
22strlcpy(s1, s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' call appears to be s… in f()
23strlcpy(s1, s3, strlen(s3)+1); // expected-warning {{size argument in 'strlcpy' call appears to be… in f()
25strlcpy(s4.f1, s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' call appears to b… in f()
26strlcpy((*s5)->f2[x], s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' call appea… in f()
27strlcpy(s1+3, s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' call appears to be… in f()
38strlcpy(s->x, str, sizeof(str)); // expected-warning {{size argument in 'strlcpy' call appears to… in flexible_arrays()
46strlcpy(z, str, sizeof(str)); // expected-warning {{size argument in 'strlcpy' call appears to be… in size_1()
54strlcpy(z, str, sizeof(str)); // expected-warning {{size argument in 'strlcpy' call appears to be … in vlas()
Dbuiltins-gnu-mode.c18 int strlcpy; variable
/external/openssh/
Dlogintest.c101 strlcpy(username, pw->pw_name, sizeof(username)); in testAPI()
109 strlcpy(li1->progname, "OpenSSH-logintest", sizeof(li1->progname)); in testAPI()
123 strlcpy(li1->hostname, "localhost", sizeof(li1->hostname)); in testAPI()
144 strlcpy(s_t0, ctime(&t0), sizeof(s_t0)); in testAPI()
146 strlcpy(s_t1, ctime(&t1), sizeof(s_t1)); in testAPI()
155 strlcpy(s_logintime, ctime(&logintime), sizeof(s_logintime)); in testAPI()
171 strlcpy(s_logouttime, ctime(&logouttime), sizeof(s_logouttime)); in testAPI()
186 strlcpy(s_t2, ctime(&t2), sizeof(s_t2)); in testAPI()
Dloginrec.c313 if (strlcpy(li->username, pw->pw_name, sizeof(li->username)) >= in login_get_lastlog()
380 strlcpy(li->username, username, sizeof(li->username)); in login_init_entry()
390 strlcpy(li->hostname, hostname, sizeof(li->hostname)); in login_init_entry()
564 strlcpy(dst, src, dstsize); in line_fullname()
566 strlcpy(dst, "/dev/", dstsize); in line_fullname()
578 strlcpy(dst, src + 5, dstsize); in line_stripname()
580 strlcpy(dst, src, dstsize); in line_stripname()
1230 strlcpy(li->hostname, ut.ut_host, in wtmp_get_entry()
1392 strlcpy(li->hostname, utx.ut_host, in wtmpx_get_entry()
1489 strlcpy(lastlog_file, LASTLOG_FILE, sizeof(lastlog_file)); in lastlog_openseek()
[all …]
Dsftp-glob.c84 strlcpy(ret->d_name, od->dir[od->offset++]->filename, MAXPATHLEN); in fudge_readdir()
86 strlcpy(ret->d_name, od->dir[od->offset++]->filename, in fudge_readdir()
/external/google-breakpad/src/client/mac/crash_generation/
DInspector.h67 strlcpy(key, inEntry.key, sizeof(key) ); in KeyValueMessageData()
68 strlcpy(value, inEntry.value, sizeof(value) ); in KeyValueMessageData()
90 strlcpy(minidump_dir_path_, [minidumpDir fileSystemRepresentation], in MinidumpLocation()
100 strlcpy(minidump_id_, next_minidump_id.c_str(), sizeof(minidump_id_)); in MinidumpLocation()
/external/openssh/openbsd-compat/
Drealpath.c69 left_len = strlcpy(left, path + 1, sizeof(left)); in realpath()
72 strlcpy(resolved, ".", PATH_MAX); in realpath()
76 left_len = strlcpy(left, path, sizeof(left)); in realpath()
185 left_len = strlcpy(left, symlink, sizeof(left)); in realpath()
Dfake-rfc2553.c58 if (strlcpy(serv, tmpserv, servlen) >= servlen) in getnameinfo()
64 if (strlcpy(host, inet_ntoa(sin->sin_addr), in getnameinfo()
75 if (strlcpy(host, hp->h_name, hostlen) >= hostlen) in getnameinfo()
Dsetproctitle.c140 strlcpy(buf, __progname, sizeof(buf)); in setproctitle()
161 len = strlcpy(argv_start, ptitle, argv_env_len); in setproctitle()
Dinet_ntop.c97 strlcpy(dst, tmp, size); in inet_ntop4()
207 strlcpy(dst, tmp, size); in inet_ntop6()
Dbsd-cray.c226 strlcpy(hostname, in cray_setup()
322 strlcpy(ue.ue_name, "root", sizeof(ue.ue_name)); in cray_setup()
323 strlcpy(ue.ue_dir, "/", sizeof(ue.ue_dir)); in cray_setup()
324 strlcpy(ue.ue_shell, "/bin/sh", sizeof(ue.ue_shell)); in cray_setup()
504 strlcpy(acct_name, acid2nam(valid_acct), MAXACID); in cray_setup()
/external/dhcpcd/
Dnet.c85 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in if_nametoindex()
207 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in init_interface()
212 strlcpy(iface->name, ifname, sizeof(iface->name)); in init_interface()
227 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in init_interface()
278 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); in carrier_status()
292 strlcpy(ifmr.ifm_name, iface->name, sizeof(ifmr.ifm_name)); in carrier_status()
312 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); in up_interface()
382 strlcpy(ifn, argv[i], sizeof(ifn)); in discover_interfaces()
443 strlcpy(iflr.iflr_name, ifp->name, in discover_interfaces()
588 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in do_mtu()
[all …]
/external/mksh/src/
Dstrlcpy.c28 #undef strlcpy
30 strlcpy(char *dst, const char *src, size_t siz) in strlcpy() function
/external/libedit/src/
Dstrlcpy.c32 __weak_alias(strlcpy, _strlcpy) in __weak_alias() argument
43 strlcpy(char *dst, const char *src, size_t siz) in __weak_alias()
Dsys.h100 #define strlcpy libedit_strlcpy macro
101 size_t strlcpy(char *dst, const char *src, size_t size);
/external/linux-tools-perf/src/tools/perf/util/
Dabspath.c16 strlcpy(cwd, pwd, PATH_MAX); in get_pwd_cwd()
27 if (strlcpy(buf, path, PATH_MAX) >= PATH_MAX) in make_nonrelative_path()
Dpath.c26 size_t strlcpy(char *dest, const char *src, size_t size) in strlcpy() function
74 strlcpy(buf, bad_path, n); in perf_vsnpath()
/external/ppp/pppd/
Dsys-linux.c1197 strlcpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name)); in netif_set_mtu()
1213 strlcpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name)); in netif_get_mtu()
1382 strlcpy(req.ifr__name, ifname, sizeof(req.ifr__name));
1426 strlcpy (proc_path, "/proc", sizeof(proc_path)); in path_to_procfs()
1434 strlcpy(proc_path, mntent->mnt_dir, sizeof(proc_path)); in path_to_procfs()
1443 strlcpy(proc_path + proc_path_len, tail, in path_to_procfs()
1718 strlcpy(arpreq.arp_dev, proxy_arp_dev, sizeof(arpreq.arp_dev)); in sifproxyarp()
1759 strlcpy(arpreq.arp_dev, proxy_arp_dev, sizeof(arpreq.arp_dev)); in cifproxyarp()
1806 strlcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name)); in get_ether_addr()
1839 strlcpy(name, bestifreq.ifr_name, namelen); in get_ether_addr()
[all …]
Dsys-solaris.c514 strlcpy(lifr.lifr_name, ifname, sizeof(lifr.lifr_name));
1515 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
1527 strlcpy(lifr.lifr_name, ifname, sizeof(lifr.lifr_name));
1771 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
1796 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
1847 strlcpy(lifr.lifr_name, ifname, sizeof(lifr.lifr_name));
1854 strlcpy(lifr.lifr_name, ifname, sizeof(lifr.lifr_name));
1880 strlcpy(lifr.lifr_name, ifname, sizeof(lifr.lifr_name));
1887 strlcpy(lifr.lifr_name, ifname, sizeof(lifr.lifr_name));
1916 strlcpy(lifr.lifr_name, ifname, sizeof(lifr.lifr_name));
[all …]
/external/clang/test/CodeGen/
Dinline.c124 inline __typeof(sizeof(int)) strlcpy(char *dest, const char *src, __typeof(sizeof(int)) size) { ret… in strlcpy() function
125 void test8() { strlcpy(0,0,0); } in test8()
/external/tcpdump/
Dprint-sunrpc.c101 strlcpy(dstid, "sunrpc", sizeof(dstid)); in sunrpcrequest_print()
169 strlcpy(buf, rp->r_name, sizeof(buf));
/external/clang/test/SemaCXX/
Dwarn-memsize-comparison.cpp14 extern "C" size_t strlcpy(char *dst, const char *src, size_t size);
73 if (strlcpy(b1, b2, sizeof(b1) != 0)) {} // \ in f()
77 if (strlcpy(b1, b2, sizeof(b1)) != 0) {} in f()
/external/libedit/
Dconfigure.ac111 …mp strchr strcspn strdup strerror strrchr strstr strtol issetugid wcsdup strlcpy strlcat fgetln vi…
113 # strlcpy
114 AC_CHECK_FUNC(strlcpy, found_strlcpy=yes, found_strlcpy=no)
/external/ppp/pppd/plugins/pppoatm/
Dpppoatm.c86 strlcpy(devnam, cp, sizeof devnam); in setdevname_pppoatm()
159 strlcpy(ppp_devnam, devnam, sizeof(ppp_devnam)); in connect_pppoatm()
/external/libpcap/
Dpcap-null.c45 (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE); in pcap_create_interface()

1234567