summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/process/prctl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/process/prctl.rs')
-rw-r--r--vendor/rustix/src/process/prctl.rs15
1 files changed, 8 insertions, 7 deletions
diff --git a/vendor/rustix/src/process/prctl.rs b/vendor/rustix/src/process/prctl.rs
index 34eef7aa4..a4e1e546c 100644
--- a/vendor/rustix/src/process/prctl.rs
+++ b/vendor/rustix/src/process/prctl.rs
@@ -76,7 +76,7 @@ const PR_GET_PDEATHSIG: c_int = 2;
/// - [FreeBSD: `procctl(PROC_PDEATHSIG_STATUS,...)`]
///
/// [Linux: `prctl(PR_GET_PDEATHSIG,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html
-/// [FreeBSD: `procctl(PROC_PDEATHSIG_STATUS,...)`]: https://www.freebsd.org/cgi/man.cgi?query=procctl&sektion=2
+/// [FreeBSD: `procctl(PROC_PDEATHSIG_STATUS,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2
#[inline]
pub fn parent_process_death_signal() -> io::Result<Option<Signal>> {
unsafe { prctl_get_at_arg2_optional::<c_int>(PR_GET_PDEATHSIG) }.map(Signal::from_raw)
@@ -91,7 +91,7 @@ const PR_SET_PDEATHSIG: c_int = 1;
/// - [FreeBSD: `procctl(PROC_PDEATHSIG_CTL,...)`]
///
/// [Linux: `prctl(PR_SET_PDEATHSIG,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html
-/// [FreeBSD: `procctl(PROC_PDEATHSIG_CTL,...)`]: https://www.freebsd.org/cgi/man.cgi?query=procctl&sektion=2
+/// [FreeBSD: `procctl(PROC_PDEATHSIG_CTL,...)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2
#[inline]
pub fn set_parent_process_death_signal(signal: Option<Signal>) -> io::Result<()> {
let signal = signal.map_or(0_usize, |signal| signal as usize);
@@ -175,7 +175,7 @@ bitflags! {
pub struct UnalignedAccessControl: u32 {
/// Silently fix up unaligned user accesses.
const NO_PRINT = 1;
- /// Generate `SIGBUS` on unaligned user access.
+ /// Generate a [`Signal::Bus`] signal on unaligned user access.
const SIGBUS = 2;
}
}
@@ -216,7 +216,8 @@ bitflags! {
pub struct FloatingPointEmulationControl: u32 {
/// Silently emulate floating point operations accesses.
const NO_PRINT = 1;
- /// Don't emulate floating point operations, send `SIGFPE` instead.
+ /// Don't emulate floating point operations, send a [`Signal::Fpe`]
+ /// signal instead.
const SIGFPE = 2;
}
}
@@ -442,7 +443,7 @@ const PR_TSC_SIGSEGV: u32 = 2;
pub enum TimeStampCounterReadability {
/// Allow the use of the timestamp counter.
Readable = PR_TSC_ENABLE,
- /// Throw a `SIGSEGV` instead of reading the TSC.
+ /// Throw a [`Signal::Segv`] signal instead of reading the TSC.
RaiseSIGSEGV = PR_TSC_SIGSEGV,
}
@@ -721,9 +722,9 @@ pub struct PrctlMmMap {
pub start_data: u64,
/// Data section end address.
pub end_data: u64,
- /// brk() start address.
+ /// `brk` start address.
pub start_brk: u64,
- /// brk() current address.
+ /// `brk` current address.
pub brk: u64,
/// Stack start address.
pub start_stack: u64,