Skip to content

Commit 3e0920b

Browse files
committed
uucore: make realtime_signal_bounds() public
1 parent c859019 commit 3e0920b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/uucore/src/lib/features/signals.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,16 +462,18 @@ pub fn signal_name_by_value(signal_value: usize) -> Option<String> {
462462
})
463463
}
464464

465+
/// Returns the values of SIGRTMIN and SIGRTMAX if defined on this platform.
465466
#[cfg(any(target_os = "linux", target_os = "android"))]
466-
fn realtime_signal_bounds() -> Option<(usize, usize)> {
467+
pub fn realtime_signal_bounds() -> Option<(usize, usize)> {
467468
let rtmin = libc::SIGRTMIN();
468469
let rtmax = libc::SIGRTMAX();
469470

470471
(0 < rtmin && rtmin <= rtmax).then_some((rtmin as usize, rtmax as usize))
471472
}
472473

474+
/// Returns the values of SIGRTMIN and SIGRTMAX if defined on this platform.
473475
#[cfg(not(any(target_os = "linux", target_os = "android")))]
474-
fn realtime_signal_bounds() -> Option<(usize, usize)> {
476+
pub fn realtime_signal_bounds() -> Option<(usize, usize)> {
475477
None
476478
}
477479

0 commit comments

Comments
 (0)