Skip to content

Commit

Permalink
add tests for explicit_bzero() and memset_explicit()
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jul 31, 2023
1 parent 7c890e7 commit a5bc7ac
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -12572,6 +12572,12 @@ if test "x$ac_cv_func_dladdr" = xyes
then :
printf "%s\n" "#define HAVE_DLADDR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
if test "x$ac_cv_func_explicit_bzero" = xyes
then :
printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat"
if test "x$ac_cv_func_fchmodat" = xyes
Expand Down Expand Up @@ -12698,6 +12704,12 @@ if test "x$ac_cv_func_memrchr" = xyes
then :
printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "memset_explicit" "ac_cv_func_memset_explicit"
if test "x$ac_cv_func_memset_explicit" = xyes
then :
printf "%s\n" "#define HAVE_MEMSET_EXPLICIT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "mkdirat" "ac_cv_func_mkdirat"
if test "x$ac_cv_func_mkdirat" = xyes
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1735,6 +1735,7 @@ AC_CHECK_FUNCS( \
closefrom \
ctime_r \
dladdr \
explicit_bzero \
fchmodat \
fchownat \
fcntl \
Expand All @@ -1756,6 +1757,7 @@ AC_CHECK_FUNCS( \
localtime_r \
mallopt \
memrchr \
memset_explicit \
mkdirat \
openat \
pthread_sigmask \
Expand Down
6 changes: 6 additions & 0 deletions src/include/autoconf.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
/* define this if we have <execinfo.h> and symbols */
#undef HAVE_EXECINFO

/* Define to 1 if you have the `explicit_bzero' function. */
#undef HAVE_EXPLICIT_BZERO

/* Define to 1 if you have the `fchmodat' function. */
#undef HAVE_FCHMODAT

Expand Down Expand Up @@ -251,6 +254,9 @@
/* Define to 1 if you have the `memrchr' function. */
#undef HAVE_MEMRCHR

/* Define to 1 if you have the `memset_explicit' function. */
#undef HAVE_MEMSET_EXPLICIT

/* Define to 1 if you have the <minix/config.h> header file. */
#undef HAVE_MINIX_CONFIG_H

Expand Down

0 comments on commit a5bc7ac

Please sign in to comment.