From 8740fa7fd0f1eba18059b2794c9cdfe29ef564d3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 18 Mar 2016 11:49:25 +0100 Subject: 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. --- newlib/libc/include/string.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'newlib/libc/include') 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 -- cgit v1.2.3