Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/crash-context/src/linux/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 882 B image not shown  

Quelle  getcontext.rs   Sprache: unbekannt

 
Spracherkennung für: .rs vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

//! Implementation of [`getcontext`](https://man7.org/linux/man-pages/man3/getcontext.3.html)

extern "C" {
    /// A portable implementation of [`getcontext`](https://man7.org/linux/man-pages/man3/getcontext.3.html)
    /// since it is not supported by all libc implementations, namely `musl`, as
    /// it has been deprecated from POSIX for over a decade
    ///
    /// The implementation is ported from Breakpad, which is itself ported from
    /// libunwind
    #[cfg_attr(target_arch = "aarch64", allow(improper_ctypes))]
    pub fn crash_context_getcontext(ctx: *mut super::ucontext_t) -> i32;
}

cfg_if::cfg_if! {
    if #[cfg(target_arch = "x86_64")] {
        mod x86_64;
    } else if #[cfg(target_arch = "x86")] {
        mod x86;
    } else if #[cfg(target_arch = "aarch64")] {
        mod aarch64;
    } else if #[cfg(target_arch = "arm")] {
        mod arm;
    }
}

[ Dauer der Verarbeitung: 0.28 Sekunden  ]