summaryrefslogtreecommitdiff
path: root/src/unix/linux_like/linux/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-11-20 03:28:04 +0000
committerbors <bors@rust-lang.org>2022-11-20 03:28:04 +0000
commit4493a07473243c4574793db35206ba8e032b6627 (patch)
tree1d3738c0563657eff422968c2ffb87708dc9fcc0 /src/unix/linux_like/linux/mod.rs
parentcea201b12f1c8460c475dc20a7d4e72c4a957fd5 (diff)
parenta68d3ed0acf3b77e191b4756146fd58f851e8591 (diff)
downloadrust-libc-4493a07473243c4574793db35206ba8e032b6627.tar.gz
Auto merge of #2995 - carbotaniuman:rand48, r=JohnTitor
Add rand48 functions
Diffstat (limited to 'src/unix/linux_like/linux/mod.rs')
-rw-r--r--src/unix/linux_like/linux/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs
index 273e70fb93..6faf3ae04e 100644
--- a/src/unix/linux_like/linux/mod.rs
+++ b/src/unix/linux_like/linux/mod.rs
@@ -3798,6 +3798,16 @@ extern "C" {
pub fn rand() -> ::c_int;
pub fn srand(seed: ::c_uint);
+ pub fn drand48() -> ::c_double;
+ pub fn erand48(xseed: *mut ::c_ushort) -> ::c_double;
+ pub fn lrand48() -> ::c_long;
+ pub fn nrand48(xseed: *mut ::c_ushort) -> ::c_long;
+ pub fn mrand48() -> ::c_long;
+ pub fn jrand48(xseed: *mut ::c_ushort) -> ::c_long;
+ pub fn srand48(seed: ::c_long);
+ pub fn seed48(xseed: *mut ::c_ushort) -> *mut ::c_ushort;
+ pub fn lcong48(p: *mut ::c_ushort);
+
pub fn lutimes(file: *const ::c_char, times: *const ::timeval) -> ::c_int;
pub fn setpwent();