Rizin
unix-like reverse engineering framework and cli tools
|
#include <assert.h>
#include <signal.h>
#include "uv.h"
#include "internal.h"
#include "handle-inl.h"
#include "req-inl.h"
Go to the source code of this file.
Functions | |
RB_HEAD (uv_signal_tree_s, uv_signal_s) | |
static BOOL WINAPI | uv__signal_control_handler (DWORD type) |
int | uv__signal_start (uv_signal_t *handle, uv_signal_cb signal_cb, int signum, int oneshot) |
void | uv_signals_init (void) |
void | uv__signal_cleanup (void) |
static int | uv__signal_compare (uv_signal_t *w1, uv_signal_t *w2) |
int | uv__signal_dispatch (int signum) |
int | uv_signal_init (uv_loop_t *loop, uv_signal_t *handle) |
int | uv_signal_stop (uv_signal_t *handle) |
int | uv_signal_start (uv_signal_t *handle, uv_signal_cb signal_cb, int signum) |
int | uv_signal_start_oneshot (uv_signal_t *handle, uv_signal_cb signal_cb, int signum) |
void | uv_process_signal_req (uv_loop_t *loop, uv_signal_t *handle, uv_req_t *req) |
void | uv_signal_close (uv_loop_t *loop, uv_signal_t *handle) |
void | uv_signal_endgame (uv_loop_t *loop, uv_signal_t *handle) |
Variables | |
static struct uv_signal_tree_s | uv__signal_tree = RB_INITIALIZER(uv__signal_tree) |
static CRITICAL_SECTION | uv__signal_lock |
RB_HEAD | ( | uv_signal_tree_s | , |
uv_signal_s | |||
) |
void uv__signal_cleanup | ( | void | ) |
|
static |
|
static |
Definition at line 116 of file signal.c.
References FALSE, SIGHUP, TRUE, type, and uv__signal_dispatch().
Referenced by uv_signals_init().
Definition at line 80 of file signal.c.
References handle, InterlockedExchange, LONG, NULL, POST_COMPLETION_FOR_REQ, RB_NEXT, RB_NFIND, signum, uv_signal_s::signum, uv__signal_lock, uv__signal_tree, UV_SIGNAL_ONE_SHOT, and UV_SIGNAL_ONE_SHOT_DISPATCHED.
Referenced by uv__signal_control_handler(), and uv__tty_console_signal_resize().
int uv__signal_start | ( | uv_signal_t * | handle, |
uv_signal_cb | signal_cb, | ||
int | signum, | ||
int | oneshot | ||
) |
Definition at line 193 of file signal.c.
References assert(), handle, NSIG, oneshot(), r, RB_INSERT, signum, uv__handle_start, uv__signal_lock, uv__signal_tree, UV_SIGNAL_ONE_SHOT, and uv_signal_stop().
Referenced by uv_signal_start(), and uv_signal_start_oneshot().
void uv_process_signal_req | ( | uv_loop_t * | loop, |
uv_signal_t * | handle, | ||
uv_req_t * | req | ||
) |
Definition at line 234 of file signal.c.
References assert(), handle, InterlockedExchange, LONG, loop, req, UV_HANDLE_CLOSING, UV_SIGNAL_ONE_SHOT, uv_signal_stop(), and uv_want_endgame().
Referenced by uv_process_reqs().
void uv_signal_close | ( | uv_loop_t * | loop, |
uv_signal_t * | handle | ||
) |
Definition at line 262 of file signal.c.
References handle, loop, uv__handle_closing, uv_signal_stop(), and uv_want_endgame().
Referenced by uv_close().
void uv_signal_endgame | ( | uv_loop_t * | loop, |
uv_signal_t * | handle | ||
) |
Definition at line 272 of file signal.c.
References assert(), handle, uv__handle_close, UV_HANDLE_CLOSED, and UV_HANDLE_CLOSING.
Referenced by uv_process_endgames().
int uv_signal_init | ( | uv_loop_t * | loop, |
uv_signal_t * | handle | ||
) |
Definition at line 147 of file signal.c.
References err, handle, loop, NULL, uv__handle_init, uv__signal_loop_once_init(), and UV_REQ_INIT.
Referenced by main(), thread1_worker(), thread2_worker(), and uv_loop_init().
int uv_signal_start | ( | uv_signal_t * | handle, |
uv_signal_cb | signal_cb, | ||
int | signum | ||
) |
Definition at line 181 of file signal.c.
References handle, signum, and uv__signal_start().
Referenced by main(), thread1_worker(), thread2_worker(), and uv_spawn().
int uv_signal_start_oneshot | ( | uv_signal_t * | handle, |
uv_signal_cb | signal_cb, | ||
int | signum | ||
) |
Definition at line 186 of file signal.c.
References handle, signum, and uv__signal_start().
int uv_signal_stop | ( | uv_signal_t * | handle | ) |
Definition at line 160 of file signal.c.
References assert(), handle, RB_REMOVE, uv__handle_stop, uv__is_closing, uv__signal_lock, uv__signal_stop(), and uv__signal_tree.
Referenced by signal_handler(), and uv__process_close().
void uv_signals_init | ( | void | ) |
Definition at line 42 of file signal.c.
References TRUE, uv__signal_control_handler(), and uv__signal_lock.
Referenced by uv_init().
|
static |
Definition at line 33 of file signal.c.
Referenced by uv__signal_dispatch(), uv__signal_start(), uv_signal_stop(), and uv_signals_init().
|
static |
Definition at line 30 of file signal.c.
Referenced by uv__signal_dispatch(), uv__signal_start(), and uv_signal_stop().