summaryrefslogtreecommitdiff
path: root/na/lib/string/explicit_bzero.c
diff options
context:
space:
mode:
Diffstat (limited to 'na/lib/string/explicit_bzero.c')
-rw-r--r--na/lib/string/explicit_bzero.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/na/lib/string/explicit_bzero.c b/na/lib/string/explicit_bzero.c
deleted file mode 100644
index c94f25f..0000000
--- a/na/lib/string/explicit_bzero.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* SPDX-License-Identifier: MIT */
-/* Derived from musl libc (Copyright © 2005-2020 Rich Felker, et al.) */
-
-#define _BSD_SOURCE
-#include <string.h>
-
-void explicit_bzero(void *d, size_t n)
-{
- d = memset(d, 0, n);
- __asm__ __volatile__ ("" : : "r"(d) : "memory");
-}