Home
last modified time | relevance | path

Searched refs:oldact (Results 1 – 25 of 27) sorted by relevance

12

/external/compiler-rt/test/msan/Linux/
Dsyscalls_sigaction.cc19 my_kernel_sigaction act = {}, oldact = {}; in main() local
23 __sanitizer_syscall_pre_rt_sigaction(SIGUSR1, &act, &oldact, 20 * 8); in main()
26 __sanitizer_syscall_pre_rt_sigaction(SIGUSR1, &act, &oldact, 20 * 8); in main()
29 __sanitizer_syscall_pre_rt_sigaction(SIGUSR1, &act, &oldact, 20 * 8); in main()
33 __sanitizer_syscall_pre_rt_sigaction(SIGUSR1, &act, &oldact, 5); in main()
36 __msan_poison(&oldact, sizeof(oldact)); in main()
37 __sanitizer_syscall_post_rt_sigaction(0, SIGUSR1, &act, &oldact, 5); in main()
38 assert(__msan_test_shadow(&oldact, sizeof(oldact)) == sizeof(long)*3 + 5); in main()
/external/curl/docs/examples/
Dasiohiper.cpp255 static void setsock(int *fdp, curl_socket_t s, CURL *e, int act, int oldact, in setsock() argument
274 if(oldact != CURL_POLL_IN && oldact != CURL_POLL_INOUT) { in setsock()
282 if(oldact != CURL_POLL_OUT && oldact != CURL_POLL_INOUT) { in setsock()
290 if(oldact != CURL_POLL_IN && oldact != CURL_POLL_INOUT) { in setsock()
295 if(oldact != CURL_POLL_OUT && oldact != CURL_POLL_INOUT) { in setsock()
/external/compiler-rt/lib/esan/
Desan_interceptors.cpp396 struct sigaction *oldact) in DECLARE_REAL() argument
398 struct sigaction *oldact) { in DECLARE_REAL()
400 COMMON_INTERCEPTOR_ENTER(ctx, sigaction, signum, act, oldact); in DECLARE_REAL()
401 if (!processSigaction(signum, act, oldact)) in DECLARE_REAL()
404 return REAL(sigaction)(signum, act, oldact); in DECLARE_REAL()
409 int real_sigaction(int signum, const void *act, void *oldact) { in real_sigaction() argument
413 return internal_sigaction_syscall(signum, act, oldact); in real_sigaction()
416 (struct sigaction *)oldact); in real_sigaction()
/external/perfetto/src/base/
Dwatchdog_unittest.cc127 struct sigaction oldact; in TEST() local
130 ASSERT_EQ(sigaction(SIGABRT, &newact, &oldact), 0); in TEST()
132 auto_restore(&oldact); in TEST()
Dunix_socket_unittest.cc675 struct sigaction oldact; in TEST_F() local
678 ASSERT_EQ(sigaction(SIGWINCH, &newact, &oldact), 0); in TEST_F()
680 rollback(&oldact); in TEST_F()
/external/ltp/lib/
Dtst_safe_macros.c127 struct sigaction *oldact) in safe_sigaction() argument
131 rval = sigaction(signum, act, oldact); in safe_sigaction()
136 tst_strsig(signum), signum, act, oldact); in safe_sigaction()
/external/ltp/include/lapi/
Dsafe_rt_signal.h27 #define SAFE_RT_SIGACTION(signum, act, oldact, sigsetsize) \ argument
28 safe_rt_sigaction(__FILE__, __LINE__, signum, act, oldact, sigsetsize)
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux.h44 int internal_sigaction_norestorer(int signum, const void *act, void *oldact);
47 int internal_sigaction_syscall(int signum, const void *act, void *oldact);
Dsanitizer_linux_libcdep.cc66 real_sigaction(int signum, const void *act, void *oldact);
68 int internal_sigaction(int signum, const void *act, void *oldact) { in internal_sigaction() argument
71 return real_sigaction(signum, act, oldact); in internal_sigaction()
74 (struct sigaction *)oldact); in internal_sigaction()
Dsanitizer_posix.h83 int internal_sigaction(int signum, const void *act, void *oldact);
Dsanitizer_linux.cc627 int internal_sigaction_norestorer(int signum, const void *act, void *oldact) { in internal_sigaction_norestorer() argument
632 __sanitizer_sigaction *u_oldact = (__sanitizer_sigaction *)oldact; in internal_sigaction_norestorer()
675 int internal_sigaction_syscall(int signum, const void *act, void *oldact) { in internal_sigaction_syscall() argument
677 return internal_sigaction_norestorer(signum, act, oldact); in internal_sigaction_syscall()
686 oldact); in internal_sigaction_syscall()
Dsanitizer_mac.cc172 int internal_sigaction(int signum, const void *act, void *oldact) { in internal_sigaction() argument
174 (struct sigaction *)act, (struct sigaction *)oldact); in internal_sigaction()
Dsanitizer_common_syscalls.inc2845 __sanitizer_kernel_sigaction_t *oldact) {
2855 __sanitizer_kernel_sigaction_t *oldact) {
2856 if (res >= 0 && oldact) POST_WRITE(oldact, sizeof(*oldact));
2861 __sanitizer_kernel_sigaction_t *oldact, SIZE_T sz) {
2871 __sanitizer_kernel_sigaction_t *oldact, SIZE_T sz) {
2872 if (res >= 0 && oldact) {
2873 SIZE_T oldact_sz = ((char *)&oldact->sa_mask) - ((char *)oldact) + sz;
2874 POST_WRITE(oldact, oldact_sz);
/external/libchrome/base/posix/
Dunix_domain_socket_unittest.cc85 struct sigaction act = {}, oldact; in TEST() local
87 ASSERT_EQ(0, sigaction(SIGPIPE, &act, &oldact)); in TEST()
100 ASSERT_EQ(0, sigaction(SIGPIPE, &oldact, nullptr)); in TEST()
/external/compiler-rt/lib/asan/
Dasan_interceptors.cc308 struct sigaction *oldact) { in INTERCEPTOR() argument
311 return REAL(sigaction)(signum, act, oldact); in INTERCEPTOR()
317 int real_sigaction(int signum, const void *act, void *oldact) { in real_sigaction() argument
319 (struct sigaction *)oldact); in real_sigaction()
326 struct sigaction *oldact)
Dasan_interceptors.h91 struct sigaction *oldact) in DECLARE_REAL() argument
/external/compiler-rt/test/dfsan/
Dcustom.cc612 struct sigaction oldact; in test_sigaction() local
613 dfsan_set_label(j_label, &oldact, 1); in test_sigaction()
614 int ret = sigaction(SIGUSR1, NULL, &oldact); in test_sigaction()
616 ASSERT_READ_ZERO_LABEL(&oldact, sizeof(oldact)); in test_sigaction()
/external/compiler-rt/lib/msan/
Dmsan_interceptors.cc1049 __sanitizer_sigaction *oldact) { in INTERCEPTOR() argument
1071 res = REAL(sigaction)(signo, pnew_act, oldact); in INTERCEPTOR()
1072 if (res == 0 && oldact) { in INTERCEPTOR()
1073 uptr cb = (uptr)oldact->sigaction; in INTERCEPTOR()
1075 oldact->sigaction = (void (*)(int, void *, void *))old_cb; in INTERCEPTOR()
1079 res = REAL(sigaction)(signo, act, oldact); in INTERCEPTOR()
1082 if (res == 0 && oldact) { in INTERCEPTOR()
1083 __msan_unpoison(oldact, sizeof(__sanitizer_sigaction)); in INTERCEPTOR()
/external/google-breakpad/src/third_party/lss/
Dlinux_syscall_support.h3237 struct kernel_sigaction *oldact) { in LSS_NAME()
3247 return LSS_NAME(rt_sigaction)(signum, &a, oldact, in LSS_NAME()
3250 return LSS_NAME(rt_sigaction)(signum, act, oldact, in LSS_NAME()
3477 struct kernel_sigaction *oldact) { in _syscall2()
3501 rc = LSS_NAME(rt_sigaction)(signum, act ? &a : act, oldact, in _syscall2()
3515 if (!oldact) { in _syscall2()
3520 if (rc == 0 && oldact) { in _syscall2()
3522 memcpy(oldact, act, sizeof(*act)); in _syscall2()
3524 memset(oldact, 0, sizeof(*oldact)); in _syscall2()
3526 oldact->sa_handler_ = ptr_oa->sa_handler_; in _syscall2()
[all …]
/external/ltp/include/
Dtst_safe_macros.h419 struct sigaction *oldact);
420 #define SAFE_SIGACTION(signum, act, oldact) \ argument
421 safe_sigaction(__FILE__, __LINE__, (signum), (act), (oldact))
/external/compiler-rt/lib/dfsan/
Ddfsan_custom.cc736 struct sigaction *oldact, dfsan_label signum_label, in __dfsw_sigaction() argument
739 int ret = sigaction(signum, act, oldact); in __dfsw_sigaction()
740 if (oldact) { in __dfsw_sigaction()
741 dfsan_set_label(0, oldact, sizeof(struct sigaction)); in __dfsw_sigaction()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h1838 #define __sanitizer_syscall_pre_sigaction(signum, act, oldact) \ argument
1839 __sanitizer_syscall_pre_impl_sigaction((long)signum, (long)act, (long)oldact)
1840 #define __sanitizer_syscall_post_sigaction(res, signum, act, oldact) \ argument
1842 (long)oldact)
1843 #define __sanitizer_syscall_pre_rt_sigaction(signum, act, oldact, sz) \ argument
1845 (long)oldact, (long)sz)
1846 #define __sanitizer_syscall_post_rt_sigaction(res, signum, act, oldact, sz) \ argument
1848 (long)oldact, (long)sz)
3072 void __sanitizer_syscall_pre_impl_sigaction(long signum, long act, long oldact);
3074 long oldact);
[all …]
/external/linux-kselftest/tools/testing/selftests/x86/
Dprotection_keys.c348 struct sigaction oldact; in setup_sigsegv_handler() local
365 r = sigaction(signum, &newact, &oldact); in setup_sigsegv_handler()
366 r = sigaction(SIGALRM, &newact, &oldact); in setup_sigsegv_handler()
/external/ppp/pppd/
Dmain.c1410 struct sigaction act, oldact; local
1441 sigaction(sig, &act, &oldact);
1442 sigaction(sig, &oldact, NULL);
/external/compiler-rt/lib/msan/tests/
Dmsan_test.cc2306 struct sigaction oldact = {}; in TEST() local
2323 sigaction(SIGPROF, &act, &oldact); in TEST()
2324 EXPECT_FALSE(oldact.sa_flags & SA_SIGINFO); in TEST()
2325 EXPECT_EQ(SIG_DFL, oldact.sa_handler); in TEST()
2330 sigaction(SIGPROF, &act, &oldact); in TEST()
2331 EXPECT_FALSE(oldact.sa_flags & SA_SIGINFO); in TEST()
2332 EXPECT_EQ(SIG_IGN, oldact.sa_handler); in TEST()
2337 sigaction(SIGPROF, &act, &oldact); in TEST()
2338 EXPECT_TRUE(oldact.sa_flags & SA_SIGINFO); in TEST()
2339 EXPECT_EQ(&SigactionHandler, oldact.sa_sigaction); in TEST()

12