diff options
-rw-r--r-- | libc-test/semver/linux.txt | 2 | ||||
-rw-r--r-- | src/unix/linux_like/mod.rs | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index 38c79481be..a756209ca2 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -1972,6 +1972,8 @@ SIGEV_SIGNAL SIGEV_THREAD SIGPOLL SIGPWR +SIGRTMAX +SIGRTMIN SIGSTKSZ SIOCADDMULTI SIOCADDRT diff --git a/src/unix/linux_like/mod.rs b/src/unix/linux_like/mod.rs index 7f6afd5f2a..a8b0332065 100644 --- a/src/unix/linux_like/mod.rs +++ b/src/unix/linux_like/mod.rs @@ -1418,6 +1418,14 @@ f! { } safe_f! { + pub fn SIGRTMAX() -> ::c_int { + unsafe { __libc_current_sigrtmax() } + } + + pub fn SIGRTMIN() -> ::c_int { + unsafe { __libc_current_sigrtmin() } + } + pub {const} fn WIFSTOPPED(status: ::c_int) -> bool { (status & 0xff) == 0x7f } @@ -1480,6 +1488,11 @@ safe_f! { } extern "C" { + #[doc(hidden)] + pub fn __libc_current_sigrtmax() -> ::c_int; + #[doc(hidden)] + pub fn __libc_current_sigrtmin() -> ::c_int; + pub fn sem_destroy(sem: *mut sem_t) -> ::c_int; pub fn sem_init(sem: *mut sem_t, pshared: ::c_int, value: ::c_uint) -> ::c_int; pub fn fdatasync(fd: ::c_int) -> ::c_int; |