Ruby 3.2.3p157 (2024-01-18 revision 52bb2ac0a6971d0391efa2275f7a66bff319087c)
signal.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_SIGNAL_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_SIGNAL_H
26#include "ruby/internal/value.h"
27
29
30/* signal.c */
31
114VALUE rb_f_kill(int argc, const VALUE *argv);
115
116/* This must be private, @shyouhei guesses. */
117#ifdef POSIX_SIGNAL
118#define posix_signal ruby_posix_signal
119void (*posix_signal(int, void (*)(int)))(int);
120#endif
121
133const char *ruby_signal_name(int signo);
134
148void ruby_default_signal(int sig);
149
151
152#endif /* RBIMPL_INTERN_SIGNAL_H */
Tweaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition dllexport.h:106
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition dllexport.h:97
void ruby_default_signal(int sig)
Pretends as if there was no custom signal handler.
Definition signal.c:407
const char * ruby_signal_name(int signo)
Queries the name of the signal.
Definition signal.c:316
VALUE rb_f_kill(int argc, const VALUE *argv)
Sends a signal ("kills") to processes.
Definition signal.c:423
Defines RBIMPL_ATTR_NONNULL.
#define RBIMPL_ATTR_NONNULL(list)
Wraps (or simulates) __attribute__((nonnull))
Definition nonnull.h:30
Defines RBIMPL_ATTR_PURE.
#define RBIMPL_ATTR_PURE()
Wraps (or simulates) __attribute__((pure))
Definition pure.h:33
Defines VALUE and ID.
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40