python3_sys/intrcheck.rs
1use libc::c_int;
2
3#[cfg_attr(windows, link(name = "pythonXY"))]
4extern "C" {
5 #[cfg(all(unix, Py_3_7))]
6 pub fn PyOS_BeforeFork() -> ();
7 #[cfg(all(unix, Py_3_7))]
8 pub fn PyOS_AfterFork_Parent() -> ();
9 #[cfg(all(unix, Py_3_7))]
10 pub fn PyOS_AfterFork_Child() -> ();
11
12 pub fn PyOS_InterruptOccurred() -> c_int;
13 #[cfg(not(Py_3_10))]
14 pub fn PyOS_InitInterrupts() -> ();
15 pub fn PyOS_AfterFork() -> ();
16}