From a4ef31b4334b658df8760faec51030559af6a109 Mon Sep 17 00:00:00 2001 From: Jan Sommer Date: Tue, 15 Oct 2024 18:28:51 +0200 Subject: [PATCH] Add getentropy to RTEMS --- src/unix/newlib/rtems/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/newlib/rtems/mod.rs b/src/unix/newlib/rtems/mod.rs index 36f4820c92f4f..031754950e6c1 100644 --- a/src/unix/newlib/rtems/mod.rs +++ b/src/unix/newlib/rtems/mod.rs @@ -137,5 +137,7 @@ extern "C" { clock_id: ::clockid_t, ) -> ::c_int; + pub fn getentropy(buf: *mut ::c_void, buflen: ::size_t) -> ::c_int; + pub fn setgroups(ngroups: ::c_int, grouplist: *const ::gid_t) -> ::c_int; }