Skip to content

Commit 996cfdc

Browse files
committed
Auto merge of #2266 - devnexen:bsd_arc4_api, r=JohnTitor
bsd/apple adding arc4 api
2 parents 4bab9f4 + 8d28267 commit 996cfdc

File tree

6 files changed

+19
-0
lines changed

6 files changed

+19
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,9 @@ aio_return
15711571
aio_suspend
15721572
aio_write
15731573
aiocb
1574+
arc4random
1575+
arc4random_buf
1576+
arc4random_uniform
15741577
arphdr
15751578
atof
15761579
backtrace

libc-test/semver/dragonfly.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,6 +1149,9 @@ aio_suspend
11491149
aio_waitcomplete
11501150
aio_write
11511151
aiocb
1152+
arc4random
1153+
arc4random_buf
1154+
arc4random_uniform
11521155
arphdr
11531156
atof
11541157
bpf_dltlist

libc-test/semver/freebsd.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,6 +1334,9 @@ aio_suspend
13341334
aio_waitcomplete
13351335
aio_write
13361336
aiocb
1337+
arc4random
1338+
arc4random_buf
1339+
arc4random_uniform
13371340
arphdr
13381341
atof
13391342
bpf_dltlist

libc-test/semver/netbsd.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,9 @@ aio_return
10281028
aio_suspend
10291029
aio_write
10301030
aiocb
1031+
arc4random
1032+
arc4random_buf
1033+
arc4random_uniform
10311034
arphdr
10321035
atof
10331036
bsearch

libc-test/semver/openbsd.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,9 @@ __errno
882882
abs
883883
accept4
884884
acct
885+
arc4random
886+
arc4random_buf
887+
arc4random_uniform
885888
arphdr
886889
atof
887890
bsearch

src/unix/bsd/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,10 @@ extern "C" {
860860
) -> ::size_t;
861861

862862
pub fn regfree(preg: *mut regex_t);
863+
864+
pub fn arc4random() -> u32;
865+
pub fn arc4random_buf(buf: *mut ::c_void, size: ::size_t);
866+
pub fn arc4random_uniform(l: u32) -> u32;
863867
}
864868

865869
cfg_if! {

0 commit comments

Comments
 (0)