Skip to content

Commit

Permalink
redox add sig(timed)wait calls
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed May 10, 2023
1 parent e06d905 commit aa14d5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/redox.txt
Expand Up @@ -215,6 +215,8 @@ reallocarray
setpwent
setrlimit
setservent
sigtimedwait
sigwait
strcasecmp
strcasestr
strlcat
Expand Down
6 changes: 6 additions & 0 deletions src/unix/redox/mod.rs
Expand Up @@ -1080,6 +1080,12 @@ extern "C" {
) -> ::c_int;
pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int;
pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int;
pub fn sigtimedwait(
set: *const sigset_t,
sig: *mut siginfo_t,
timeout: *const ::timespec,
) -> ::c_int;
pub fn sigwait(set: *const sigset_t, sig: *mut ::c_int) -> ::c_int;

// stdlib.h
pub fn reallocarray(ptr: *mut ::c_void, nmemb: ::size_t, size: ::size_t) -> *mut ::c_void;
Expand Down

0 comments on commit aa14d5a

Please sign in to comment.