Skip to content

Commit 166c3a4

Browse files
yshuiBuilder
authored andcommitted
Add sigqueue
1 parent bbafd45 commit 166c3a4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

libc-test/semver/unix.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,7 @@ sigismember
795795
signal
796796
sigpending
797797
sigprocmask
798+
sigqueue
798799
sigset_t
799800
sigval
800801
size_t

src/unix/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,6 +1674,17 @@ cfg_if! {
16741674
}
16751675
}
16761676

1677+
cfg_if! {
1678+
if #[cfg(not(any(
1679+
target_os = "emscripten",
1680+
target_os = "macos",
1681+
)))] {
1682+
extern "C" {
1683+
pub fn sigqueue(pid: pid_t, sig: c_int, value: crate::sigval) -> c_int;
1684+
}
1685+
}
1686+
}
1687+
16771688
cfg_if! {
16781689
if #[cfg(not(target_os = "android"))] {
16791690
extern "C" {

0 commit comments

Comments
 (0)