Home
last modified time | relevance | path

Searched refs:sigmask (Results 1 – 25 of 30) sorted by relevance

12

/external/squashfs-tools/squashfs-tools/
Drestore.c61 sigset_t sigmask, old_mask; in restore_thrd() local
64 sigemptyset(&sigmask); in restore_thrd()
65 sigaddset(&sigmask, SIGINT); in restore_thrd()
66 sigaddset(&sigmask, SIGTERM); in restore_thrd()
67 sigaddset(&sigmask, SIGUSR1); in restore_thrd()
68 pthread_sigmask(SIG_BLOCK, &sigmask, &old_mask); in restore_thrd()
71 sigwait(&sigmask, &sig); in restore_thrd()
Dunsquashfs_info.c99 sigset_t sigmask; in info_thrd() local
102 sigemptyset(&sigmask); in info_thrd()
103 sigaddset(&sigmask, SIGQUIT); in info_thrd()
104 sigaddset(&sigmask, SIGHUP); in info_thrd()
105 sigaddset(&sigmask, SIGALRM); in info_thrd()
108 err = sigwait(&sigmask, &sig); in info_thrd()
Dinfo.c136 sigset_t sigmask; in info_thrd() local
139 sigemptyset(&sigmask); in info_thrd()
140 sigaddset(&sigmask, SIGQUIT); in info_thrd()
141 sigaddset(&sigmask, SIGHUP); in info_thrd()
142 sigaddset(&sigmask, SIGALRM); in info_thrd()
145 err = sigwait(&sigmask, &sig); in info_thrd()
Dprocess_fragments.c253 sigset_t sigmask, old_mask; in frag_thrd() local
257 sigemptyset(&sigmask); in frag_thrd()
258 sigaddset(&sigmask, SIGINT); in frag_thrd()
259 sigaddset(&sigmask, SIGTERM); in frag_thrd()
260 sigaddset(&sigmask, SIGUSR1); in frag_thrd()
261 pthread_sigmask(SIG_BLOCK, &sigmask, &old_mask); in frag_thrd()
Dunsquashfs.c2176 sigset_t sigmask, old_mask; in initialise_threads() local
2179 sigemptyset(&sigmask); in initialise_threads()
2180 sigaddset(&sigmask, SIGQUIT); in initialise_threads()
2181 sigaddset(&sigmask, SIGHUP); in initialise_threads()
2182 sigaddset(&sigmask, SIGALRM); in initialise_threads()
2183 if(pthread_sigmask(SIG_BLOCK, &sigmask, NULL) == -1) in initialise_threads()
2191 sigemptyset(&sigmask); in initialise_threads()
2192 sigaddset(&sigmask, SIGINT); in initialise_threads()
2193 sigaddset(&sigmask, SIGTERM); in initialise_threads()
2194 if(pthread_sigmask(SIG_BLOCK, &sigmask, &old_mask) == -1) in initialise_threads()
Dmksquashfs.c3345 sigset_t sigmask; in dir_scan() local
3348 sigemptyset(&sigmask); in dir_scan()
3349 sigaddset(&sigmask, SIGINT); in dir_scan()
3350 sigaddset(&sigmask, SIGTERM); in dir_scan()
3351 sigaddset(&sigmask, SIGUSR1); in dir_scan()
3352 if(pthread_sigmask(SIG_BLOCK, &sigmask, NULL) == -1) in dir_scan()
4311 sigset_t sigmask, old_mask; in initialise_threads() local
4368 sigemptyset(&sigmask); in initialise_threads()
4369 sigaddset(&sigmask, SIGQUIT); in initialise_threads()
4370 sigaddset(&sigmask, SIGHUP); in initialise_threads()
[all …]
/external/dhcpcd-6.8.2/compat/
Dpollts.c43 const struct timespec *__restrict ts, const sigset_t *__restrict sigmask) in pollts() argument
56 if (sigmask && sigprocmask(SIG_SETMASK, sigmask, &oldset) == -1) in pollts()
59 if (sigmask && sigprocmask(SIG_SETMASK, &oldset, NULL) == -1) in pollts()
Dposix_spawn.c144 posix_spawnattr_setsigmask(posix_spawnattr_t *attr, const sigset_t *sigmask) in posix_spawnattr_setsigmask() argument
147 attr->posix_attr_sigmask = *sigmask; in posix_spawnattr_setsigmask()
152 posix_spawnattr_setsigdefault(posix_spawnattr_t *attr, const sigset_t *sigmask) in posix_spawnattr_setsigdefault() argument
155 attr->posix_attr_sigdefault = *sigmask; in posix_spawnattr_setsigdefault()
Dpselect.c40 const struct timespec *__restrict ts, const sigset_t *__restrict sigmask) in pollts() argument
56 r = pselect(maxfd + 1, &read_fds, NULL, NULL, ts, sigmask); in pollts()
/external/linux-kselftest/tools/testing/selftests/x86/
Dtest_syscall_vdso.c177 sigset_t sigmask; variable
194 sigemptyset(&sigmask); in prep_args()
195 sigaddset(&sigmask, SIGINT); in prep_args()
196 sigaddset(&sigmask, SIGUSR2); in prep_args()
197 sigaddset(&sigmask, SIGRTMAX); in prep_args()
198 sigmask_desc.sp = &sigmask; in prep_args()
/external/openssh/openbsd-compat/
Dsigact.c107 *mask &= ~sigmask(sig); in sigdelset()
118 *mask |= sigmask(sig); in sigaddset()
129 return (*mask & sigmask(sig)) != 0; in sigismember()
/external/bison/lib/
Dspawnattr_setsigmask.c27 const sigset_t *sigmask) in posix_spawnattr_setsigmask() argument
30 memcpy (&attr->_ss, sigmask, sizeof (sigset_t)); in posix_spawnattr_setsigmask()
/external/ltp/testcases/kernel/syscalls/epoll_pwait/
Depoll_pwait.h29 int timeout, const sigset_t *sigmask) in epoll_pwait() argument
32 timeout, sigmask, _NSIG / 8); in epoll_pwait()
Depoll_pwait01.c153 static void do_test(sigset_t *sigmask) in do_test() argument
164 TEST(epoll_pwait(epfd, &epevs, 1, 100, sigmask)); in do_test()
166 if (sigmask != NULL) in do_test()
/external/ltp/testcases/kernel/syscalls/ppoll/
Dppoll01.c47 sigset_t *sigmask; /* sigmask ppoll parameter */ member
108 .sigmask = &sigmask_sigint,
146 .sigmask = &sigmask_empty,
247 tc->sigmask, SIGSETSIZE); in do_test()
/external/valgrind/none/tests/
DMakefile.am112 exec-sigmask.vgtest exec-sigmask.stdout.exp \
113 exec-sigmask.stdout.exp2 exec-sigmask.stdout.exp3 \
114 exec-sigmask.stdout.exp-solaris exec-sigmask.stderr.exp \
206 discard exec-sigmask execve faultstatus fcntl_setown \
Dexec-sigmask.vgtest1 prog: exec-sigmask
/external/e2fsprogs/lib/ss/
Dss_internal.h102 #define sigmask(x) (1L<<(x)-1) macro
/external/valgrind/memcheck/
Dmc_leakcheck.c704 vki_sigset_t sigmask; in leak_search_fault_catcher() local
716 VG_(sigprocmask)(VKI_SIG_SETMASK, NULL, &sigmask); in leak_search_fault_catcher()
718 VG_(sigdelset)(&sigmask, sigNo); in leak_search_fault_catcher()
719 VG_(sigprocmask)(VKI_SIG_SETMASK, &sigmask, NULL); in leak_search_fault_catcher()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h1221 sigmask, sigsetsize) \ argument
1224 (long)(sigmask), (long)(sigsetsize))
1226 timeout, sigmask, sigsetsize) \ argument
1229 (long)(sigmask), (long)(sigsetsize))
2697 long sigmask, long sigsetsize);
2700 long sigmask, long sigsetsize);
/external/compiler-rt/lib/tsan/rtl/
Dtsan_interceptors.cc1745 void *sigmask) { in TSAN_INTERCEPTOR() argument
1746 SCOPED_TSAN_INTERCEPTOR(epoll_pwait, epfd, ev, cnt, timeout, sigmask); in TSAN_INTERCEPTOR()
1749 int res = BLOCK_REAL(epoll_pwait)(epfd, ev, cnt, timeout, sigmask); in TSAN_INTERCEPTOR()
/external/compiler-rt/lib/msan/
Dmsan_interceptors.cc895 int timeout, void *sigmask) { in INTERCEPTOR() argument
897 int res = REAL(epoll_pwait)(epfd, events, maxevents, timeout, sigmask); in INTERCEPTOR()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc1955 const kernel_sigset_t *sigmask, long sigsetsize) {
1956 if (sigmask) PRE_READ(sigmask, sigsetsize);
1960 long timeout, const void *sigmask, long sigsetsize) {
Dsanitizer_common_interceptors.inc3337 void *timeout_ts, __sanitizer_sigset_t *sigmask) {
3339 COMMON_INTERCEPTOR_ENTER(ctx, ppoll, fds, nfds, timeout_ts, sigmask);
3343 // FIXME: read sigmask when all of sigemptyset, etc are intercepted.
3345 COMMON_INTERCEPTOR_BLOCK_REAL(ppoll)(fds, nfds, timeout_ts, sigmask);
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-linux.c1304 struct vki_timespec *, tsp, vki_sigset_t *, sigmask, in PRE()
1409 int, maxevents, int, timeout, vki_sigset_t *, sigmask, in PRE()
3261 int, fd, vki_sigset_t *, sigmask, vki_size_t, sigsetsize); in PRE()
3281 int, fd, vki_sigset_t *, sigmask, vki_size_t, sigsetsize, int, flags); in PRE()

12