From 4684272897e351ed21f82a0ef84bc94194b4d538 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 1 Mar 2018 12:51:30 +0000 Subject: Add byte_zzero, openb_read --- src/sysdeps/tryexplicit_bzero.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/sysdeps/tryexplicit_bzero.c (limited to 'src/sysdeps') 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 +#include + +int main (void) +{ + char blah[4] ; + explicit_bzero(blah, 4) ; + return 0 ; +} -- cgit v1.2.3