Skip to content

Commit d19da49

Browse files
committed
Auto merge of rust-lang#3164 - devnexen:redox_explicit_bzero, r=JohnTitor
redox add explicit_bzero
2 parents 7b5a0b7 + a68d11d commit d19da49

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/semver/redox.txt

+1
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ epoll_create1
186186
epoll_ctl
187187
epoll_event
188188
epoll_wait
189+
explicit_bzero
189190
fchdir
190191
fmemopen
191192
getline

src/unix/redox/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,9 @@ extern "C" {
10971097
// time.h
10981098
pub fn gettimeofday(tp: *mut ::timeval, tz: *mut ::timezone) -> ::c_int;
10991099
pub fn clock_gettime(clk_id: ::clockid_t, tp: *mut ::timespec) -> ::c_int;
1100+
1101+
// strings.h
1102+
pub fn explicit_bzero(p: *mut ::c_void, len: ::size_t);
11001103
}
11011104

11021105
cfg_if! {

0 commit comments

Comments
 (0)