diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-01 12:51:30 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-01 12:51:30 +0000 |
commit | 4684272897e351ed21f82a0ef84bc94194b4d538 (patch) | |
tree | 91a52b9dd3881e2ae001c5dd1a2a08fbc65da0bc /src/sysdeps/tryexplicit_bzero.c | |
parent | ccb423ed6f317da5a02f4feeda082d791215a4ba (diff) | |
download | skalibs-4684272897e351ed21f82a0ef84bc94194b4d538.tar.xz |
Add byte_zzero, openb_read
Diffstat (limited to 'src/sysdeps/tryexplicit_bzero.c')
-rw-r--r-- | src/sysdeps/tryexplicit_bzero.c | 30 |
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 ; +} |