pyo3_ffi/
intrcheck.rs

1use std::os::raw::c_int;
2
3extern "C" {
4    #[cfg_attr(PyPy, link_name = "PyPyOS_InterruptOccurred")]
5    pub fn PyOS_InterruptOccurred() -> c_int;
6    #[cfg(not(Py_3_10))]
7    #[deprecated(note = "Not documented in Python API; see Python 3.10 release notes")]
8    pub fn PyOS_InitInterrupts();
9
10    pub fn PyOS_BeforeFork();
11    pub fn PyOS_AfterFork_Parent();
12    pub fn PyOS_AfterFork_Child();
13    #[deprecated(note = "use PyOS_AfterFork_Child instead")]
14    #[cfg_attr(PyPy, link_name = "PyPyOS_AfterFork")]
15    pub fn PyOS_AfterFork();
16
17    // skipped non-limited _PyOS_IsMainThread
18    // skipped non-limited Windows _PyOS_SigintEvent
19}