#include "internal.h"
#include "vm_core.h"
#include <signal.h>
#include <stdio.h>
#include <errno.h>
#include "ruby_atomic.h"
#include "eval_intern.h"
Go to the source code of this file.
|
#define | VALGRIND_MAKE_MEM_DEFINED(p, n) 0 |
|
#define | VALGRIND_MAKE_MEM_UNDEFINED(p, n) 0 |
|
#define | id_signo ruby_static_id_signo |
|
#define | killpg(pg, sig) kill(-(pg), (sig)) |
|
#define | sighandler_t ruby_sighandler_t |
|
#define | SIGINFO_ARG |
|
#define | SIGINFO_CTX 0 |
|
#define | ruby_signal(sig, handler) (/* rb_trap_accept_nativethreads[(sig)] = 0,*/ signal((sig),(handler))) |
|
#define | clear_received_signal() ((void)0) |
|
#define | CHECK_STACK_OVERFLOW() (void)0 |
|
#define | MESSAGE_FAULT_ADDRESS |
|
#define | INSTALL_SIGHANDLER(cond, signame, signum) |
|
#define | install_sighandler(signum, handler) INSTALL_SIGHANDLER(install_sighandler(signum, handler), #signum, signum) |
|
◆ CHECK_STACK_OVERFLOW
#define CHECK_STACK_OVERFLOW |
( |
| ) |
(void)0 |
◆ clear_received_signal
#define clear_received_signal |
( |
| ) |
((void)0) |
◆ id_signo
◆ INSTALL_SIGHANDLER
#define INSTALL_SIGHANDLER |
( |
|
cond, |
|
|
|
signame, |
|
|
|
signum |
|
) |
| |
Value:do { \
static const char failed[] = "failed to install "signame" handler"; \
if (reserved_signal_p(signum))
rb_bug(failed); \
perror(failed); \
} while (0)
void rb_bug(const char *fmt,...)
#define cond(node, column)
Definition at line 1391 of file signal.c.
◆ install_sighandler
#define install_sighandler |
( |
|
signum, |
|
|
|
handler |
|
) |
| INSTALL_SIGHANDLER(install_sighandler(signum, handler), #signum, signum) |
◆ killpg
#define killpg |
( |
|
pg, |
|
|
|
sig |
|
) |
| kill(-(pg), (sig)) |
◆ MESSAGE_FAULT_ADDRESS
#define MESSAGE_FAULT_ADDRESS |
◆ ruby_signal
#define ruby_signal |
( |
|
sig, |
|
|
|
handler |
|
) |
| (/* rb_trap_accept_nativethreads[(sig)] = 0,*/ signal((sig),(handler))) |
◆ sighandler_t
#define sighandler_t ruby_sighandler_t |
◆ SIGINFO_ARG
◆ SIGINFO_CTX
◆ VALGRIND_MAKE_MEM_DEFINED
#define VALGRIND_MAKE_MEM_DEFINED |
( |
|
p, |
|
|
|
n |
|
) |
| 0 |
◆ VALGRIND_MAKE_MEM_UNDEFINED
#define VALGRIND_MAKE_MEM_UNDEFINED |
( |
|
p, |
|
|
|
n |
|
) |
| 0 |
◆ ruby_sigaction_t
typedef RETSIGTYPE ruby_sigaction_t(int) |
◆ sighandler_t
typedef RETSIGTYPE(* sighandler_t) (int) |
◆ Init_signal()
void Init_signal |
( |
void |
| ) |
|
◆ rb_f_kill()
◆ rb_get_next_signal()
int rb_get_next_signal |
( |
void |
| ) |
|
◆ rb_signal_buff_size()
int rb_signal_buff_size |
( |
void |
| ) |
|
◆ rb_signal_exec()
◆ rb_trap_exit()
void rb_trap_exit |
( |
void |
| ) |
|
◆ ruby_atomic_compare_and_swap()
◆ ruby_atomic_exchange()
◆ ruby_default_signal()
void ruby_default_signal |
( |
int |
sig | ) |
|
◆ ruby_signal_name()
const char* ruby_signal_name |
( |
int |
no | ) |
|
◆ cnt
◆ ruby_enable_coredump
int ruby_enable_coredump = 0 |
◆ ruby_static_id_signo
◆ size