Coverage Report

Created: 2026-05-16 06:08

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/rust/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.0.7/src/event/pause.rs
Line
Count
Source
1
use crate::backend;
2
3
/// `pause()`—Sleep until interrupted by a signal.
4
///
5
/// The POSIX `pause` interface returns an error code, but the only thing
6
/// `pause` does is sleep until interrupted by a signal. If it were exposed in
7
/// the API here it would always return `Errno::INTR`, so for simplicity the
8
/// return value is omitted.
9
///
10
/// # References
11
///  - [POSIX]
12
///  - [Linux]
13
///  - [Apple]
14
///  - [FreeBSD]
15
///  - [NetBSD]
16
///  - [OpenBSD]
17
///  - [DragonFly BSD]
18
///  - [illumos]
19
///
20
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pause.html
21
/// [Linux]: https://man7.org/linux/man-pages/man2/pause.2.html
22
/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pause.3.html
23
/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pause&sektion=3
24
/// [NetBSD]: https://man.netbsd.org/pause.3
25
/// [OpenBSD]: https://man.openbsd.org/pause.3
26
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pause&section=3
27
/// [illumos]: https://illumos.org/man/2/pause
28
#[inline]
29
0
pub fn pause() {
30
0
    backend::event::syscalls::pause()
31
0
}