From 9b0495699d0f760de499febf4e6e2c4364696659 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 19 Oct 2024 20:16:02 +0000 Subject: [PATCH] haiku adding getentropy. no man page so far but https://github.com/haiku/haiku/blob/e4a557f372b21b348e0c6a2ae7157c1b73e0d738/src/system/libroot/posix/unistd/getentropy.c#L13 --- src/unix/haiku/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs index 47e4c4eb69aeb..8b54f79f7f5e5 100644 --- a/src/unix/haiku/mod.rs +++ b/src/unix/haiku/mod.rs @@ -2093,6 +2093,8 @@ extern "C" { length: ::size_t, locale: ::locale_t, ) -> ::c_int; + + pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; } #[link(name = "bsd")]