/third_party/musl/libc-test/src/functionalext/supplement/signal/ |
H A D | killpg.c | 17 #include <signal.h> 25 void ChildFunc(int signal) in ChildFunc() argument 27 switch (signal) { in ChildFunc() 39 * @tc.desc : Determine whether the child process successfully receives the signal to 58 signal(SIGCHLD, ChildFunc); in killpg_0100()
|
H A D | signal.c | 18 #include <signal.h> 23 * @tc.desc : The test catches the exception through the signal function 29 t_error("%s signal get error code is %d are not SIGILL or SIGTRAP\n", __func__, code); in signal_0100() 37 signal(SIGILL, signal_0100); in main() 38 signal(SIGTRAP, signal_0100); in main()
|
/third_party/node/deps/undici/src/lib/api/ |
H A D | abort-signal.js | 15 function addSignal (self, signal) { 19 if (!signal) { 23 if (signal.aborted) { 28 self[kSignal] = signal
|
/third_party/skia/third_party/externals/oboe/src/flowgraph/ |
H A D | SinkI16.cpp | 42 const float *signal = input.getBuffer(); in read() local 45 memcpy_to_i16_from_float(shortData, signal, numSamples); in read() 47 signal += numSamples; in read() 50 int32_t n = (int32_t) (*signal++ * 32768.0f); in read()
|
/third_party/node/test/parallel/ |
H A D | test-webstreams-abort-controller.js | 34 addAbortSignal(ac.signal, rs); 53 addAbortSignal(ac.signal, rs); 71 addAbortSignal(ac.signal, rs1); 72 addAbortSignal(ac.signal, rs2); 99 addAbortSignal(ac.signal, rs); 125 addAbortSignal(ac.signal, ws); 149 addAbortSignal(ac.signal, ws1); 150 addAbortSignal(ac.signal, ws2);
|
H A D | test-stream-finished.js | 98 const signal = new EventTarget(); 99 signal.aborted = true; 102 finished(rs, { signal }, common.mustCall((err) => { 110 const { signal } = ac; 113 finished(rs, { signal }, common.mustCall((err) => { 123 const { signal } = ac; 127 finished(rs, { signal }, common.mustCall((err) => { 135 const { signal } = ac; 142 finished(rs, { signal }, common.mustSucceed()); 150 const { signal } [all...] |
H A D | test-cluster-send-handle-twice.js | 37 worker.on('exit', common.mustCall(function(code, signal) { 39 assert.strictEqual(signal, null, `Worker exited by a signal: ${signal}`);
|
H A D | test-readline-interface.js | 924 // Ensure that options.signal.removeEventListener was called 927 const signal = ac.signal; 929 signal.removeEventListener = common.mustCall( 935 rli.question('hello?', { signal }, common.mustCall()); 1040 // Calling the question callback with abort signal 1043 const { signal } = new AbortController(); 1044 rli.question('foo?', { signal }, common.mustCall((answer) => { 1074 // Calling the promisified question with abort signal 1078 const { signal } [all...] |
/third_party/node/src/tracing/ |
H A D | node_trace_writer.cc | 20 [](uv_async_t* signal) { in InitializeOnThread() 22 ContainerOf(&NodeTraceWriter::flush_signal_, signal); in InitializeOnThread() 218 void NodeTraceWriter::ExitSignalCb(uv_async_t* signal) { in ExitSignalCb() argument 220 ContainerOf(&NodeTraceWriter::exit_signal_, signal); in ExitSignalCb() 223 [](uv_handle_t* signal) { in ExitSignalCb() 226 reinterpret_cast<uv_async_t*>(signal)); in ExitSignalCb() 229 [](uv_handle_t* signal) { in ExitSignalCb() 232 reinterpret_cast<uv_async_t*>(signal)); in ExitSignalCb()
|
H A D | node_trace_buffer.cc | 164 void NodeTraceBuffer::NonBlockingFlushSignalCb(uv_async_t* signal) { in NonBlockingFlushSignalCb() argument 165 NodeTraceBuffer* buffer = static_cast<NodeTraceBuffer*>(signal->data); in NonBlockingFlushSignalCb() 175 void NodeTraceBuffer::ExitSignalCb(uv_async_t* signal) { in ExitSignalCb() argument 177 ContainerOf(&NodeTraceBuffer::exit_signal_, signal); in ExitSignalCb() 181 [](uv_handle_t* signal) { in ExitSignalCb() 184 reinterpret_cast<uv_async_t*>(signal)); in ExitSignalCb() 187 [](uv_handle_t* signal) { in ExitSignalCb() 190 reinterpret_cast<uv_async_t*>(signal)); in ExitSignalCb()
|
/third_party/node/lib/ |
H A D | readline.js | 130 * @param {{ signal?: AbortSignal; }} [options] 140 if (options.signal) { 141 validateAbortSignal(options.signal, 'options.signal'); 142 if (options.signal.aborted) { 150 const disposable = addAbortListener(options.signal, onAbort); 167 if (options.signal && options.signal.aborted) { 169 new AbortError(undefined, { cause: options.signal.reason })); 175 if (options.signal) { [all...] |
/third_party/node/deps/v8/tools/testrunner/local/ |
H A D | command.py | 8 import signal namespace 31 signal.signal = lambda *_: None 50 # Variable to communicate with the signal handler. 56 previous = signal.signal(signal.SIGTERM, handler) 61 signal.signal(signal [all...] |
/third_party/ltp/testcases/kernel/syscalls/kill/ |
H A D | kill02.c | 38 TEST IDENTIFIER : kill02 Sending a signal to processes with the same process group ID. 50 1. Sending a signal to pid of zero sends to all processes whose process 53 2. Sending a signal to pid of zero does not send to processes in another process group. 58 kiltcs02 1 PASS The signal was sent to all processes in the process group. 59 kiltcs02 2 PASS The signal was not sent to selective processes that were not in the process group. 62 kiltcs02 1 FAIL The signal was not sent to all processes in the process group. 63 kiltcs02 2 FAIL The signal was sent to a process that was not in the process group. 67 kiltcs02 # BROK Setting to catch unexpected signal %d failed. Errno: %d, Error message %s. 68 kiltcs02 # BROK Setting to ignore signal %d failed. Errno: %d, Error message %s. 71 kiltcs02 0 WARN Unexpected signal [all...] |
/third_party/python/Lib/multiprocessing/ |
H A D | forkserver.py | 4 import signal namespace 189 # Dummy signal handler, doesn't do anything 194 signal.SIGCHLD: sigchld_handler, 196 signal.SIGINT: signal.SIG_IGN, 198 old_handlers = {sig: signal.signal(sig, val) 201 # calling os.write() in the Python signal handler is racy 202 signal.set_wakeup_fd(sig_w) 300 # close unnecessary stuff and reset signal handler [all...] |
/third_party/libuv/test/ |
H A D | test-eintr-handling.c | 67 uv_signal_t signal; in TEST_IMPL() local 73 ASSERT_OK(uv_signal_init(loop, &signal)); in TEST_IMPL() 74 ASSERT_OK(uv_signal_start(&signal, sig_func, SIGUSR1)); in TEST_IMPL() 88 uv_close((uv_handle_t*) &signal, NULL); in TEST_IMPL()
|
/third_party/musl/libc-test/src/functionalext/sigchain/ |
H A D | sigchain_intercept_signal.c | 17 #include <signal.h> 26 * @brief the signal handler 36 * @tc.desc : The signal is not registered with the special handler, test the influence of sigchain on signal 41 signal(SIGHUP, signal_handler1); in sigchain_intercept_signal_001() 57 * @brief the signal handler 67 * @tc.desc : The signal is registered with the special handler, test the influence of sigchain on signal 80 signal(SIGUSR2, signal_handler2); in sigchain_intercept_signal_002() 102 * @brief the signal handle [all...] |
/third_party/skia/src/core/ |
H A D | SkSemaphore.cpp | 20 void signal(int n) { while (n --> 0) { dispatch_semaphore_signal(fSemaphore); } } in signal() function 35 void signal(int n) { in signal() function 50 void signal(int n) { while (n --> 0) { sem_post(&fSemaphore); } } in signal() function 66 fOSSemaphore->signal(n); in osSignal()
|
/third_party/node/deps/openssl/openssl/providers/implementations/rands/seeding/ |
H A D | rand_vms.c | 395 lib$signal(status); in data_collect_method() 400 lib$signal(status); in data_collect_method() 405 lib$signal(status); in data_collect_method() 410 lib$signal(status); in data_collect_method() 418 lib$signal(status); in data_collect_method() 423 lib$signal(status); in data_collect_method() 427 lib$signal(status); in data_collect_method() 431 lib$signal(iosb.iosb$l_getxxi_status); in data_collect_method() 436 lib$signal(status); in data_collect_method() 440 lib$signal(statu in data_collect_method() [all...] |
/third_party/openssl/providers/implementations/rands/seeding/ |
H A D | rand_vms.c | 395 lib$signal(status); in data_collect_method() 400 lib$signal(status); in data_collect_method() 405 lib$signal(status); in data_collect_method() 410 lib$signal(status); in data_collect_method() 418 lib$signal(status); in data_collect_method() 423 lib$signal(status); in data_collect_method() 427 lib$signal(status); in data_collect_method() 431 lib$signal(iosb.iosb$l_getxxi_status); in data_collect_method() 436 lib$signal(status); in data_collect_method() 440 lib$signal(statu in data_collect_method() [all...] |
/third_party/curl/tests/server/ |
H A D | sockfilt.c | 59 * as simple as possible, due to this the only signal handling mechanisms used 67 * possible. This will be achieved with a single signal handler 70 * The 'exit_signal_handler' upon the first SIGINT or SIGTERM received signal 72 * 'exit_signal' the signal that triggered this change. 84 * must be coded as if no signal was being ignored or handled at all. Enjoy 88 #include <signal.h> 438 HANDLE signal; /* internal event to signal handle trigger */ member 449 HANDLE signal, handle, handles[2]; in select_ws_wait_thread() local 460 signal in select_ws_wait_thread() 587 select_ws_wait(HANDLE handle, HANDLE signal, HANDLE abort) select_ws_wait() argument 624 HANDLE signal; /* internal thread signal (indexed by nth) */ global() member 631 HANDLE abort, signal, handle, *handles; select_ws() local [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/signal/ |
H A D | 1-1.c | 9 signal shall occur if the value of the func parameter is SIG_DFL. 12 "myhandler" for SIGCHLD. Then another call to signal() is made about 20 #include <signal.h> 35 if (signal(SIGCHLD, myhandler) == SIG_ERR) { in main() 36 perror("Unexpected error while using signal()"); in main() 40 if (signal(SIGCHLD, SIG_DFL) != myhandler) { in main() 41 perror("Unexpected error while using signal()"); in main()
|
H A D | 2-1.c | 8 This program tests the assertion that the signal shall be ignored 12 "myhandler" for SIGCHLD. Then another call to signal() is made about 19 #include <signal.h> 34 if (signal(SIGCHLD, myhandler) == SIG_ERR) { in main() 35 perror("Unexpected error while using signal()"); in main() 39 if (signal(SIGCHLD, SIG_IGN) != myhandler) { in main() 40 perror("Unexpected error while using signal()"); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/process/ |
H A D | system.c | 17 #include <signal.h> 29 sighandler_t handler = signal(SIGCHLD, SIG_DFL); in system_0100() 36 signal(SIGCHLD, handler); in system_0100()
|
/third_party/musl/libc-test/src/functionalext/supplement/signal/signal_gtest/ |
H A D | signal_sysv_signal_test.cpp | 2 #include <signal.h> 13 * @tc.desc: ensures that the __sysv_signal function is capable of setting and restoring signal handlers correctly 14 * for the SIGINT signal. 19 sighandler_t oldHandler = signal(SIGINT, SignalHandler); in HWTEST_F() 22 sighandler_t restoredHandler = signal(SIGINT, oldHandler); in HWTEST_F()
|
/third_party/python/Python/ |
H A D | emscripten_signal.c | 1 // To enable signal handling, the embedder should: 21 console.warn("Error occurred while trying to read signal buffer:", e); 35 int signal = _Py_CheckEmscriptenSignals_Helper(); in _Py_CheckEmscriptenSignals() local 36 if (signal) { in _Py_CheckEmscriptenSignals() 37 PyErr_SetInterruptEx(signal); in _Py_CheckEmscriptenSignals()
|