summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoa <33094578+coolreader18@users.noreply.github.com>2021-10-21 16:02:39 -0500
committerNoa <33094578+coolreader18@users.noreply.github.com>2021-10-21 16:02:39 -0500
commit419c5564fc06622175f52fa601106cbb119c4732 (patch)
treeb0d95924c5f55c50a629b716a5c0ab5e2576f66f
parent473e8deb372dee29730c321f82ebba69d579cdbe (diff)
downloadrust-libc-419c5564fc06622175f52fa601106cbb119c4732.tar.gz
Add a couple pthread functions for redox
-rw-r--r--src/unix/redox/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs
index f2a2d62958..9836551d94 100644
--- a/src/unix/redox/mod.rs
+++ b/src/unix/redox/mod.rs
@@ -1001,6 +1001,8 @@ extern "C" {
set: *const ::sigset_t,
oldset: *mut ::sigset_t,
) -> ::c_int;
+ pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int;
+ pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int;
// sys/epoll.h
pub fn epoll_create(size: ::c_int) -> ::c_int;