Pracownia_programowania/venv/Lib/site-packages/Cython/Includes/libc/signal.pxd

65 lines
1.1 KiB
Cython
Raw Normal View History

2020-02-01 19:54:00 +01: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