summaryrefslogtreecommitdiff
path: root/src/sysdeps/tryexplicit_bzero.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysdeps/tryexplicit_bzero.c')
-rw-r--r--src/sysdeps/tryexplicit_bzero.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/sysdeps/tryexplicit_bzero.c b/src/sysdeps/tryexplicit_bzero.c
new file mode 100644
index 0000000..869c578
--- /dev/null
+++ b/src/sysdeps/tryexplicit_bzero.c
@@ -0,0 +1,30 @@
+/* ISC license. */
+
+#undef _POSIX_C_SOURCE
+#undef _XOPEN_SOURCE
+
+#ifndef __EXTENSIONS__
+#define __EXTENSIONS__
+#endif
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+#ifndef _BSD_SOURCE
+#define _BSD_SOURCE
+#endif
+#ifndef _NETBSD_SOURCE
+#define _NETBSD_SOURCE
+#endif
+#ifndef _INCOMPLETE_XOPEN_C063
+#define _INCOMPLETE_XOPEN_C063
+#endif
+
+#include <string.h>
+#include <strings.h>
+
+int main (void)
+{
+ char blah[4] ;
+ explicit_bzero(blah, 4) ;
+ return 0 ;
+}