cosmopolitan/third_party/python/Include/intrcheck.h
Justine Tunney fa20edc44d
Reduce header complexity
- Remove most __ASSEMBLER__ __LINKER__ ifdefs
- Rename libc/intrin/bits.h to libc/serialize.h
- Block pthread cancelation in fchmodat() polyfill
- Remove `clang-format off` statements in third_party
2023-11-28 14:39:42 -08:00

19 lines
427 B
C

#ifndef Py_INTRCHECK_H
#define Py_INTRCHECK_H
COSMOPOLITAN_C_START_
int PyOS_InterruptOccurred(void);
void PyOS_InitInterrupts(void);
void PyOS_AfterFork(void);
#ifndef Py_LIMITED_API
int _PyOS_IsMainThread(void);
#ifdef MS_WINDOWS
/* windows.h is not included by Python.h so use void* instead of HANDLE */
void* _PyOS_SigintEvent(void);
#endif
#endif /* !Py_LIMITED_API */
COSMOPOLITAN_C_END_
#endif /* !Py_INTRCHECK_H */