/usr/local/lib64/python3.6/site-packages/numpy/core/include/numpy
NameSizeModeActions
random/-0755rm
arrayobject.h1640644editdlrm
arrayscalars.h36690644editdlrm
halffloat.h18780644editdlrm
multiarray_api.txt554480644editdlrm
ndarrayobject.h106880644editdlrm
ndarraytypes.h645780644editdlrm
noprefix.h67860644editdlrm
npy_1_7_deprecated_api.h43510644editdlrm
npy_3kcompat.h145480644editdlrm
npy_common.h377070644editdlrm
npy_cpu.h40380644editdlrm
npy_endian.h26410644editdlrm
npy_interrupt.h18670644editdlrm
npy_math.h210270644editdlrm
npy_no_deprecated_api.h5670644editdlrm
npy_os.h8170644editdlrm
numpyconfig.h13670644editdlrm
oldnumeric.h7080644editdlrm
old_defines.h63060644editdlrm
ufuncobject.h127580644editdlrm
ufunc_api.txt70640644editdlrm
utils.h7290644editdlrm
_neighborhood_iterator_imp.h18610644editdlrm
_numpyconfig.h10100644editdlrm
__multiarray_api.h616050644editdlrm
__ufunc_api.h124280644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/numpy/core/include/numpy/npy_interrupt.h (1867B)
/* * This API is only provided because it is part of publicly exported * headers. Its use is considered DEPRECATED, and it will be removed * eventually. * (This includes the _PyArray_SigintHandler and _PyArray_GetSigintBuf * functions which are however, public API, and not headers.) * * Instead of using these non-threadsafe macros consider periodically * querying `PyErr_CheckSignals()` or `PyOS_InterruptOccurred()` will work. * Both of these require holding the GIL, although cpython could add a * version of `PyOS_InterruptOccurred()` which does not. Such a version * actually exists as private API in Python 3.10, and backported to 3.9 and 3.8, * see also https://bugs.python.org/issue41037 and * https://github.com/python/cpython/pull/20599). */ #ifndef NPY_INTERRUPT_H #define NPY_INTERRUPT_H #ifndef NPY_NO_SIGNAL #include #include #ifndef sigsetjmp #define NPY_SIGSETJMP(arg1, arg2) setjmp(arg1) #define NPY_SIGLONGJMP(arg1, arg2) longjmp(arg1, arg2) #define NPY_SIGJMP_BUF jmp_buf #else #define NPY_SIGSETJMP(arg1, arg2) sigsetjmp(arg1, arg2) #define NPY_SIGLONGJMP(arg1, arg2) siglongjmp(arg1, arg2) #define NPY_SIGJMP_BUF sigjmp_buf #endif # define NPY_SIGINT_ON { \ PyOS_sighandler_t _npy_sig_save; \ _npy_sig_save = PyOS_setsig(SIGINT, _PyArray_SigintHandler); \ if (NPY_SIGSETJMP(*((NPY_SIGJMP_BUF *)_PyArray_GetSigintBuf()), \ 1) == 0) { \ # define NPY_SIGINT_OFF } \ PyOS_setsig(SIGINT, _npy_sig_save); \ } #else /* NPY_NO_SIGNAL */ #define NPY_SIGINT_ON #define NPY_SIGINT_OFF #endif /* HAVE_SIGSETJMP */ #endif /* NPY_INTERRUPT_H */