Skip to content

Commit a779483

Browse files
clarfontheymkroening
authored andcommitted
Add SIGRTMAX and SIGRTMIN on linux-like systems
1 parent 87645ed commit a779483

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

libc-test/semver/linux.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1972,6 +1972,8 @@ SIGEV_SIGNAL
19721972
SIGEV_THREAD
19731973
SIGPOLL
19741974
SIGPWR
1975+
SIGRTMAX
1976+
SIGRTMIN
19751977
SIGSTKSZ
19761978
SIOCADDMULTI
19771979
SIOCADDRT

src/unix/linux_like/mod.rs

+13
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,14 @@ f! {
14181418
}
14191419

14201420
safe_f! {
1421+
pub fn SIGRTMAX() -> ::c_int {
1422+
unsafe { __libc_current_sigrtmax() }
1423+
}
1424+
1425+
pub fn SIGRTMIN() -> ::c_int {
1426+
unsafe { __libc_current_sigrtmin() }
1427+
}
1428+
14211429
pub {const} fn WIFSTOPPED(status: ::c_int) -> bool {
14221430
(status & 0xff) == 0x7f
14231431
}
@@ -1480,6 +1488,11 @@ safe_f! {
14801488
}
14811489

14821490
extern "C" {
1491+
#[doc(hidden)]
1492+
pub fn __libc_current_sigrtmax() -> ::c_int;
1493+
#[doc(hidden)]
1494+
pub fn __libc_current_sigrtmin() -> ::c_int;
1495+
14831496
pub fn sem_destroy(sem: *mut sem_t) -> ::c_int;
14841497
pub fn sem_init(sem: *mut sem_t, pshared: ::c_int, value: ::c_uint) -> ::c_int;
14851498
pub fn fdatasync(fd: ::c_int) -> ::c_int;

0 commit comments

Comments
 (0)