Home
last modified time | relevance | path

Searched refs:sigs (Results 1 - 25 of 36) sorted by relevance

12

/third_party/ltp/libs/libltpsigwait/
H A Dsigwait.c15 sigset_t sigs; in test_empty_set() local
19 SAFE_SIGEMPTYSET(&sigs); in test_empty_set()
24 TEST(sigwaitinfo(&sigs, &si, NULL)); in test_empty_set()
40 sigset_t sigs; in test_timeout() local
49 SAFE_SIGEMPTYSET(&sigs); in test_timeout()
54 TEST(sigwaitinfo(&sigs, &si, tst_ts_get(&ts))); in test_timeout()
74 sigset_t sigs; in test_unmasked_matching() local
78 SAFE_SIGEMPTYSET(&sigs); in test_unmasked_matching()
79 SAFE_SIGADDSET(&sigs, signo); in test_unmasked_matching()
84 TEST(sigwaitinfo(&sigs, in test_unmasked_matching()
102 sigset_t sigs; test_unmasked_matching_noinfo() local
124 sigset_t sigs, oldmask; test_masked_matching() local
172 sigset_t sigs, oldmask; test_masked_matching_rt() local
238 sigset_t sigs, oldmask; test_masked_matching_noinfo() local
280 sigset_t sigs, oldmask; test_bad_address() local
361 sigset_t sigs; test_bad_address3() local
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/
H A D1-3.c23 static const int sigs[] = { variable
42 for (i = 0; i < sizeof(sigs)/sizeof(int); i++) { in main()
43 if (sigaddset(&signalset, sigs[i]) == 0) { in main()
44 if (sigismember(&signalset, sigs[i]) != 1) { in main()
46 printf("Signal %d wasn't added \n", sigs[i]); in main()
50 printf("Failed to add sinal %d\n", sigs[i]); in main()
H A D4-1.c23 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
36 for (i = 0; i < ARRAY_SIZE(sigs); i++) { in main()
37 ret = sigaddset(&signalset, sigs[i]); in main()
42 sigs[i], ret, errno); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigignore/
H A D5-1.c21 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
23 #define NUMSIGNALS (sizeof(sigs) / sizeof(sigs[0]))
30 ret = sigignore(sigs[i]); in main()
35 sigs[i], ret, errno); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sighold/
H A D3-1.c22 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
24 #define NUMSIGNALS (sizeof(sigs) / sizeof(sigs[0]))
31 ret = sighold(sigs[i]); in main()
36 sigs[i], ret, errno); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigdelset/
H A D4-1.c25 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
27 #define NUMSIGNALS (sizeof(sigs) / sizeof(sigs[0]))
40 ret = sigdelset(&signalset, sigs[i]); in main()
44 sigs[i], ret, errno); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigismember/
H A D5-1.c24 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
26 #define NUMSIGNALS (sizeof(sigs) / sizeof(sigs[0]))
39 ret = sigismember(&signalset, sigs[i]); in main()
44 sigs[i], ret, errno); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/
H A D3-1.c25 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
27 #define NUMSIGNALS (sizeof(sigs) / sizeof(sigs[0]))
34 ret = sigrelse(sigs[i]); in main()
39 sigs[i], ret, errno); in main()
/third_party/ltp/testcases/kernel/syscalls/signal/
H A Dsignal02.c14 static int sigs[] = { _NSIG + 1, SIGKILL, SIGSTOP }; variable
18 TST_EXP_FAIL2((long)signal(sigs[n], SIG_IGN), EINVAL); in do_test()
22 .tcnt = ARRAY_SIZE(sigs),
/third_party/musl/src/linux/
H A Dsignalfd.c7 int signalfd(int fd, const sigset_t *sigs, int flags) in signalfd() argument
9 int ret = __syscall(SYS_signalfd4, fd, sigs, _NSIG/8, flags); in signalfd()
12 ret = __syscall(SYS_signalfd, fd, sigs, _NSIG/8); in signalfd()
H A Depoll.c32 int epoll_pwait(int fd, struct epoll_event *ev, int cnt, int to, const sigset_t *sigs) in epoll_pwait() argument
34 int r = __syscall_cp(SYS_epoll_pwait, fd, ev, cnt, to, sigs, _NSIG/8); in epoll_pwait()
36 if (r==-ENOSYS && !sigs) r = __syscall_cp(SYS_epoll_wait, fd, ev, cnt, to); in epoll_pwait()
/third_party/node/deps/v8/src/trap-handler/
H A Dhandler-inside-posix.cc72 sigset_t sigs; in UnmaskOobSignalScope() local
75 sigemptyset(&sigs); in UnmaskOobSignalScope()
76 sigaddset(&sigs, kOobSignal); in UnmaskOobSignalScope()
77 pthread_sigmask(SIG_UNBLOCK, &sigs, &old_mask_); in UnmaskOobSignalScope()
/third_party/ltp/lib/
H A Dtst_safe_macros.c249 sigset_t *sigs, int signo) in safe_sigaddset()
253 rval = sigaddset(sigs, signo); in safe_sigaddset()
269 sigset_t *sigs, int signo) in safe_sigdelset()
273 rval = sigdelset(sigs, signo); in safe_sigdelset()
289 sigset_t *sigs) in safe_sigemptyset()
293 rval = sigemptyset(sigs); in safe_sigemptyset()
306 sigset_t *sigs) in safe_sigfillset()
310 rval = sigfillset(sigs); in safe_sigfillset()
248 safe_sigaddset(const char *file, const int lineno, sigset_t *sigs, int signo) safe_sigaddset() argument
268 safe_sigdelset(const char *file, const int lineno, sigset_t *sigs, int signo) safe_sigdelset() argument
288 safe_sigemptyset(const char *file, const int lineno, sigset_t *sigs) safe_sigemptyset() argument
305 safe_sigfillset(const char *file, const int lineno, sigset_t *sigs) safe_sigfillset() argument
/third_party/ltp/include/
H A Dtst_safe_macros.h502 sigset_t *sigs, int signo);
503 #define SAFE_SIGADDSET(sigs, signo) \
504 safe_sigaddset(__FILE__, __LINE__, (sigs), (signo))
507 sigset_t *sigs, int signo);
508 #define SAFE_SIGDELSET(sigs, signo) \
509 safe_sigdelset(__FILE__, __LINE__, (sigs), (signo))
512 sigset_t *sigs);
513 #define SAFE_SIGEMPTYSET(sigs) \
514 safe_sigemptyset(__FILE__, __LINE__, (sigs))
517 sigset_t *sigs);
[all...]
/third_party/toybox/toys/other/
H A Dreboot.c34 sigs[] = {SIGTERM, SIGUSR1, SIGUSR2}, idx; in reboot_main() local
45 else toys.exitval = kill(1, sigs[idx]); in reboot_main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
H A D16-1.c51 static struct sig_info sigs[] = { variable
81 {-1, NULL, 0} /* add real time sigs? */
90 struct sig_info *s = &sigs[0]; in lookup()
211 struct sig_info *s = &sigs[0]; in main()
/third_party/nghttp2/src/
H A Dshrpx_signal.cc97 int signal_set_handler(void (*handler)(int), Signals &&sigs) { in signal_set_handler() argument
102 for (auto sig : sigs) { in signal_set_handler()
/third_party/python/Lib/test/
H A Dtest_signal.py1255 sigs = []
1266 sigs.append(signum)
1282 while len(sigs) < expected_sigs and time.monotonic() < deadline:
1287 while len(sigs) < expected_sigs and time.monotonic() < deadline:
1292 self.assertEqual(len(sigs), N, "Some signals were lost")
1301 sigs = []
1304 sigs.append(signum)
1320 while len(sigs) < expected_sigs and time.monotonic() < deadline:
1325 self.assertEqual(len(sigs), N, "Some signals were lost")
/third_party/toybox/porting/liteos_a/toys/other/
H A Dreboot.c23 sigs[] = {SIGTERM, SIGUSR1, SIGUSR2}, idx; in reboot_main() local
/third_party/libwebsockets/lib/event-libs/libuv/
H A Dlibuv.c251 static const int sigs[] = { SIGINT, SIGTERM, SIGSEGV, SIGFPE, SIGHUP }; variable
678 ns = LWS_ARRAY_SIZE(sigs); in elops_destroy_pt_uv()
750 ns = LWS_ARRAY_SIZE(sigs); in elops_init_pt_uv()
763 lws_uv_signal_handler, sigs[n]); in elops_init_pt_uv()
/third_party/mksh/
H A DBuild.sh2448 sigs="ABRT FPE ILL INT SEGV TERM ALRM BUS CHLD CONT HUP KILL PIPE QUIT"
2449 sigs="$sigs STOP TSTP TTIN TTOU USR1 USR2 POLL PROF SYS TRAP URG VTALRM"
2450 sigs="$sigs XCPU XFSZ INFO WINCH EMT IO DIL LOST PWR SAK CLD IOT STKFLT"
2451 sigs="$sigs ABND DCE DUMP IOERR TRACE DANGER THCONT THSTOP RESV UNUSED"
2452 test 1 = $HAVE_CPP_DD && test $NSIG -gt 1 && sigs="$sigs "`vq \
2456 test $NSIG -gt 1 || sigs
[all...]
/third_party/backends/backend/
H A Du12-io.c79 sigset_t sigs; in u12io_IsEscPressed() local
81 sigpending( &sigs ); in u12io_IsEscPressed()
82 if( sigismember( &sigs, SIGUSR1 )) { in u12io_IsEscPressed()
/third_party/skia/third_party/externals/dawn/src/dawn_node/tools/src/cmd/run-cts/
H A Dmain.go86 sigs := make(chan os.Signal, 1)
87 signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
89 sig := <-sigs
/third_party/lzma/CPP/7zip/UI/Common/
H A DOpenArchive.cpp1063 const CObjectVector<CByteBuffer> &sigs = ai.Signatures;
1064 for (k = 0; k < sigs.Size(); k++)
1066 const CByteBuffer &sig = sigs[k];
1070 if (k == sigs.Size())
2364 const CObjectVector<CByteBuffer> &sigs = op.codecs->Formats[i].Signatures;
2365 sum += sigs.Size();
2366 FOR_VECTOR (k, sigs)
/third_party/backends/backend/pixma/
H A Dpixma.c1199 sigset_t sigs; in reader_thread() local
1200 sigemptyset (&sigs); in reader_thread()
1201 sigaddset (&sigs, SIGPIPE); in reader_thread()
1202 pthread_sigmask (SIG_BLOCK, &sigs, NULL); in reader_thread()

Completed in 30 milliseconds

12