Searched refs:mempcpy (Results 1 - 25 of 37) sorted by relevance

12

/external/clang/test/Analysis/
H A Dbstring.c152 // mempcpy()
161 #define mempcpy(a,b,c) __mempcpy_chk(a,b,c,(size_t)-1) macro
165 #define mempcpy BUILTIN(mempcpy) macro
166 void *mempcpy(void *restrict s1, const void *restrict s2, size_t n);
175 mempcpy(dst, src, 4); // no-warning
177 clang_analyzer_eval(mempcpy(dst, src, 4) == &dst[4]); // expected-warning{{TRUE}}
188 mempcpy(dst, src, 5); // expected-warning{{Memory copy function accesses out-of-bound array element}}
195 mempcpy(dst, src, 4); // expected-warning{{Memory copy function overflows destination buffer}}
202 mempcpy(ds
[all...]
/external/elfutils/src/lib/
H A Dxstrndup.c45 *((char *) mempcpy ((res = xmalloc (len + 1)), string, len)) = '\0';
/external/elfutils/src/libebl/
H A Deblmachineflagname.c77 *((char *) mempcpy (cp, machstr, buf + len - cp - 1)) = '\0';
81 cp = mempcpy (cp, machstr, machstrlen);
H A Deblstrtab.c299 *freep = (char *) mempcpy (*freep, nodep->string, nodep->len);
H A Deblgstrtab.c314 *freep = (char *) mempcpy (*freep, nodep->string, nodep->len * nodep->width);
H A Deblopenbackend.c348 strcpy (mempcpy (symname, machines[cnt].prefix,
/external/elfutils/src/libasm/
H A Ddisasm_str.c54 buffer->buf = mempcpy (buffer->buf, str, len);
H A Dasm_begin.c155 result->fname = stpcpy (mempcpy (result->tmp_fname, fname, fname_len),
/external/e2fsprogs/intl/
H A Dlocalealias.c19 /* Tell glibc's <string.h> to provide a prototype for mempcpy().
79 # ifndef mempcpy
80 # define mempcpy __mempcpy macro
226 mempcpy (mempcpy (full_fname, fname, fname_len),
H A Ddcigettext.c19 /* Tell glibc's <string.h> to provide a prototype for mempcpy().
162 static void *mempcpy (void *dest, const void *src, size_t n);
570 stpcpy (mempcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"),
657 mempcpy (newp->msgid, msgid1, msgid_len);
1182 mempcpy (void *dest, const void *src, size_t n) function
/external/toybox/toys/pending/
H A Darping.c55 extern void *mempcpy(void *dest, const void *src, size_t n);
117 ptr = mempcpy(ptr, &src_pk.sll_addr, src_pk.sll_halen);
118 ptr = mempcpy(ptr, &src_addr, 4);
119 ptr = mempcpy(ptr,
122 ptr = mempcpy(ptr, &dest_addr, 4);
/external/elfutils/src/src/
H A Dfindtextrel.c212 *((char *) mempcpy (stpcpy (mempcpy (new_fname, rootdir, rootdir_len),
383 strcpy (mempcpy (stpcpy (mempcpy (mempcpy (difname, rootdir,
H A Dsize.c372 cp = mempcpy (cp, prefix, prefix_len);
657 cp = mempcpy (cp, prefix, prefix_len);
H A Dar.c637 *((char *) mempcpy (truncfname, arhdr->ar_name,
726 *((char *) mempcpy (truncfname, arhdr->ar_name,
1466 char *p = mempcpy (arhdr.ar_name, all->name, namelen);
H A Dobjdump.c784 cp = mempcpy (cp, prefix, prefix_len);
785 cp = mempcpy (cp, fname, fname_len);
H A Dstrip.c440 cp = mempcpy (cp, prefix, prefix_len);
482 strcpy (mempcpy (tmp_debug_fname, debug_fname, debug_fname_len),
2123 cp = mempcpy (cp, prefix, prefix_len);
/external/elfutils/src/libdwfl/
H A Ddwfl_build_id_find_elf.c76 memcpy (mempcpy (name, dir, dirlen), id_name, sizeof id_name);
H A Dlinux-kernel-modules.c708 char *a = mempcpy (alternate_name, module_name, n - module_name);
714 a = mempcpy (a, n, p - n);
/external/bison/lib/
H A Dstring.in.h169 _GL_FUNCDECL_SYS (mempcpy, void *,
174 _GL_CXXALIAS_SYS (mempcpy, void *,
177 _GL_CXXALIASWARN (mempcpy); variable
179 # undef mempcpy macro
181 _GL_WARN_ON_USE (mempcpy, "mempcpy is unportable - "
182 "use gnulib module mempcpy for portability");
/external/bison/darwin-lib/
H A Dstring.h481 _GL_FUNCDECL_SYS (mempcpy, void *,
486 _GL_CXXALIAS_SYS (mempcpy, void *,
489 _GL_CXXALIASWARN (mempcpy);
491 # undef mempcpy macro
493 _GL_WARN_ON_USE (mempcpy, "mempcpy is unportable - "
494 "use gnulib module mempcpy for portability");
/external/bison/linux-lib/
H A Dstring.h481 _GL_FUNCDECL_SYS (mempcpy, void *,
486 _GL_CXXALIAS_SYS (mempcpy, void *,
489 _GL_CXXALIASWARN (mempcpy);
491 # undef mempcpy macro
493 _GL_WARN_ON_USE (mempcpy, "mempcpy is unportable - "
494 "use gnulib module mempcpy for portability");
/external/clang/INPUTS/
H A Dstpcpy-test.c8 #define mempcpy(dest, src, n) __mempcpy (dest, src, n) macro
/external/valgrind/memcheck/tests/
H A Dstr_tester.c1071 it = "mempcpy";
1072 check(mempcpy(one, "abc", 4) == one + 4, 1); /* Returned value. */
1076 (void) mempcpy(one+1, "xyz", 2);
1080 (void) mempcpy(one, "xyz", 0);
1085 (void) mempcpy(two, one, 9);
1093 check (mempcpy (one + i, "hi there", 9) == one + i + 9,
1098 check (mempcpy (two, one + i, 9) == two + 9,
1498 /* mempcpy */
/external/valgrind/shared/
H A Dvg_replace_strmem.c1351 /*---------------------- mempcpy ----------------------*/
1353 /* mempcpy */
1366 RECORD_OVERLAP_ERROR("mempcpy", dst, src, len); \
1385 GLIBC25_MEMPCPY(VG_Z_LIBC_SONAME, mempcpy)
1387 GLIBC25_MEMPCPY(VG_Z_LD_SO_1, mempcpy) /* ld.so.1 */
1388 GLIBC25_MEMPCPY(VG_Z_LD_LINUX_SO_3, mempcpy) /* ld-linux.so.3 */
1389 GLIBC25_MEMPCPY(VG_Z_LD_LINUX_X86_64_SO_2, mempcpy) /* ld-linux-x86-64.so.2 */
1392 //GLIBC25_MEMPCPY(VG_Z_LIBC_SONAME, mempcpy)
/external/elfutils/src/libelf/
H A Delf_begin.c814 *((char *) mempcpy (elf->state.ar.raw_name, ar_hdr->ar_name, 16)) = '\0';
910 *((char *) mempcpy (buf, ar_hdr->FIELD, sizeof (ar_hdr->FIELD))) \

Completed in 924 milliseconds

12