diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-18 11:49:25 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-18 12:33:40 +0100 |
commit | 8740fa7fd0f1eba18059b2794c9cdfe29ef564d3 (patch) | |
tree | 72cf4f30258df1d05830ecab109a3d8136b439af /newlib/libc/include | |
parent | a10dacbdac3ed9ad8e12e29473236cbbe0ff4e10 (diff) | |
download | cygnal-8740fa7fd0f1eba18059b2794c9cdfe29ef564d3.tar.gz cygnal-8740fa7fd0f1eba18059b2794c9cdfe29ef564d3.tar.bz2 cygnal-8740fa7fd0f1eba18059b2794c9cdfe29ef564d3.zip |
Add explicit_bzero()
This function is used by LibreSSL and OpenSSH and is provided by the
OpenBSD libc.
* libc/include/string.h (explicit_bzero): Declare.
* libc/string/explicit_bzero.c: New file.
* libc/string/Makefile.am: Add new file.
* libc/string/Makefile.in: Regenerate.
Diffstat (limited to 'newlib/libc/include')
-rw-r--r-- | newlib/libc/include/string.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h index 8580d16ab..c43106b33 100644 --- a/newlib/libc/include/string.h +++ b/newlib/libc/include/string.h @@ -51,6 +51,9 @@ int _EXFUN(bcmp,(const void *, const void *, size_t)); void _EXFUN(bcopy,(const void *, void *, size_t)); void _EXFUN(bzero,(void *, size_t)); #endif +#if __BSD_VISIBLE +void _EXFUN(explicit_bzero,(void *, size_t)); +#endif #if __MISC_VISIBLE || __POSIX_VISIBLE >= 200809 int _EXFUN(ffs,(int)); #endif |