memset.c (dc36d6f9bb1753f3808552f3afd30eda9a7b206a) | memset.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 * Mike Hibler and Chris Torek. --- 28 unchanged lines hidden (view full) --- 37#include <limits.h> 38 39#define wsize sizeof(u_long) 40#define wmask (wsize - 1) 41 42#ifdef BZERO 43#include <strings.h> 44 | 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 * Mike Hibler and Chris Torek. --- 28 unchanged lines hidden (view full) --- 37#include <limits.h> 38 39#define wsize sizeof(u_long) 40#define wmask (wsize - 1) 41 42#ifdef BZERO 43#include <strings.h> 44 |
45#undef bzero /* _FORTIFY_SOURCE */ 46 |
|
45#define RETURN return 46#define VAL 0 47#define WIDEVAL 0 48 49void 50bzero(void *dst0, size_t length) 51#else 52#include <string.h> 53 | 47#define RETURN return 48#define VAL 0 49#define WIDEVAL 0 50 51void 52bzero(void *dst0, size_t length) 53#else 54#include <string.h> 55 |
56#undef memset /* _FORTIFY_SOURCE */ 57 |
|
54#define RETURN return (dst0) 55#define VAL c0 56#define WIDEVAL c 57 58void * 59memset(void *dst0, int c0, size_t length) 60#endif 61{ --- 66 unchanged lines hidden --- | 58#define RETURN return (dst0) 59#define VAL c0 60#define WIDEVAL c 61 62void * 63memset(void *dst0, int c0, size_t length) 64#endif 65{ --- 66 unchanged lines hidden --- |