From 988279d3aad0abd7bd8ba67e4a814a13f55f18ab Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 22 Jan 2014 21:06:46 +0000 Subject: add explicit_bzero to libc. implementation subject to change, but start the ball rolling. ok deraadt. --- include/string.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/string.h') diff --git a/include/string.h b/include/string.h index 033ee1481a5..b0b851edafb 100644 --- a/include/string.h +++ b/include/string.h @@ -1,4 +1,4 @@ -/* $OpenBSD: string.h,v 1.26 2013/05/13 10:37:02 ajacoutot Exp $ */ +/* $OpenBSD: string.h,v 1.27 2014/01/22 21:06:45 tedu Exp $ */ /* $NetBSD: string.h,v 1.6 1994/10/26 00:56:30 cgd Exp $ */ /*- @@ -126,6 +126,8 @@ char *strsignal(int); #endif #if __BSD_VISIBLE +void explicit_bzero(void *, size_t) + __attribute__ ((__bounded__(__buffer__,1,2))); void *memmem(const void *, size_t, const void *, size_t); void *memrchr(const void *, int, size_t); char *strcasestr(const char *, const char *); -- cgit v1.2.3