diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2015-09-15 13:41:59 -0500 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2015-10-20 11:52:44 -0500 |
commit | 9b291aa4649f2230d48a12c9089e526ef2182abf (patch) | |
tree | 9033aaffbe687fc2e95ac22e7c994e4c1e857cf3 /sys/sys/systm.h | |
parent | 695f7c561490cfa30431266c02d4194ea59ef443 (diff) | |
download | FreeBSD-src-9b291aa4649f2230d48a12c9089e526ef2182abf.zip FreeBSD-src-9b291aa4649f2230d48a12c9089e526ef2182abf.tar.gz |
MFC r272673:
Add explicit_bzero(3) and its kernel counterpart.
Obtained from: OpenBSD
MFC after: 2 weeks
TAG: IPSEC-HEAD
Issue: #4841
Diffstat (limited to 'sys/sys/systm.h')
-rw-r--r-- | sys/sys/systm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/systm.h b/sys/sys/systm.h index cb83ba4..83e4f12 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -238,6 +238,7 @@ void hexdump(const void *ptr, int length, const char *hdr, int flags); #define ovbcopy(f, t, l) bcopy((f), (t), (l)) void bcopy(const void *from, void *to, size_t len) __nonnull(1) __nonnull(2); void bzero(void *buf, size_t len) __nonnull(1); +void explicit_bzero(void *, size_t) __nonnull(1);; void *memcpy(void *to, const void *from, size_t len) __nonnull(1) __nonnull(2); void *memmove(void *dest, const void *src, size_t n) __nonnull(1) __nonnull(2); |