Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libc-test/semver/aix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2465,6 +2465,7 @@ sigismember
signal
sigpending
sigprocmask
sigqueue
sigset_t
sigsuspend
sigtimedwait
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3985,6 +3985,7 @@ signalfd
signalfd_siginfo
sigpending
sigprocmask
sigqueue
sigset64_t
sigset_t
sigsuspend
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/cygwin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ settimeofday
sigaltstack
sigevent
siginfo_t
sigqueue
sigsuspend
sigtimedwait
sigwait
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,7 @@ shmid_ds
sigaltstack
sigevent
siginfo_t
sigqueue
sigsuspend
sigtimedwait
sigwait
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4284,6 +4284,7 @@ sigevent
siginfo_t
signalfd
signalfd_siginfo
sigqueue
sigsuspend
sigtimedwait
sigwait
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/netbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1598,6 +1598,7 @@ shmid_ds
sigaltstack
sigevent
siginfo_t
sigqueue
sigsuspend
sigtimedwait
sigwait
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/redox.txt
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ setgrent
setpwent
setrlimit
setservent
sigqueue
sigtimedwait
sigwait
strcasecmp
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/solarish.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,6 @@ posix_spawnattr_setsigmask
posix_spawnp
recvmsg
sendmsg
sigqueue
strftime
strftime_l
14 changes: 14 additions & 0 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,20 @@ cfg_if! {
}
}

cfg_if! {
if #[cfg(not(any(
target_os = "dragonfly",
target_os = "emscripten",
target_os = "hurd",
target_os = "macos",
target_os = "openbsd",
)))] {
extern "C" {
pub fn sigqueue(pid: pid_t, sig: c_int, value: crate::sigval) -> c_int;
}
}
}

cfg_if! {
if #[cfg(not(target_os = "android"))] {
extern "C" {
Expand Down
Loading