Home
last modified time | relevance | path

Searched refs:sigset (Results 1 – 25 of 61) sorted by relevance

123

/external/strace/
Dprint_aio_sigset.c44 strace_aio_sigset sigset; in MPERS_PRINTER_DECL() local
46 if (!umove_or_printaddr(tcp, addr, &sigset)) { in MPERS_PRINTER_DECL()
48 print_sigset_addr_len(tcp, (uintptr_t) sigset.sigmask, in MPERS_PRINTER_DECL()
49 sigset.sigsetsize); in MPERS_PRINTER_DECL()
50 PRINT_FIELD_U(", ", sigset, sigsetsize); in MPERS_PRINTER_DECL()
/external/crosvm/sys_util/src/
Dsignalfd.rs77 let sigset = signal::create_sigset(&[signal]).map_err(Error::CreateSigset)?; in new() localVariable
80 let fd = unsafe { signalfd(-1, &sigset, SFD_CLOEXEC | SFD_NONBLOCK) }; in new()
181 let mut sigset: sigset_t = mem::zeroed(); in drop() localVariable
182 pthread_sigmask(0, null(), &mut sigset as *mut sigset_t); in drop()
183 assert_eq!(sigismember(&sigset, sigid), 1); in drop()
190 let mut sigset: sigset_t = mem::zeroed(); in drop() localVariable
191 pthread_sigmask(0, null(), &mut sigset as *mut sigset_t); in drop()
192 assert_eq!(sigismember(&sigset, sigid), 0); in drop()
Dsignal.rs128 let mut sigset: sigset_t = unsafe { mem::zeroed() }; in create_sigset() localVariable
131 let ret = unsafe { sigemptyset(&mut sigset) }; in create_sigset()
138 let ret = unsafe { sigaddset(&mut sigset, *signal) }; in create_sigset()
144 Ok(sigset) in create_sigset()
174 let sigset = create_sigset(&[num]).map_err(Error::CreateSigset)?; in block_signal() localVariable
179 let ret = pthread_sigmask(SIG_BLOCK, &sigset, &mut old_sigset as *mut sigset_t); in block_signal()
195 let sigset = create_sigset(&[num]).map_err(Error::CreateSigset)?; in unblock_signal() localVariable
198 let ret = unsafe { pthread_sigmask(SIG_UNBLOCK, &sigset, null_mut()) }; in unblock_signal()
207 let sigset = create_sigset(&[num]).map_err(Error::CreateSigset)?; in clear_signal() localVariable
220 let ret = sigtimedwait(&sigset, &mut siginfo, &ts); in clear_signal()
/external/ltp/testcases/kernel/syscalls/sigpending/
Dsigpending02.c36 static int tested_sigpending(sigset_t *sigset) in tested_sigpending() argument
43 return sigpending(sigset); in tested_sigpending()
47 return tst_syscall(__NR_sigpending, sigset); in tested_sigpending()
49 return tst_syscall(__NR_rt_sigpending, sigset, SIGSETSIZE); in tested_sigpending()
137 sigset_t *sigset = tst_get_bad_addr(NULL); in test_efault_on_invalid_sigset() local
139 TEST(tested_sigpending(sigset)); in test_efault_on_invalid_sigset()
/external/python/cpython3/Modules/clinic/
Dsignalmodule.c.h451 signal_sigwait_impl(PyObject *module, sigset_t sigset);
457 sigset_t sigset; in signal_sigwait() local
459 if (!_Py_Sigset_Converter(arg, &sigset)) { in signal_sigwait()
462 return_value = signal_sigwait_impl(module, sigset); in signal_sigwait()
509 signal_sigwaitinfo_impl(PyObject *module, sigset_t sigset);
515 sigset_t sigset; in signal_sigwaitinfo() local
517 if (!_Py_Sigset_Converter(arg, &sigset)) { in signal_sigwaitinfo()
520 return_value = signal_sigwaitinfo_impl(module, sigset); in signal_sigwaitinfo()
542 signal_sigtimedwait_impl(PyObject *module, sigset_t sigset,
549 sigset_t sigset; in signal_sigtimedwait() local
[all …]
/external/autotest/client/tests/signaltest/src/
Dsignaltest.c96 sigset_t sigset; in signalthread() local
121 sigemptyset(&sigset); in signalthread()
122 sigaddset(&sigset, par->signal); in signalthread()
123 sigprocmask(SIG_BLOCK, &sigset, NULL); in signalthread()
145 if (sigwait(&sigset, &sigs) < 0) in signalthread()
315 sigset_t sigset; in main() local
330 sigemptyset(&sigset); in main()
331 sigaddset(&sigset, signum); in main()
332 sigprocmask (SIG_BLOCK, &sigset, NULL); in main()
/external/compiler-rt/test/tsan/
Dsignal_recursive.cc38 sigset_t sigset; in SuspendHandler() local
39 sigemptyset(&sigset); in SuspendHandler()
40 pthread_sigmask(SIG_SETMASK, &sigset, 0); in SuspendHandler()
/external/autotest/client/tests/cyclictest/src/
Dcyclictest.c202 sigset_t sigset; in timerthread() local
231 sigemptyset(&sigset); in timerthread()
232 sigaddset(&sigset, par->signal); in timerthread()
233 sigprocmask(SIG_BLOCK, &sigset, NULL); in timerthread()
287 if (sigwait(&sigset, &sigs) < 0) in timerthread()
521 sigset_t sigset; in main() local
542 sigemptyset(&sigset); in main()
543 sigaddset(&sigset, signum); in main()
544 sigprocmask (SIG_BLOCK, &sigset, NULL); in main()
/external/python/cpython3/Lib/
Dsignal.py73 def sigwait(sigset): argument
74 retsig = _signal.sigwait(sigset)
/external/ltp/testcases/kernel/syscalls/kill/
Dkill12.c89 if (sigset(SIGCHLD, chsig) == SIG_ERR) { in main()
201 sigset(sig, SIG_IGN); /* set to ignore signal */ in do_child()
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/signal_h/
D45-1-buildonly.c14 dummyvar = sigset; in dummyfcn()
/external/ltp/testcases/kernel/mem/vmtests/
Ddata_space.c137 if (sigset(SIGTERM, (void (*)())term) == SIG_ERR) {
140 if (sigset(SIGUSR1, (void (*)())chld) == SIG_ERR) {
466 if (sigset(SIGUSR1, (void (*)())chld) == SIG_ERR) { in chld()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigset/
D10-1.c22 if (sigset(SIGKILL, SIG_IGN) == SIG_ERR) { in main()
D3-1.c33 if (sigset(SIGCHLD, myhandler) == SIG_ERR) { in main()
Dcoverage.txt1 This file defines the coverage for the sigset() function testing.
D8-1.c32 if (sigset(SIGCHLD, SIG_HOLD) != SIG_HOLD) { in main()
D9-1.c36 if (sigset(SIGUSR1, SIG_DFL) != myhandler) { in main()
D4-1.c33 if (sigset(SIGCHLD, myhandler) == SIG_ERR) { in main()
D1-1.c47 if (sigset(SIGCHLD, SIG_DFL) != myhandler) { in main()
D2-1.c45 if (sigset(SIGUSR1, SIG_IGN) != myhandler) { in main()
D6-1.c50 if (sigset(SIGCHLD, SIG_HOLD) == SIG_ERR) { in main()
D7-1.c58 if (sigset(SIGCHLD, SIG_HOLD) == SIG_ERR) { in main()
D5-1.c67 if (sigset(SIGCHLD, myhandler) == SIG_ERR) { in main()
/external/tcpdump/
Dsetsignal.c84 return (sigset(sig, func)); in setsignal()
/external/python/cpython3/Modules/
Dsignalmodule.c990 signal_sigwait_impl(PyObject *module, sigset_t sigset) in signal_sigwait_impl() argument
996 err = sigwait(&sigset, &signum); in signal_sigwait_impl()
1127 signal_sigwaitinfo_impl(PyObject *module, sigset_t sigset) in signal_sigwaitinfo_impl() argument
1136 err = sigwaitinfo(&sigset, &si); in signal_sigwaitinfo_impl()
1163 signal_sigtimedwait_impl(PyObject *module, sigset_t sigset, in signal_sigtimedwait_impl() argument
1188 res = sigtimedwait(&sigset, &si, &ts); in signal_sigtimedwait_impl()

123