Searched refs:strlcpy (Results 1 - 25 of 110) sorted by relevance

12345

/external/dhcpcd-6.8.2/compat/
H A Dstrlcpy.h33 size_t strlcpy(char *, const char *, size_t);
H A Dstrlcpy.c30 #include "strlcpy.h"
33 strlcpy(char *dst, const char *src, size_t size) function
/external/clang/test/Sema/
H A 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
22 strlcpy(s1, s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' call appears to be size of the source; expected the size of the destination}} expected-note {{change size argument to be the size of the destination}}
23 strlcpy(s1, s3, strlen(s3)+1); // expected-warning {{size argument in 'strlcpy' call appears to be size of the source; expected the size of the destination}} expected-note {{change size argument to be the size of the destination}}
25 strlcpy(s4.f1, s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' call appears to be size of the source; expected the size of the destination}} expected-note {{change size argument to be the size of the destination}}
26 strlcpy((*s5)->f2[x], s2, sizeof(s2)); // expected-warning {{size argument in 'strlcpy' cal
[all...]
H A Dbuiltins-gnu-mode.c18 int strlcpy; variable
/external/valgrind/memcheck/tests/solaris/
H A Dstrlcpy.c1 /* Tests for some interesting cases in non-standard strlcpy(). */
25 copied = strlcpy(dst, src, 10);
30 copied = strlcpy(dst, src, strlen(src) + 1);
36 copied = strlcpy(NULL, src, 0);
41 strlcpy(src + 9, src, strlen(src) + 1);
H A Dstrlcpy.stderr.exp2 at 0x........: strlcpy (vg_replace_strmem.c:...)
8 Source and destination overlap in strlcpy(0x........, 0x........, 11)
9 at 0x........: strlcpy (vg_replace_strmem.c:...)
/external/mksh/src/
H A Dstrlcpy.c21 __RCSID("$MirOS: src/bin/mksh/strlcpy.c,v 1.10 2015/11/29 17:05:02 tg Exp $");
28 #undef strlcpy macro
30 strlcpy(char *dst, const char *src, size_t siz) function
/external/libevent/
H A Dstrlcpy-internal.h13 #define strlcpy _event_strlcpy macro
/external/libedit/src/
H A Dstrlcpy.c1 /* $NetBSD: strlcpy.c,v 1.3 2007/06/04 18:19:27 christos Exp $ */
2 /* $OpenBSD: strlcpy.c,v 1.7 2003/04/12 21:56:39 millert Exp $ */
23 __RCSID("$NetBSD: strlcpy.c,v 1.3 2007/06/04 18:19:27 christos Exp $");
32 __weak_alias(strlcpy, _strlcpy)
43 strlcpy(char *dst, const char *src, size_t siz)
H A Dsys.h100 #define strlcpy libedit_strlcpy macro
101 size_t strlcpy(char *dst, const char *src, size_t size);
H A Dstrlcat.c85 * Note strlcpy(dst, src, 0) returns strlen(src).
87 return dlen + strlcpy(dst + dlen, src, siz - dlen);
/external/libpcap/
H A Dpcap-null.c41 (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
/external/tcpdump/missing/
H A Dstrlcpy.c1 /* $NetBSD: strlcpy.c,v 1.5 1999/09/20 04:39:47 lukem Exp $ */
2 /* from OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp */
47 strlcpy(char *dst, const char *src, size_t siz) function
/external/google-breakpad/src/client/mac/crash_generation/
H A DInspector.h67 strlcpy(key, inEntry.key, sizeof(key) );
68 strlcpy(value, inEntry.value, sizeof(value) );
90 strlcpy(minidump_dir_path_, [minidumpDir fileSystemRepresentation],
100 strlcpy(minidump_id_, next_minidump_id.c_str(), sizeof(minidump_id_));
/external/clang/test/CodeGen/
H A Dinline.c15 // CHECK1: define i{{..}} @strlcpy
37 // CHECK2: define available_externally i{{..}} @strlcpy
128 // PR11062; the fact that the function is named strlcpy matters here.
129 inline __typeof(sizeof(int)) strlcpy(char *dest, const char *src, __typeof(sizeof(int)) size) { return 3; } function
130 void test8() { strlcpy(0,0,0); }
/external/dhcpcd-6.8.2/
H A Dif-linux-wext.c74 strlcpy(iwr.ifr_name, ifname, sizeof(iwr.ifr_name));
H A Dif.c132 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name));
141 strlcpy(ifmr.ifm_name, iface->name, sizeof(ifmr.ifm_name));
163 strlcpy(ifr.ifr_name, ifp->name, sizeof(ifr.ifr_name));
330 strlcpy(ifn, argv[i], intf_len + 1);
332 strlcpy(alias, argv[i], intf_len + 1);
344 strlcpy(ifn, ifa->ifa_name, sizeof(ifn));
346 strlcpy(alias, ifa->ifa_name, sizeof(alias));
391 strlcpy(ifp->alias, alias, sizeof(ifp->alias));
393 strlcpy(ifp->name, p, sizeof(ifp->name));
395 strlcpy(if
[all...]
/external/tcpdump/
H A Dprint-sunrpc.c185 strlcpy(dstid, "sunrpc", sizeof(dstid));
252 strlcpy(buf, rp->r_name, sizeof(buf));
/external/google-breakpad/src/common/mac/
H A Dfile_id.cc48 strlcpy(path_, path, sizeof(path_));
/external/ipsec-tools/src/racoon/
H A Dmisc.h63 #define strlcpy(d,s,l) (strncpy(d,s,l), (d)[(l)-1] = '\0') macro
/external/skia/platform_tools/android/third_party/ashmem/cutils/
H A Dashmem-dev.c53 strlcpy(buf, name, sizeof(buf));
/external/ppp/pppd/plugins/pppoatm/
H A Dpppoatm.c86 strlcpy(devnam, cp, sizeof devnam);
159 strlcpy(ppp_devnam, devnam, sizeof(ppp_devnam));
/external/ppp/pppd/
H A Dsys-linux.c1197 strlcpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name));
1213 strlcpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name));
1382 strlcpy(req.ifr__name, ifname, sizeof(req.ifr__name));
1426 strlcpy (proc_path, "/proc", sizeof(proc_path));
1434 strlcpy(proc_path, mntent->mnt_dir, sizeof(proc_path));
1443 strlcpy(proc_path + proc_path_len, tail,
1718 strlcpy(arpreq.arp_dev, proxy_arp_dev, sizeof(arpreq.arp_dev));
1759 strlcpy(arpreq.arp_dev, proxy_arp_dev, sizeof(arpreq.arp_dev));
1806 strlcpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name));
1839 strlcpy(nam
[all...]
/external/libweave/third_party/chromium/base/strings/
H A Dstring_util.h64 size_t strlcpy(char* dst, const char* src, size_t dst_size);
/external/clang/test/SemaCXX/
H A 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)) {} // \
74 expected-warning{{size argument in 'strlcpy' call is a comparison}} \
77 if (strlcpy(b1, b2, sizeof(b1)) != 0) {}

Completed in 716 milliseconds

12345