Ruby  3.1.4p223 (2023-03-30 revision HEAD)
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 
114 VALUE 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
119 void (*posix_signal(int, void (*)(int)))(int);
120 #endif
121 
133 const char *ruby_signal_name(int signo);
134 
148 void 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
RBIMPL_ATTR_PURE() int rb_io_read_pending(rb_io_t *fptr)
Queries if the passed IO has any pending reads.
Defines RBIMPL_ATTR_NONNULL.
#define RBIMPL_ATTR_NONNULL(list)
Wraps (or simulates) __attribute__((nonnull))
Definition: nonnull.h:27
Defines RBIMPL_ATTR_PURE.
Defines VALUE and ID.
uintptr_t VALUE
Type that represents a Ruby object.
Definition: value.h:40