diff options
author | bors <bors@rust-lang.org> | 2023-05-01 04:32:59 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-05-01 04:32:59 +0000 |
commit | 66e988b9b96e36ca335edc3fe06477a17a7c67cd (patch) | |
tree | 369e27b36f3798cc3351ceb73e5d60a2fd9292eb | |
parent | 0485ee3ec37da6789b396b9f6081933c34d9f2a4 (diff) | |
parent | 0b2ed1613591bad63bf1cb726b17e59e4ec87105 (diff) | |
download | rust-libc-66e988b9b96e36ca335edc3fe06477a17a7c67cd.tar.gz |
Auto merge of #3230 - nikarh:vita-rand, r=JohnTitor
Added getentropy to vita target
This is a late addition to https://github.com/rust-lang/libc/pull/3209. This definition is required in order to implement random in std correctly.
As the previous PR, getentropy is a standard C function, should be implemented by newlib provider, and is not Sony's intellectual property.
-rw-r--r-- | src/unix/newlib/vita/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/newlib/vita/mod.rs b/src/unix/newlib/vita/mod.rs index 5c1d35dae1..801a408b99 100644 --- a/src/unix/newlib/vita/mod.rs +++ b/src/unix/newlib/vita/mod.rs @@ -168,6 +168,8 @@ extern "C" { ) -> ::c_int; pub fn pthread_getprocessorid_np() -> ::c_int; + + pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; } pub use crate::unix::newlib::generic::{sigset_t, stat}; |