summaryrefslogtreecommitdiff
path: root/src/unix
diff options
context:
space:
mode:
authorcarbotaniuman <41451839+carbotaniuman@users.noreply.github.com>2022-11-06 02:34:14 -0600
committerYuki Okushi <jtitor@2k36.org>2022-11-20 12:09:29 +0900
commita68d3ed0acf3b77e191b4756146fd58f851e8591 (patch)
tree3d2e353bb48c495fc9652577a72d2c98c3585ff5 /src/unix
parent2dfe1ab9eed52d0f46983414028fe5ec49e0d5e0 (diff)
downloadrust-libc-a68d3ed0acf3b77e191b4756146fd58f851e8591.tar.gz
Add rand48 functions
Diffstat (limited to 'src/unix')
-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 43f6399e44..bc6f603626 100644
--- a/src/unix/linux_like/linux/mod.rs
+++ b/src/unix/linux_like/linux/mod.rs
@@ -3710,6 +3710,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();