test-kivy-app/kivy_venv/lib/python3.11/site-packages/Cython/Includes/libc/signal.pxd

65 lines
1.1 KiB
Cython
Raw Normal View History

2024-09-15 12:12:16 +00:00
# 7.14 Signal handling <signal.h>
ctypedef void (*sighandler_t)(int SIGNUM) nogil
cdef extern from "<signal.h>" nogil:
ctypedef int sig_atomic_t
sighandler_t SIG_DFL
sighandler_t SIG_IGN
sighandler_t SIG_ERR
sighandler_t signal (int signum, sighandler_t action)
int raise_"raise" (int signum)
# Signals
enum:
# Program Error
SIGFPE
SIGILL
SIGSEGV
SIGBUS
SIGABRT
SIGIOT
SIGTRAP
SIGEMT
SIGSYS
SIGSTKFLT
# Termination
SIGTERM
SIGINT
SIGQUIT
SIGKILL
SIGHUP
# Alarm
SIGALRM
SIGVTALRM
SIGPROF
# Asynchronous I/O
SIGIO
SIGURG
SIGPOLL
# Job Control
SIGCHLD
SIGCLD
SIGCONT
SIGSTOP
SIGTSTP
SIGTTIN
SIGTTOU
# Operation Error
SIGPIPE
SIGLOST
SIGXCPU
SIGXFSZ
SIGPWR
# Miscellaneous
SIGUSR1
SIGUSR2
SIGWINCH
SIGINFO
# Real-time signals
SIGRTMIN
SIGRTMAX