Skip to content

Commit 632c93c

Browse files
committed
Auto merge of #3244 - devnexen:redox__sigtimedwait, r=JohnTitor
redox add sig(timed)wait calls
2 parents e06d905 + aa14d5a commit 632c93c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libc-test/semver/redox.txt

+2
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ reallocarray
215215
setpwent
216216
setrlimit
217217
setservent
218+
sigtimedwait
219+
sigwait
218220
strcasecmp
219221
strcasestr
220222
strlcat

src/unix/redox/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,12 @@ extern "C" {
10801080
) -> ::c_int;
10811081
pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int;
10821082
pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int;
1083+
pub fn sigtimedwait(
1084+
set: *const sigset_t,
1085+
sig: *mut siginfo_t,
1086+
timeout: *const ::timespec,
1087+
) -> ::c_int;
1088+
pub fn sigwait(set: *const sigset_t, sig: *mut ::c_int) -> ::c_int;
10831089

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

0 commit comments

Comments
 (0)