Home
last modified time | relevance | path

Searched refs:sigs (Results 1 – 25 of 51) sorted by relevance

123

/third_party/ltp/libs/libltpsigwait/
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, &si, NULL)); in test_unmasked_matching()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/
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()
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/sigrelse/
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/open_posix_testsuite/conformance/interfaces/sigignore/
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/
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/
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/
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/musl/src/linux/
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()
Depoll.c25 int epoll_pwait(int fd, struct epoll_event *ev, int cnt, int to, const sigset_t *sigs) in epoll_pwait() argument
27 int r = __syscall_cp(SYS_epoll_pwait, fd, ev, cnt, to, sigs, _NSIG/8); in epoll_pwait()
29 if (r==-ENOSYS && !sigs) r = __syscall_cp(SYS_epoll_wait, fd, ev, cnt, to); in epoll_pwait()
/third_party/ltp/lib/
Dtst_safe_macros.c210 sigset_t *sigs, int signo) in safe_sigaddset() argument
214 rval = sigaddset(sigs, signo); in safe_sigaddset()
230 sigset_t *sigs, int signo) in safe_sigdelset() argument
234 rval = sigdelset(sigs, signo); in safe_sigdelset()
250 sigset_t *sigs) in safe_sigemptyset() argument
254 rval = sigemptyset(sigs); in safe_sigemptyset()
267 sigset_t *sigs) in safe_sigfillset() argument
271 rval = sigfillset(sigs); in safe_sigfillset()
/third_party/rust/crates/signal-hook/signal-hook-mio/tests/
Dmio_0_7.rs72 let sigs: Vec<c_int> = signals.pending().collect(); in mio_multiple_signals() localVariable
73 assert_eq!(2, sigs.len()); in mio_multiple_signals()
74 assert!(sigs.contains(&SIGUSR1)); in mio_multiple_signals()
75 assert!(sigs.contains(&SIGUSR2)); in mio_multiple_signals()
Dmio_0_8.rs72 let sigs: Vec<c_int> = signals.pending().collect(); in mio_multiple_signals() localVariable
73 assert_eq!(2, sigs.len()); in mio_multiple_signals()
74 assert!(sigs.contains(&SIGUSR1)); in mio_multiple_signals()
75 assert!(sigs.contains(&SIGUSR2)); in mio_multiple_signals()
Dmio_0_6.rs67 let sigs: Vec<c_int> = signals.pending().collect(); in mio_multiple_signals() localVariable
68 assert_eq!(2, sigs.len()); in mio_multiple_signals()
69 assert!(sigs.contains(&SIGUSR1)); in mio_multiple_signals()
70 assert!(sigs.contains(&SIGUSR2)); in mio_multiple_signals()
/third_party/ltp/include/
Dtst_safe_macros.h477 sigset_t *sigs, int signo);
478 #define SAFE_SIGADDSET(sigs, signo) \ argument
479 safe_sigaddset(__FILE__, __LINE__, (sigs), (signo))
482 sigset_t *sigs, int signo);
483 #define SAFE_SIGDELSET(sigs, signo) \ argument
484 safe_sigdelset(__FILE__, __LINE__, (sigs), (signo))
487 sigset_t *sigs);
488 #define SAFE_SIGEMPTYSET(sigs) \ argument
489 safe_sigemptyset(__FILE__, __LINE__, (sigs))
492 sigset_t *sigs);
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
D16-1.c51 static struct sig_info sigs[] = { variable
90 struct sig_info *s = &sigs[0]; in lookup()
211 struct sig_info *s = &sigs[0]; in main()
/third_party/toybox/toys/other/
Dreboot.c34 sigs[] = {SIGTERM, SIGUSR1, SIGUSR2}, idx; local
45 else toys.exitval = kill(1, sigs[idx]);
/third_party/rust/crates/signal-hook/examples/
Dprint.rs18 let mut sigs = Signals::new(SIGNALS)?; in main() localVariable
19 for signal in &mut sigs { in main()
/third_party/ltp/testcases/kernel/syscalls/signal/
Dsignal02.c70 int sigs[] = { _NSIG + 1, SIGKILL, SIGSTOP }; variable
93 Tret = signal(sigs[i], SIG_IGN); in main()
/third_party/openssl/test/recipes/
D70-test_sslsigalgs.t429 my $sigs;
432 $sigs = pack "C26", 0x00, 0x18,
440 $sigs = pack "C10", 0x00, 0x08,
444 $sigs = pack "C4", 0x00, 0x02,
448 $message->set_extension(TLSProxy::Message::EXT_SIG_ALGS_CERT, $sigs);
D70-test_renegotiation.t143 my $sigs = pack "C10", 0x00, 0x08,
146 $message->set_extension(TLSProxy::Message::EXT_SIG_ALGS_CERT, $sigs);
/third_party/python/Lib/test/
Dtest_signal.py1192 sigs = []
1203 sigs.append(signum)
1219 while len(sigs) < expected_sigs and time.monotonic() < deadline:
1224 while len(sigs) < expected_sigs and time.monotonic() < deadline:
1229 self.assertEqual(len(sigs), N, "Some signals were lost")
1238 sigs = []
1241 sigs.append(signum)
1257 while len(sigs) < expected_sigs and time.monotonic() < deadline:
1262 self.assertEqual(len(sigs), N, "Some signals were lost")
/third_party/nghttp2/src/
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/toybox/porting/liteos_a/toys/other/
Dreboot.c23 sigs[] = {SIGTERM, SIGUSR1, SIGUSR2}, idx; in reboot_main() local
/third_party/skia/
Dgo.mod64 sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e // indirect
65 sigs.k8s.io/structured-merge-diff/v3 v3.0.0 // indirect

123