Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding arc4random* api family for solarish. #3944

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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