From 5d36aefb44e96a1a7050d655d3a6e032f590281f Mon Sep 17 00:00:00 2001 From: Ian Chamberlain Date: Mon, 7 Feb 2022 09:11:05 -0500 Subject: [PATCH] Add stub pthread_sigmask implementation --- src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 16dc8b3..623720b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -394,6 +394,15 @@ pub unsafe extern "C" fn pthread_rwlockattr_destroy( 0 } +#[no_mangle] +pub unsafe extern "C" fn pthread_sigmask( + _how: ::libc::c_int, + _set: *const libc::sigset_t, + _oldset: *mut libc::sigset_t, +) -> ::libc::c_int { + -1 +} + // THREAD KEYS IMPLEMENTATION FOR RUST STD use spin::rwlock::RwLock;