Home
last modified time | relevance | path

Searched refs:sigaction (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/external/compiler-rt/test/asan/TestCases/Posix/
Dallow_user_segv.cc11 struct sigaction original_sigaction_sigbus;
12 struct sigaction original_sigaction_sigsegv;
16 struct sigaction original_sigaction; in User_OnSIGSEGV()
36 int InstallHandler(int signum, struct sigaction *original_sigaction) { in InstallHandler()
37 struct sigaction user_sigaction; in InstallHandler()
40 if (sigaction(signum, &user_sigaction, original_sigaction)) { in InstallHandler()
/external/curl/lib/
Dsigpipe.h30 struct sigaction old_pipe_act;
48 struct sigaction action; in sigpipe_ignore()
50 memset(&ig->old_pipe_act, 0, sizeof(struct sigaction)); in sigpipe_ignore()
51 sigaction(SIGPIPE, NULL, &ig->old_pipe_act); in sigpipe_ignore()
55 sigaction(SIGPIPE, &action, NULL); in sigpipe_ignore()
68 sigaction(SIGPIPE, &ig->old_pipe_act, NULL); in sigpipe_restore()
/external/valgrind/helgrind/tests/
Dsafe-pthread.h39 struct sigaction sa_ill, sa_segv; in safe_pthread_rwlock_unlock()
40 struct sigaction oldsa_ill, oldsa_segv; in safe_pthread_rwlock_unlock()
48 sigaction( SIGILL, &sa_ill, &oldsa_ill ); in safe_pthread_rwlock_unlock()
55 sigaction( SIGSEGV, &sa_segv, &oldsa_segv ); in safe_pthread_rwlock_unlock()
63 sigaction( SIGILL, &oldsa_ill, NULL ); in safe_pthread_rwlock_unlock()
64 sigaction( SIGSEGV, &oldsa_segv, NULL ); in safe_pthread_rwlock_unlock()
Dsafe-semaphore.h18 struct sigaction sa; in safe_sem_post()
19 struct sigaction oldsa; in safe_sem_post()
27 sigaction( SIGABRT, &sa, &oldsa ); in safe_sem_post()
36 sigaction( SIGABRT, &oldsa, NULL ); in safe_sem_post()
/external/avahi/avahi-utils/
Dsigint.c36 static struct sigaction old_sigint_sa, old_sigterm_sa;
83 struct sigaction sa; in sigint_install()
102 if (sigaction(SIGINT, &sa, &old_sigint_sa) < 0) { in sigint_install()
108 if (sigaction(SIGTERM, &sa, &old_sigterm_sa) < 0) { in sigint_install()
109 sigaction(SIGINT, &old_sigint_sa, NULL); in sigint_install()
128 sigaction(SIGTERM, &old_sigterm_sa, NULL); in sigint_uninstall()
129 sigaction(SIGINT, &old_sigint_sa, NULL); in sigint_uninstall()
/external/bison/lib/
Dsignal.in.h393 struct sigaction
418 _GL_FUNCDECL_SYS (sigaction, int, (int, const struct sigaction *restrict,
419 struct sigaction *restrict));
427 _GL_CXXALIAS_SYS (sigaction, int, (int, const struct sigaction *restrict,
428 struct sigaction *restrict));
429 _GL_CXXALIASWARN (sigaction);
432 # undef sigaction
434 _GL_WARN_ON_USE (sigaction, "sigaction is unportable - "
Dfatal-signal.c95 struct sigaction action; in init_fatal_signals()
97 if (sigaction (fatal_signals[i], NULL, &action) >= 0 in init_fatal_signals()
130 static struct sigaction saved_sigactions[64];
145 sigaction (sig, &saved_sigactions[sig], NULL); in uninstall_handlers()
183 struct sigaction action; in install_handlers()
198 sigaction (sig, &action, &saved_sigactions[sig]); in install_handlers()
Dsigaction.c80 static struct sigaction volatile action_array[NSIG] /* = 0 */;
131 sigaction (int sig, const struct sigaction *restrict act, in sigaction() function
132 struct sigaction *restrict oact) in sigaction()
/external/strace/tests/
Dsigaction.c41 struct sigaction sa, sa0; in main()
48 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
55 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
60 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
64 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
/external/compiler-rt/test/tsan/
Dsignal_reset.cc28 struct sigaction act = {}; in reset()
31 if (sigaction(SIGPROF, &act, 0)) { in reset()
36 if (sigaction(SIGPROF, &act, 0)) { in reset()
45 struct sigaction act = {}; in main()
47 if (sigaction(SIGPROF, &act, 0)) { in main()
Dsignal_recursive.cc93 struct sigaction act = {}; in Init()
96 if (sigaction(kSigSuspend, &act, NULL) != 0) in Init()
99 if (sigaction(kSigRestart, &act, NULL) != 0) in Init()
/external/bison/m4/
Dsigaction.m41 # sigaction.m4 serial 7
7 # Determine if sigaction interface is present.
11 AC_CHECK_FUNCS_ONCE([sigaction])
13 AC_CHECK_MEMBERS([struct sigaction.sa_sigaction], , ,
23 # Prerequisites of the part of lib/signal.in.h and of lib/sigaction.c.
/external/valgrind/none/tests/
Dcoolo_sigaction.cpp7 static struct sigaction oldChildHandlerData;
16 struct sigaction act; in setupHandlers()
32 sigaction( SIGCHLD, &act, &oldChildHandlerData ); in setupHandlers()
38 sigaction( SIGPIPE, &act, 0L); in setupHandlers()
/external/e2fsprogs/e2fsck/
Dsigcatcher.c384 struct sigaction sa; in sigcatcher_setup()
386 memset(&sa, 0, sizeof(struct sigaction)); in sigcatcher_setup()
390 sigaction(SIGFPE, &sa, 0); in sigcatcher_setup()
391 sigaction(SIGILL, &sa, 0); in sigcatcher_setup()
392 sigaction(SIGBUS, &sa, 0); in sigcatcher_setup()
393 sigaction(SIGSEGV, &sa, 0); in sigcatcher_setup()
408 struct sigaction sa; in main()
413 memset(&sa, 0, sizeof(struct sigaction)); in main()
417 sigaction(i, &sa, 0); in main()
/external/compiler-rt/lib/asan/
Dasan_interceptors.h91 struct sigaction;
92 DECLARE_REAL(int, sigaction, int signum, const struct sigaction *act, in DECLARE_REAL() argument
93 struct sigaction *oldact) in DECLARE_REAL()
/external/bison/darwin-lib/
Dsignal.h705 struct sigaction struct
730 _GL_FUNCDECL_SYS (sigaction, int, (int, const struct sigaction *restrict, argument
731 struct sigaction *restrict));
739 _GL_CXXALIAS_SYS (sigaction, int, (int, const struct sigaction *restrict,
740 struct sigaction *restrict));
741 _GL_CXXALIASWARN (sigaction);
744 # undef sigaction
746 _GL_WARN_ON_USE (sigaction, "sigaction is unportable - "
/external/bison/linux-lib/
Dsignal.h705 struct sigaction struct
730 _GL_FUNCDECL_SYS (sigaction, int, (int, const struct sigaction *restrict, argument
731 struct sigaction *restrict));
739 _GL_CXXALIAS_SYS (sigaction, int, (int, const struct sigaction *restrict,
740 struct sigaction *restrict));
741 _GL_CXXALIASWARN (sigaction);
744 # undef sigaction
746 _GL_WARN_ON_USE (sigaction, "sigaction is unportable - "
/external/valgrind/memcheck/tests/
Dsigkill.c17 struct sigaction sa; in main()
35 rc = sigaction (i /*SIGKILL*/, &sa, NULL); in main()
39 rc = sigaction (i /*SIGKILL*/, NULL, &sa); in main()
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
Dsignal_segv_handler.cc32 struct sigaction a, old; in main()
37 sigaction(SIGSEGV, &a, &old); in main()
44 sigaction(SIGSEGV, &old, 0); in main()
/external/libdaemon/libdaemon/
Ddfork.c139 struct sigaction sa_old, sa_new; in daemon_fork()
157 if (sigaction(SIGCHLD, &sa_new, &sa_old) < 0) { in daemon_fork()
166 sigaction(SIGCHLD, &sa_old, NULL); in daemon_fork()
176 sigaction(SIGCHLD, &sa_old, NULL); in daemon_fork()
189 sigaction(SIGCHLD, &sa_old, NULL); in daemon_fork()
262 if (sigaction(SIGCHLD, &sa_old, NULL) < 0) { in daemon_fork()
324 sigaction(SIGCHLD, &sa_old, NULL); in daemon_fork()
331 sigaction(SIGCHLD, &sa_old, NULL); in daemon_fork()
716 struct sigaction sa; in daemon_reset_sigsv()
723 if ((sigaction(sig, &sa, NULL) < 0)) in daemon_reset_sigsv()
/external/valgrind/gdbserver_tests/
Dpasssigalrm.c26 struct sigaction sa; in main()
32 if (sigaction (SIGALRM, &sa, NULL) != 0) in main()
59 if (sigaction (SIGRTMIN, &sa, NULL) != 0) in main()
/external/valgrind/tests/
Dpower_insn_available.c36 static struct sigaction unsup_insn_action = (struct sigaction) {
60 sigaction(SIGILL, &unsup_insn_action, NULL); in dcbzl_available()
/external/valgrind/none/tests/x86-linux/
Dsigcontext.c45 struct sigaction sa; in main()
53 sigaction(SIGUSR1, &sa, NULL); in main()
59 sigaction(SIGUSR2, &sa, NULL); in main()
/external/libedit/src/
Dsig.c101 (void) sigaction(signo, &sel->el_signal->sig_action[i], NULL); in sig_handler()
162 struct sigaction osa, nsa; in sig_set()
172 if (sigaction(sighdl[i], &nsa, &osa) != -1 && in sig_set()
194 (void)sigaction(sighdl[i], in sig_clr()
/external/libchrome/sandbox/linux/services/
Dsyscall_wrappers.cc159 const struct sigaction* act, in sys_sigaction()
160 struct sigaction* oldact) { in sys_sigaction()
161 return sigaction(signum, act, oldact); in sys_sigaction()
220 const struct sigaction* act, in sys_sigaction()
221 struct sigaction* oldact) { in sys_sigaction()

12345678910>>...13