Skip to content

Commit 00d08b7

Browse files
yshuitgross35
authored andcommitted
Add sigqueue
(backport <rust-lang#4620>) (cherry picked from commit 8c2810a)
1 parent a831211 commit 00d08b7

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
@@ -2376,6 +2376,7 @@ shmid_ds
23762376
sigaltstack
23772377
sigevent
23782378
siginfo_t
2379+
sigqueue
23792380
sigsuspend
23802381
sigtimedwait
23812382
sigwait

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4298,6 +4298,7 @@ sigevent
42984298
siginfo_t
42994299
signalfd
43004300
signalfd_siginfo
4301+
sigqueue
43014302
sigsuspend
43024303
sigtimedwait
43034304
sigwait

libc-test/semver/netbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,6 +1599,7 @@ shmid_ds
15991599
sigaltstack
16001600
sigevent
16011601
siginfo_t
1602+
sigqueue
16021603
sigsuspend
16031604
sigtimedwait
16041605
sigwait

libc-test/semver/redox.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ setgrent
307307
setpwent
308308
setrlimit
309309
setservent
310+
sigqueue
310311
sigtimedwait
311312
sigwait
312313
strcasecmp

libc-test/semver/solarish.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,6 @@ posix_spawnattr_setsigmask
7575
posix_spawnp
7676
recvmsg
7777
sendmsg
78+
sigqueue
7879
strftime
7980
strftime_l

src/unix/mod.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,6 +1661,20 @@ cfg_if! {
16611661
}
16621662
}
16631663

1664+
cfg_if! {
1665+
if #[cfg(not(any(
1666+
target_os = "dragonfly",
1667+
target_os = "emscripten",
1668+
target_os = "hurd",
1669+
target_os = "macos",
1670+
target_os = "openbsd",
1671+
)))] {
1672+
extern "C" {
1673+
pub fn sigqueue(pid: pid_t, sig: c_int, value: crate::sigval) -> c_int;
1674+
}
1675+
}
1676+
}
1677+
16641678
cfg_if! {
16651679
if #[cfg(not(target_os = "android"))] {
16661680
extern "C" {

0 commit comments

Comments
 (0)