Skip to content

Commit

Permalink
adding arc4random* api family for solarish.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Sep 28, 2024
1 parent 09d7aa0 commit 84cb528
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libc-test/semver/solarish.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ IP_PKTINFO
IP_TOS
IP_TTL
PIPE_BUF
arc4random
arc4random_buf
arc4random_uniform
bind
in6_pktinfo
in_pktinfo
Expand Down
4 changes: 4 additions & 0 deletions src/unix/solarish/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3217,6 +3217,10 @@ extern "C" {
pub fn __major(version: ::c_int, devnum: ::dev_t) -> ::major_t;
pub fn __minor(version: ::c_int, devnum: ::dev_t) -> ::minor_t;
pub fn __makedev(version: ::c_int, majdev: ::major_t, mindev: ::minor_t) -> ::dev_t;

pub fn arc4random() -> u32;
pub fn arc4random_buf(buf: *mut ::c_void, nbytes: ::size_t);
pub fn arc4random_uniform(upper_bound: u32) -> u32;
}

#[link(name = "sendfile")]
Expand Down

0 comments on commit 84cb528

Please sign in to comment.