Skip to content

Commit 8c2810a

Browse files
yshuitgross35
authored andcommitted
Add sigqueue
1 parent 10d68a4 commit 8c2810a

File tree

9 files changed

+22
-0
lines changed

9 files changed

+22
-0
lines changed

libc-test/semver/aix.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2473,6 +2473,7 @@ sigismember
24732473
signal
24742474
sigpending
24752475
sigprocmask
2476+
sigqueue
24762477
sigset_t
24772478
sigsuspend
24782479
sigtimedwait

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3985,6 +3985,7 @@ signalfd
39853985
signalfd_siginfo
39863986
sigpending
39873987
sigprocmask
3988+
sigqueue
39883989
sigset64_t
39893990
sigset_t
39903991
sigsuspend

libc-test/semver/cygwin.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,7 @@ settimeofday
844844
sigaltstack
845845
sigevent
846846
siginfo_t
847+
sigqueue
847848
sigsuspend
848849
sigtimedwait
849850
sigwait

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,6 +2368,7 @@ shmid_ds
23682368
sigaltstack
23692369
sigevent
23702370
siginfo_t
2371+
sigqueue
23712372
sigsuspend
23722373
sigtimedwait
23732374
sigwait

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4285,6 +4285,7 @@ sigevent
42854285
siginfo_t
42864286
signalfd
42874287
signalfd_siginfo
4288+
sigqueue
42884289
sigsuspend
42894290
sigtimedwait
42904291
sigwait

libc-test/semver/netbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,6 +1598,7 @@ shmid_ds
15981598
sigaltstack
15991599
sigevent
16001600
siginfo_t
1601+
sigqueue
16011602
sigsuspend
16021603
sigtimedwait
16031604
sigwait

libc-test/semver/redox.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ setgrent
238238
setpwent
239239
setrlimit
240240
setservent
241+
sigqueue
241242
sigtimedwait
242243
sigwait
243244
strcasecmp

libc-test/semver/solarish.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,6 @@ posix_spawnattr_setsigmask
7878
posix_spawnp
7979
recvmsg
8080
sendmsg
81+
sigqueue
8182
strftime
8283
strftime_l

src/unix/mod.rs

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

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

0 commit comments

Comments
 (0)