Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"
#include "internal.h"
#include <assert.h>
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Go to the source code of this file.
Classes | |
struct | uv__signal_msg_t |
Macros | |
#define | SA_RESTART 0 |
Variables | |
static uv_once_t | uv__signal_global_init_guard = UV_ONCE_INIT |
static struct uv__signal_tree_s | uv__signal_tree |
static int | uv__signal_lock_pipefd [2] = { -1, -1 } |
RB_GENERATE_STATIC | ( | uv__signal_tree_s | , |
uv_signal_s | , | ||
tree_entry | , | ||
uv__signal_compare | |||
) |
RB_HEAD | ( | uv__signal_tree_s | , |
uv_signal_s | |||
) |
|
static |
Definition at line 140 of file signal.c.
References uv__signal_lock().
Referenced by uv__signal_start(), and uv__signal_stop().
void uv__signal_cleanup | ( | void | ) |
Definition at line 80 of file signal.c.
References uv__close(), and uv__signal_lock_pipefd.
Referenced by uv__signal_global_reinit(), and uv_library_shutdown().
void uv__signal_close | ( | uv_signal_t * | handle | ) |
Definition at line 335 of file signal.c.
References handle, and uv__signal_stop().
Referenced by uv_close().
|
static |
Definition at line 483 of file signal.c.
References f1, autogen_x86imm::f2, UV_SIGNAL_ONE_SHOT, w1, and w2.
Definition at line 416 of file signal.c.
References assert(), bytes, EAGAIN, EINTR, test_evm::end, handle, i, loop, msg, r, read(), uv__signal_stop(), UV_HANDLE_CLOSING, and UV_SIGNAL_ONE_SHOT.
Referenced by uv__signal_loop_once_init().
|
static |
Definition at line 165 of file signal.c.
References handle, NULL, RB_NFIND, signum, uv_signal_s::signum, and uv__signal_tree.
Referenced by uv__signal_handler(), uv__signal_start(), and uv__signal_stop().
void uv__signal_global_once_init | ( | void | ) |
Definition at line 111 of file signal.c.
References uv__signal_global_init_guard, and uv_once().
Referenced by uv_loop_init().
|
static |
Definition at line 100 of file signal.c.
References uv__make_pipe(), uv__signal_cleanup(), uv__signal_lock_pipefd, and uv__signal_unlock().
|
static |
Definition at line 183 of file signal.c.
References assert(), EAGAIN, EINTR, handle, memset(), msg, NULL, r, RB_NEXT, signum, uv__signal_first_handle(), uv__signal_lock(), uv__signal_tree, uv__signal_unlock(), and write.
Referenced by uv__signal_register_handler().
|
static |
Definition at line 116 of file signal.c.
References EINTR, r, read(), and uv__signal_lock_pipefd.
Referenced by uv__signal_block_and_lock(), and uv__signal_handler().
void uv__signal_loop_cleanup | ( | uv_loop_t * | loop | ) |
Definition at line 291 of file signal.c.
References handle, uv_loop_s::handle_queue, loop, QUEUE_DATA, QUEUE_FOREACH, uv__close(), and uv__signal_stop().
Referenced by uv__loop_close(), and uv_loop_init().
Definition at line 281 of file signal.c.
References loop, uv__close(), uv__io_stop(), and uv__signal_loop_once_init().
Referenced by uv_loop_fork().
Definition at line 261 of file signal.c.
References err, loop, UV__F_NONBLOCK, uv__io_init(), uv__io_start(), uv__make_pipe(), and uv__signal_event().
Referenced by uv__signal_loop_fork(), and uv_signal_init().
Definition at line 224 of file signal.c.
References memset(), NULL, oneshot(), SA_RESTART, signum, UV__ERR, and uv__signal_handler().
Referenced by uv__signal_start(), and uv__signal_stop().
|
static |
Definition at line 352 of file signal.c.
References assert(), err, handle, NULL, oneshot(), RB_INSERT, signum, uv__handle_start, uv__is_closing, uv__signal_block_and_lock(), uv__signal_first_handle(), uv__signal_register_handler(), uv__signal_stop(), uv__signal_tree, uv__signal_unlock_and_unblock(), and UV_SIGNAL_ONE_SHOT.
Referenced by uv_signal_start(), and uv_signal_start_oneshot().
|
static |
Definition at line 520 of file signal.c.
References assert(), handle, NULL, RB_REMOVE, uv__handle_stop, uv__signal_block_and_lock(), uv__signal_first_handle(), uv__signal_register_handler(), uv__signal_tree, uv__signal_unlock_and_unblock(), uv__signal_unregister_handler(), and UV_SIGNAL_ONE_SHOT.
Referenced by uv__signal_close(), uv__signal_event(), uv__signal_loop_cleanup(), uv__signal_start(), and uv_signal_stop().
|
static |
Definition at line 128 of file signal.c.
References EINTR, r, uv__signal_lock_pipefd, and write.
Referenced by uv__signal_global_reinit(), uv__signal_handler(), and uv__signal_unlock_and_unblock().
|
static |
Definition at line 156 of file signal.c.
References NULL, and uv__signal_unlock().
Referenced by uv__signal_start(), and uv__signal_stop().
|
static |
int uv_signal_init | ( | uv_loop_t * | loop, |
uv_signal_t * | handle | ||
) |
int uv_signal_start | ( | uv_signal_t * | handle, |
uv_signal_cb | signal_cb, | ||
int | signum | ||
) |
Definition at line 340 of file signal.c.
int uv_signal_start_oneshot | ( | uv_signal_t * | handle, |
uv_signal_cb | signal_cb, | ||
int | signum | ||
) |
int uv_signal_stop | ( | uv_signal_t * | handle | ) |
Definition at line 513 of file signal.c.
Referenced by uv__signal_start(), uv_process_signal_req(), and uv_signal_close().
|
static |
Definition at line 54 of file signal.c.
Referenced by uv__signal_global_once_init().
|
static |
Definition at line 57 of file signal.c.
Referenced by uv__signal_cleanup(), uv__signal_global_reinit(), uv__signal_lock(), and uv__signal_unlock().
|
static |
Definition at line 54 of file signal.c.
Referenced by uv__signal_first_handle(), uv__signal_handler(), uv__signal_start(), and uv__signal_stop().