Skip to content

Commit 1485410

Browse files
yshuiBuilder
authored andcommitted
Add sigqueue
1 parent bbafd45 commit 1485410

File tree

10 files changed

+22
-0
lines changed

10 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
@@ -2465,6 +2465,7 @@ sigismember
24652465
signal
24662466
sigpending
24672467
sigprocmask
2468+
sigqueue
24682469
sigset_t
24692470
sigsuspend
24702471
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/dragonfly.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,6 +1606,7 @@ shmget
16061606
sigaltstack
16071607
sigevent
16081608
siginfo_t
1609+
sigqueue
16091610
sigsuspend
16101611
sigtimedwait
16111612
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
@@ -4284,6 +4284,7 @@ sigevent
42844284
siginfo_t
42854285
signalfd
42864286
signalfd_siginfo
4287+
sigqueue
42874288
sigsuspend
42884289
sigtimedwait
42894290
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
@@ -234,6 +234,7 @@ qsort
234234
reallocarray
235235
setgrent
236236
setpwent
237+
sigqueue
237238
setrlimit
238239
setservent
239240
sigtimedwait

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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,6 +1674,19 @@ cfg_if! {
16741674
}
16751675
}
16761676

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

0 commit comments

Comments
 (0)