Lines Matching refs:signum
37 int signum; member
46 int signum,
51 static void uv__signal_unregister_handler(int signum);
165 static uv_signal_t* uv__signal_first_handle(int signum) { in uv__signal_first_handle() argument
170 lookup.signum = signum; in uv__signal_first_handle()
176 if (handle != NULL && handle->signum == signum) in uv__signal_first_handle()
183 static void uv__signal_handler(int signum) { in uv__signal_handler() argument
196 for (handle = uv__signal_first_handle(signum); in uv__signal_handler()
197 handle != NULL && handle->signum == signum; in uv__signal_handler()
201 msg.signum = signum; in uv__signal_handler()
224 static int uv__signal_register_handler(int signum, int oneshot) { in uv__signal_register_handler() argument
238 if (sigaction(signum, &sa, NULL)) in uv__signal_register_handler()
245 static void uv__signal_unregister_handler(int signum) { in uv__signal_unregister_handler() argument
256 if (sigaction(signum, &sa, NULL)) in uv__signal_unregister_handler()
344 handle->signum = 0; in uv_signal_init()
357 int uv_signal_start(uv_signal_t* handle, uv_signal_cb signal_cb, int signum) { in uv_signal_start() argument
358 return uv__signal_start(handle, signal_cb, signum, 0); in uv_signal_start()
364 int signum) { in uv_signal_start_oneshot() argument
365 return uv__signal_start(handle, signal_cb, signum, 1); in uv_signal_start_oneshot()
371 int signum, in uv__signal_start() argument
383 if (signum == 0) in uv__signal_start()
391 if (signum == handle->signum) { in uv__signal_start()
397 if (handle->signum != 0) { in uv__signal_start()
407 first_handle = uv__signal_first_handle(signum); in uv__signal_start()
410 err = uv__signal_register_handler(signum, oneshot); in uv__signal_start()
418 handle->signum = signum; in uv__signal_start()
476 if (msg->signum == handle->signum) { in uv__signal_event()
478 handle->signal_cb(handle, handle->signum); in uv__signal_event()
506 if (w1->signum < w2->signum) return -1; in uv__signal_compare()
507 if (w1->signum > w2->signum) return 1; in uv__signal_compare()
546 if (handle->signum == 0) in uv__signal_stop()
558 first_handle = uv__signal_first_handle(handle->signum); in uv__signal_stop()
560 uv__signal_unregister_handler(handle->signum); in uv__signal_stop()
565 ret = uv__signal_register_handler(handle->signum, 1); in uv__signal_stop()
573 handle->signum = 0; in uv__signal_stop()