| 1 | use std::os::raw::c_int; |
| 2 | |
| 3 | unsafeextern "C" { |
| 4 | #[cfg_attr (PyPy, link_name = "PyPyOS_InterruptOccurred" )] |
| 5 | pub unsafefn 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 unsafefn PyOS_BeforeFork(); |
| 11 | pub unsafefn PyOS_AfterFork_Parent(); |
| 12 | pub unsafefn PyOS_AfterFork_Child(); |
| 13 | #[deprecated (note = "use PyOS_AfterFork_Child instead" )] |
| 14 | #[cfg_attr (PyPy, link_name = "PyPyOS_AfterFork" )] |
| 15 | pub unsafefn PyOS_AfterFork(); |
| 16 | |
| 17 | // skipped non-limited _PyOS_IsMainThread |
| 18 | // skipped non-limited Windows _PyOS_SigintEvent |
| 19 | } |
| 20 | |