memcpy_data9
Copy bytes in memory
Part of memcpy(9).
Usage
#include <sys/systm.h>
void *
memcpy(void *dst, const void *src, size_t len);
void *
memcpy_data(void *dst, const void *src, size_t len);
Overview
The memcpy() function copies len bytes from object src to object dst in a manner that preserves the provenance of pointers in the copied object (see memory_model(7) for further information). If src and dst overlap, the results are not defined. The memcpy_data() function does the same except that it does not preserve the provenance of pointers in the copied object. On CHERI targets, the validity tag of any copied capability is explicitly cleared.
Return values
The memcpy() and memcpy_data() functions return the original value of dst.