path: root/include
diff options
authorDavid Carlier <>2018-06-15 13:30:09 +0000
committerRich Felker <>2018-06-26 16:59:12 -0400
commit05ac345f895098657cf44d419b5d572161ebaf43 (patch)
tree03edd3b56ada466c2aa5baf5ec33972cc2a322d2 /include
parent5c8e69267b9ae919e55eee4b79580224111bc3ba (diff)
add explicit_bzero implementation
maintainer's note: past sentiment was that, despite being imperfect and unable to force clearing of all possible copies of sensitive data (e.g. in registers, register spills, signal contexts left on the stack, etc.) this function would be added if major implementations agreed on it, which has happened -- several BSDs and glibc all include it.
Diffstat (limited to 'include')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h
index ce1dc300..795a2abc 100644
--- a/include/string.h
+++ b/include/string.h
@@ -82,6 +82,7 @@ void *memccpy (void *__restrict, const void *__restrict, int, size_t);
char *strsep(char **, const char *);
size_t strlcat (char *, const char *, size_t);
size_t strlcpy (char *, const char *, size_t);
+void explicit_bzero (void *, size_t);
#ifdef _GNU_SOURCE