Home
last modified time | relevance | path

Searched refs:signum (Results 1 – 17 of 17) sorted by relevance

/libuv/src/win/
H A Dsignal.c57 if (w1->signum < w2->signum) return -1; in uv__signal_compare()
58 if (w1->signum > w2->signum) return 1; in uv__signal_compare()
89 lookup.signum = signum; in RB_GENERATE_STATIC()
93 handle != NULL && handle->signum == signum; in RB_GENERATE_STATIC()
150 handle->signum = 0; in uv_signal_init()
164 if (handle->signum == 0) in uv_signal_stop()
174 handle->signum = 0; in uv_signal_stop()
198 if (signum <= 0 || signum >= NSIG) in uv__signal_start()
205 if (signum == handle->signum) { in uv__signal_start()
211 if (handle->signum != 0) { in uv__signal_start()
[all …]
H A Dprocess.c1158 static int uv__kill(HANDLE process_handle, int signum) { in uv__kill() argument
1159 if (signum < 0 || signum >= NSIG) { in uv__kill()
1170 if (signum == SIGQUIT) { in uv__kill()
1284 switch (signum) { in uv__kill()
1354 int uv_process_kill(uv_process_t* process, int signum) { in uv_process_kill() argument
1361 err = uv__kill(process->process_handle, signum); in uv_process_kill()
1366 process->exit_signal = signum; in uv_process_kill()
1372 int uv_kill(int pid, int signum) { in uv_kill() argument
1393 err = uv__kill(process_handle, signum); in uv_kill()
H A Dinternal.h215 int uv__signal_dispatch(int signum);
/libuv/src/unix/
H A Dsignal.c37 int signum; member
170 lookup.signum = signum; in uv__signal_first_handle()
176 if (handle != NULL && handle->signum == signum) in uv__signal_first_handle()
197 handle != NULL && handle->signum == signum; in uv__signal_handler()
201 msg.signum = signum; in uv__signal_handler()
383 if (signum == 0) in uv__signal_start()
391 if (signum == handle->signum) { in uv__signal_start()
418 handle->signum = signum; in uv__signal_start()
476 if (msg->signum == handle->signum) { in uv__signal_event()
506 if (w1->signum < w2->signum) return -1; in uv__signal_compare()
[all …]
H A Dprocess.c75 static void uv__chld(uv_signal_t* handle, int signum) { in uv__chld() argument
76 assert(signum == SIGCHLD); in uv__chld()
1083 int uv_process_kill(uv_process_t* process, int signum) { in uv_process_kill() argument
1084 return uv_kill(process->pid, signum); in uv_process_kill()
1088 int uv_kill(int pid, int signum) { in uv_kill() argument
1089 if (kill(pid, signum)) { in uv_kill()
/libuv/test/
H A Dtest-signal.c47 static void signum_test_cb(uv_signal_t* handle, int signum) { in signum_test_cb() argument
89 int signum; member
96 int signum; member
101 static void signal_cb(uv_signal_t* handle, int signum) { in signal_cb() argument
103 ASSERT_EQ(signum, ctx->signum); in signal_cb()
116 ASSERT_EQ(signum, ctx->signum); in signal_cb_one_shot()
126 raise(ctx->signum); in timer_cb()
134 int signum, in start_watcher() argument
138 ctx->signum = signum; in start_watcher()
145 ASSERT_OK(uv_signal_start(&ctx->handle, signal_cb, signum)); in start_watcher()
[all …]
H A Dtest-signal-pending-on-close.c37 static void stop_loop_cb(uv_signal_t* signal, int signum) { in stop_loop_cb() argument
38 ASSERT_EQ(signum, SIGPIPE); in stop_loop_cb()
42 static void signal_cb(uv_signal_t* signal, int signum) { in signal_cb() argument
H A Dtest-signal-multiple-loops.c68 static void signal1_cb(uv_signal_t* handle, int signum) { in signal1_cb() argument
69 ASSERT_EQ(signum, SIGUSR1); in signal1_cb()
75 static void signal2_cb(uv_signal_t* handle, int signum) { in signal2_cb() argument
76 ASSERT_EQ(signum, SIGUSR2); in signal2_cb()
159 static void signal_unexpected_cb(uv_signal_t* handle, int signum) { in signal_unexpected_cb() argument
H A Dtest-eintr-handling.c60 static void sig_func(uv_signal_t* handle, int signum) { in sig_func() argument
H A Dtest-fork.c239 void fork_signal_to_child_cb(uv_signal_t* handle, int signum) in fork_signal_to_child_cb() argument
241 fork_signal_cb_called = signum; in fork_signal_to_child_cb()
H A Dtest-fs.c3779 static void sig_func(uv_signal_t* handle, int signum) { in sig_func() argument
/libuv/docs/code/signal/
H A Dmain.c15 void signal_handler(uv_signal_t *handle, int signum) in signal_handler() argument
17 printf("Signal received: %d\n", signum); in signal_handler()
/libuv/docs/src/
H A Dsignal.rst64 .. c:type:: void (*uv_signal_cb)(uv_signal_t* handle, int signum)
72 .. c:member:: int uv_signal_t.signum
86 .. c:function:: int uv_signal_start(uv_signal_t* signal, uv_signal_cb cb, int signum)
90 .. c:function:: int uv_signal_start_oneshot(uv_signal_t* signal, uv_signal_cb cb, int signum)
H A Dprocess.rst275 .. c:function:: int uv_process_kill(uv_process_t* handle, int signum)
280 .. c:function:: int uv_kill(int pid, int signum)
/libuv/docs/code/queue-cancel/
H A Dmain.c33 void signal_handler(uv_signal_t *req, int signum) in signal_handler() argument
/libuv/include/
H A Duv.h415 typedef void (*uv_signal_cb)(uv_signal_t* handle, int signum);
1161 UV_EXTERN int uv_process_kill(uv_process_t*, int signum);
1162 UV_EXTERN int uv_kill(int pid, int signum);
1701 int signum; member
1708 int signum);
1711 int signum);
/libuv/docs/src/guide/
H A Dprocesses.rst127 uv_err_t uv_kill(int pid, int signum);

Completed in 44 milliseconds