summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2022-06-29 14:46:27 +0000
committerIvan Zhakov <ivan@apache.org>2022-06-29 14:46:27 +0000
commit166a06a11e80a5479a806ebb5a213d1c3e547fc7 (patch)
tree020cb3a94ba821cb6147bd6810ddc4cbe3e08aaf /include
parent9aab4125498301f37c769e761cdababdab196b63 (diff)
parent4000041d0ea6f7fccea67d2ac3d8205270b1cf1a (diff)
downloadapr-166a06a11e80a5479a806ebb5a213d1c3e547fc7.tar.gz
On 'thread-name' branch: Merge changes from trunk.thread-name
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/thread-name@1902353 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/apr_strings.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/apr_strings.h b/include/apr_strings.h
index d5f8719d2..56f0426fc 100644
--- a/include/apr_strings.h
+++ b/include/apr_strings.h
@@ -183,6 +183,16 @@ APR_DECLARE_NONSTD(char *) apr_psprintf(apr_pool_t *p, const char *fmt, ...)
__attribute__((format(printf,2,3)));
/**
+ * zero out the buffer provided, without being optimized out by
+ * the compiler.
+ *
+ * @param buffer buffer to zero out
+ * @param size size of the buffer to zero out
+ * @return APR_SUCCESS or an errno
+ */
+APR_DECLARE(apr_status_t) apr_memzero_explicit(void *buffer, apr_size_t size);
+
+/**
* Copy up to dst_size characters from src to dst; does not copy
* past a NUL terminator in src, but always terminates dst with a NUL
* regardless.