Home
last modified time | relevance | path

Searched refs:oldset (Results 1 – 25 of 41) sorted by relevance

12

/external/linux-kselftest/tools/testing/selftests/rseq/
Drseq.c50 static void signal_off_save(sigset_t *oldset) in signal_off_save() argument
56 ret = pthread_sigmask(SIG_BLOCK, &set, oldset); in signal_off_save()
61 static void signal_restore(sigset_t oldset) in signal_restore() argument
65 ret = pthread_sigmask(SIG_SETMASK, &oldset, NULL); in signal_restore()
79 sigset_t oldset; in rseq_register_current_thread() local
83 signal_off_save(&oldset); in rseq_register_current_thread()
100 signal_restore(oldset); in rseq_register_current_thread()
107 sigset_t oldset; in rseq_unregister_current_thread() local
111 signal_off_save(&oldset); in rseq_unregister_current_thread()
125 signal_restore(oldset); in rseq_unregister_current_thread()
/external/ltp/include/lapi/
Dsafe_rt_signal.h33 sigset_t *oldset, size_t sigsetsize) in safe_rt_sigprocmask() argument
37 ret = tst_syscall(__NR_rt_sigprocmask, how, set, oldset, sigsetsize); in safe_rt_sigprocmask()
41 file, lineno, how, set, oldset, sigsetsize); in safe_rt_sigprocmask()
47 #define SAFE_RT_SIGPROCMASK(how, set, oldset, sigsetsize) \ argument
48 safe_rt_sigprocmask(__FILE__, __LINE__, how, set, oldset, sigsetsize)
/external/compiler-rt/lib/esan/
Desan_interceptors.cpp428 __sanitizer_sigset_t *oldset) { in INTERCEPTOR() argument
430 COMMON_INTERCEPTOR_ENTER(ctx, sigprocmask, how, set, oldset); in INTERCEPTOR()
432 if (processSigprocmask(how, set, oldset)) in INTERCEPTOR()
433 res = REAL(sigprocmask)(how, set, oldset); in INTERCEPTOR()
434 if (!res && oldset) in INTERCEPTOR()
435 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, oldset, sizeof(*oldset)); in INTERCEPTOR()
445 __sanitizer_sigset_t *oldset) { in INTERCEPTOR() argument
447 COMMON_INTERCEPTOR_ENTER(ctx, pthread_sigmask, how, set, oldset); in INTERCEPTOR()
449 if (processSigprocmask(how, set, oldset)) in INTERCEPTOR()
450 res = REAL(sigprocmask)(how, set, oldset); in INTERCEPTOR()
[all …]
/external/libxml2/
Dxpointer.c894 xmlNodeSetPtr oldset; in xmlXPtrGetChildNo() local
898 oldset = obj->nodesetval; in xmlXPtrGetChildNo()
899 if ((indx <= 0) || (oldset == NULL) || (oldset->nodeNr != 1)) { in xmlXPtrGetChildNo()
904 cur = xmlXPtrGetNthChild(oldset->nodeTab[0], indx); in xmlXPtrGetChildNo()
910 oldset->nodeTab[0] = cur; in xmlXPtrGetChildNo()
1780 xmlLocationSetPtr oldset = NULL; in xmlXPtrStartPointFunction() local
1805 oldset = (xmlLocationSetPtr) obj->user; in xmlXPtrStartPointFunction()
1806 if (oldset != NULL) { in xmlXPtrStartPointFunction()
1809 for (i = 0; i < oldset->locNr; i++) { in xmlXPtrStartPointFunction()
1810 tmp = oldset->locTab[i]; in xmlXPtrStartPointFunction()
[all …]
/external/llvm-project/libc/src/signal/linux/
Dsigprocmask.cpp18 sigset_t *__restrict oldset) { in LLVM_LIBC_ENTRYPOINT()
19 int ret = __llvm_libc::syscall(SYS_rt_sigprocmask, how, set, oldset, in LLVM_LIBC_ENTRYPOINT()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_platform_linux.cc360 __sanitizer_sigset_t oldset; in cur_thread() local
361 CHECK_EQ(0, internal_sigprocmask(SIG_SETMASK, &emptyset, &oldset)); in cur_thread()
378 CHECK_EQ(0, internal_sigprocmask(SIG_SETMASK, &oldset, nullptr)); in cur_thread()
386 __sanitizer_sigset_t oldset; in cur_thread_finalize() local
387 CHECK_EQ(0, internal_sigprocmask(SIG_SETMASK, &emptyset, &oldset)); in cur_thread_finalize()
393 CHECK_EQ(0, internal_sigprocmask(SIG_SETMASK, &oldset, nullptr)); in cur_thread_finalize()
Dtsan_interceptors.cc92 __sanitizer_sigset_t *oldset);
218 __sanitizer_sigset_t oldset; member
1836 CHECK_EQ(0, pthread_sigmask(SIG_SETMASK, &sctx->emptyset, &sctx->oldset)); in ProcessPendingSignals()
1845 CHECK_EQ(0, pthread_sigmask(SIG_SETMASK, &sctx->oldset, 0)); in ProcessPendingSignals()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl33.c50 static sigset_t newset, oldset; variable
100 if (sigprocmask(SIG_SETMASK, &newset, &oldset) < 0) in setup()
216 if (sigprocmask(SIG_SETMASK, &oldset, NULL) < 0) in cleanup()
Dfcntl31.c68 static sigset_t newset, oldset; variable
151 if (sigprocmask(SIG_SETMASK, &newset, &oldset) < 0) in setup()
382 if (sigprocmask(SIG_SETMASK, &oldset, NULL) < 0) in cleanup()
/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_platform_linux.cpp473 __sanitizer_sigset_t oldset; in cur_thread() local
474 CHECK_EQ(0, internal_sigprocmask(SIG_SETMASK, &emptyset, &oldset)); in cur_thread()
491 CHECK_EQ(0, internal_sigprocmask(SIG_SETMASK, &oldset, nullptr)); in cur_thread()
503 __sanitizer_sigset_t oldset; in cur_thread_finalize() local
504 CHECK_EQ(0, internal_sigprocmask(SIG_SETMASK, &emptyset, &oldset)); in cur_thread_finalize()
510 CHECK_EQ(0, internal_sigprocmask(SIG_SETMASK, &oldset, nullptr)); in cur_thread_finalize()
Dtsan_interceptors_posix.cpp177 __sanitizer_sigset_t oldset; member
1921 __sanitizer_sigset_t *oldset) { in TSAN_INTERCEPTOR() argument
1922 SCOPED_TSAN_INTERCEPTOR(pthread_sigmask, how, set, oldset); in TSAN_INTERCEPTOR()
1923 return REAL(pthread_sigmask)(how, set, oldset); in TSAN_INTERCEPTOR()
1998 int res = REAL(pthread_sigmask)(SIG_SETMASK, &sctx->emptyset, &sctx->oldset); in ProcessPendingSignals()
2008 res = REAL(pthread_sigmask)(SIG_SETMASK, &sctx->oldset, 0); in ProcessPendingSignals()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/translit/
DgenIndexFilters.bat88 my $oldset = $2;
96 if (length($2) < length($oldset)) {
97 $oldset = $2;
/external/llvm-project/libc/src/signal/
Dsigprocmask.h17 sigset_t *__restrict oldset);
/external/libfuse/lib/
Dfuse_loop_mt.c194 sigset_t oldset; in fuse_start_thread() local
212 pthread_sigmask(SIG_BLOCK, &newset, &oldset); in fuse_start_thread()
214 pthread_sigmask(SIG_SETMASK, &oldset, NULL); in fuse_start_thread()
/external/rust/crates/nix/src/sys/
Dsignal.rs697 oldset: Option<*mut libc::sigset_t>) -> Result<()> { in do_pthread_sigmask()
698 if set.is_none() && oldset.is_none() { in do_pthread_sigmask()
707 oldset.unwrap_or(ptr::null_mut()) in do_pthread_sigmask()
731 oldset: Option<&mut SigSet>) -> Result<()> in pthread_sigmask()
733 do_pthread_sigmask(how, set, oldset.map(|os| &mut os.sigset as *mut _ )) in pthread_sigmask()
740 pub fn sigprocmask(how: SigmaskHow, set: Option<&SigSet>, oldset: Option<&mut SigSet>) -> Result<()… in sigprocmask()
741 if set.is_none() && oldset.is_none() { in sigprocmask()
750 oldset.map_or_else(ptr::null_mut::<libc::sigset_t>, in sigprocmask()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_solaris.cpp195 __sanitizer_sigset_t *oldset) { in DECLARE__REAL_AND_INTERNAL() argument
196 return _REAL(sigprocmask)(how, set, oldset); in DECLARE__REAL_AND_INTERNAL()
Dsanitizer_linux.h51 __sanitizer_sigset_t *oldset);
Dsanitizer_netbsd.cpp319 __sanitizer_sigset_t *oldset) { in internal_sigprocmask() argument
321 return _sys___sigprocmask14(how, set, oldset); in internal_sigprocmask()
Dsanitizer_linux.cpp850 __sanitizer_sigset_t *oldset) { in internal_sigprocmask() argument
852 return internal_syscall(SYSCALL(sigprocmask), how, set, oldset); in internal_sigprocmask()
855 __sanitizer_kernel_sigset_t *k_oldset = (__sanitizer_kernel_sigset_t *)oldset; in internal_sigprocmask()
Dsanitizer_mac.cpp227 __sanitizer_sigset_t *oldset) { in internal_sigprocmask() argument
229 return pthread_sigmask(how, set, oldset); in internal_sigprocmask()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux.h36 __sanitizer_sigset_t *oldset);
Dsanitizer_mac.cc180 __sanitizer_sigset_t *oldset) { in internal_sigprocmask() argument
181 return sigprocmask(how, set, oldset); in internal_sigprocmask()
Dsanitizer_linux.cc692 __sanitizer_sigset_t *oldset) { in internal_sigprocmask() argument
694 return internal_syscall(SYSCALL(sigprocmask), how, set, oldset); in internal_sigprocmask()
697 __sanitizer_kernel_sigset_t *k_oldset = (__sanitizer_kernel_sigset_t *)oldset; in internal_sigprocmask()
/external/jemalloc_new/src/
Dbackground_thread.c362 sigset_t oldset;
363 int mask_err = pthread_sigmask(SIG_SETMASK, &set, &oldset);
373 int restore_err = pthread_sigmask(SIG_SETMASK, &oldset, NULL);
/external/rust/crates/libc/src/unix/newlib/
Dmod.rs659 pub fn pthread_sigmask(how: ::c_int, set: *const sigset_t, oldset: *mut sigset_t) -> ::c_int; in pthread_sigmask()

12