opnsense-src/lib/libc/amd64/string/bcopy.c
Kyle Evans e55512504d Prepare the system for _FORTIFY_SOURCE
Notably:
- libc needs to #undef some of the macros from ssp/* for underlying
  implementations
- ssp/* wants a __RENAME() macro (snatched more or less from NetBSD)

There's some extra hinkiness included for read(), since libc spells it
as "_read" while the rest of the world spells it "read."

Reviewed by:	imp, ngie
Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D32307
2024-05-13 00:23:50 -05:00

14 lines
165 B
C

/*-
* Public domain.
*/
#include <string.h>
#undef bcopy /* _FORTIFY_SOURCE */
void
bcopy(const void *src, void *dst, size_t len)
{
memmove(dst, src, len);
}