Home
last modified time | relevance | path

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

12

/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/mindspore/tests/ut/cpp/utils/
Dsignal_test.cc43 explicit A(signals *sigs) : sigs_(sigs) { in A() argument
60 explicit Ca(signals *sigs) : A(sigs) { printf("conn C:%p\n", this); } in Ca() argument
67 explicit B(signals *sigs) : A(sigs) { printf("conn B:%p\n", this); } in B() argument
85 signals sigs; in TEST_F() local
86 A objA(&sigs); in TEST_F()
87 B objB(&sigs); in TEST_F()
88 Ca objC(&sigs); in TEST_F()
90 sigs.signal.connect(&objA, &A::FuncA); in TEST_F()
91 sigs.signal.connect(&objB, &B::FuncA); in TEST_F()
92 sigs.signal.connect(&objC, &Ca::FuncA); in TEST_F()
[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/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/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/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(SYS_epoll_pwait, fd, ev, cnt, to, sigs, _NSIG/8); in epoll_pwait()
29 if (r==-ENOSYS && !sigs) r = __syscall(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/toybox/toys/other/
Dreboot.c28 sigs[] = {SIGTERM, SIGUSR1, SIGUSR2}, idx; in reboot_main() local
34 else toys.exitval = kill(1, sigs[idx]); in reboot_main()
/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/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/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/openssl/test/recipes/
D70-test_sslsigalgs.t424 my $sigs;
427 $sigs = pack "C26", 0x00, 0x18,
435 $sigs = pack "C10", 0x00, 0x08,
439 $sigs = pack "C4", 0x00, 0x02,
443 $message->set_extension(TLSProxy::Message::EXT_SIG_ALGS_CERT, $sigs);
D70-test_renegotiation.t124 my $sigs = pack "C10", 0x00, 0x08,
127 $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/mindspore/mindspore/ops/composite/
Dbase.py457 for sigs, fn in self.entries:
458 if len(sigs) != len(types):
460 if any(not mstype.issubclass_(type_, sig) for sig, type_ in zip(sigs, types)):
/third_party/toybox/porting/liteos_a/toys/other/
Dreboot.c23 sigs[] = {SIGTERM, SIGUSR1, SIGUSR2}, idx; in reboot_main() local
/third_party/python/Lib/distutils/
DREADME9 https://www.python.org/sigs/distutils-sig/
/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
/third_party/typescript/src/services/
DgoToDefinition.ts178 const sigs = type.getCallSignatures(); constant
179 if (sigs.length === 1) return checker.getReturnTypeOfSignature(first(sigs));

12