summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-28 09:46:33 +0000
committerbors <bors@rust-lang.org>2023-03-28 09:46:33 +0000
commitd19da49b793174b1b900b285a4c7cb7574e04640 (patch)
tree217804106254ba15493205cdd6a7d65038de6419 /src
parent7b5a0b7a3846848075f161b277b2258e54cdfc4e (diff)
parenta68d11d01df34a619f6d5390e92d6ae9aaf868c8 (diff)
downloadrust-libc-d19da49b793174b1b900b285a4c7cb7574e04640.tar.gz
Auto merge of #3164 - devnexen:redox_explicit_bzero, r=JohnTitor
redox add explicit_bzero
Diffstat (limited to 'src')
-rw-r--r--src/unix/redox/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs
index 278ce7c350..f1bc9cc543 100644
--- a/src/unix/redox/mod.rs
+++ b/src/unix/redox/mod.rs
@@ -1097,6 +1097,9 @@ extern "C" {
// time.h
pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int;
pub fn clock_gettime(clk_id: ::clockid_t, tp: *mut ::timespec) -> ::c_int;
+
+ // strings.h
+ pub fn explicit_bzero(p: *mut ::c_void, len: ::size_t);
}
cfg_if! {