Add getrandom and sys/random.h

This commit is contained in:
Jeremy Soller
2020-05-22 11:50:54 -06:00
parent 2cf3ccae72
commit a6fffd3fb5
7 changed files with 77 additions and 0 deletions
+2
View File
@@ -91,6 +91,8 @@ pub trait Pal {
fn getppid() -> pid_t;
fn getrandom(buf: &mut [u8], flags: c_uint) -> ssize_t;
unsafe fn getrlimit(resource: c_int, rlim: *mut rlimit) -> c_int;
fn gettid() -> pid_t;