bcopy.c (dc36d6f9bb1753f3808552f3afd30eda9a7b206a) | bcopy.c (e55512504d0178983978d64d67eed1cc85826523) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1990, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Chris Torek. --- 33 unchanged lines hidden (view full) --- 42/* 43 * Copy a block of memory, handling overlap. 44 * This is the routine that actually implements 45 * (the portable versions of) bcopy, memcpy, and memmove. 46 */ 47#if defined(MEMCOPY) || defined(MEMMOVE) 48#include <string.h> 49 | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1990, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Chris Torek. --- 33 unchanged lines hidden (view full) --- 42/* 43 * Copy a block of memory, handling overlap. 44 * This is the routine that actually implements 45 * (the portable versions of) bcopy, memcpy, and memmove. 46 */ 47#if defined(MEMCOPY) || defined(MEMMOVE) 48#include <string.h> 49 |
50#undef memcpy /* _FORTIFY_SOURCE */ 51#undef memmove /* _FORTIFY_SOURCE */ 52 |
|
50void * 51#ifdef MEMCOPY 52memcpy 53#else 54memmove 55#endif 56(void *dst0, const void *src0, size_t length) 57#else 58#include <strings.h> 59 | 53void * 54#ifdef MEMCOPY 55memcpy 56#else 57memmove 58#endif 59(void *dst0, const void *src0, size_t length) 60#else 61#include <strings.h> 62 |
63#undef bcopy /* _FORTIFY_SOURCE */ 64 |
|
60void 61bcopy(const void *src0, void *dst0, size_t length) 62#endif 63{ 64 char *dst = dst0; 65 const char *src = src0; 66 size_t t; 67 --- 64 unchanged lines hidden --- | 65void 66bcopy(const void *src0, void *dst0, size_t length) 67#endif 68{ 69 char *dst = dst0; 70 const char *src = src0; 71 size_t t; 72 --- 64 unchanged lines hidden --- |