Home
last modified time | relevance | path

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

12345678910>>...50

/external/openssh/openbsd-compat/
Dreadpassphrase.c68 struct sigaction sa, savealrm, saveint, savehup, savequit, saveterm; in readpassphrase()
69 struct sigaction savetstp, savettin, savettou, savepipe; in readpassphrase()
126 (void)sigaction(SIGALRM, &sa, &savealrm); in readpassphrase()
127 (void)sigaction(SIGHUP, &sa, &savehup); in readpassphrase()
128 (void)sigaction(SIGINT, &sa, &saveint); in readpassphrase()
129 (void)sigaction(SIGPIPE, &sa, &savepipe); in readpassphrase()
130 (void)sigaction(SIGQUIT, &sa, &savequit); in readpassphrase()
131 (void)sigaction(SIGTERM, &sa, &saveterm); in readpassphrase()
132 (void)sigaction(SIGTSTP, &sa, &savetstp); in readpassphrase()
133 (void)sigaction(SIGTTIN, &sa, &savettin); in readpassphrase()
[all …]
/external/f2fs-tools/tools/f2fs_io/
Df2fs_io.c454 struct sigaction sa; in sigcatcher_setup()
456 memset(&sa, 0, sizeof(struct sigaction)); in sigcatcher_setup()
460 sigaction(SIGHUP, &sa, 0); in sigcatcher_setup()
461 sigaction(SIGINT, &sa, 0); in sigcatcher_setup()
462 sigaction(SIGQUIT, &sa, 0); in sigcatcher_setup()
463 sigaction(SIGFPE, &sa, 0); in sigcatcher_setup()
464 sigaction(SIGILL, &sa, 0); in sigcatcher_setup()
465 sigaction(SIGBUS, &sa, 0); in sigcatcher_setup()
466 sigaction(SIGSEGV, &sa, 0); in sigcatcher_setup()
467 sigaction(SIGABRT, &sa, 0); in sigcatcher_setup()
[all …]
/external/strace/tests-m32/
Dlist_sigaction_signum.c41 static const struct sigaction ign = { .sa_handler = SIG_IGN }; in main()
42 static const struct sigaction dfl = { .sa_handler = SIG_DFL }; in main()
43 struct sigaction act; in main()
45 if (sigaction(i, &ign, NULL) || in main()
46 sigaction(i, NULL, &act) || in main()
48 sigaction(i, &dfl, NULL) || in main()
49 sigaction(i, NULL, &act) || in main()
Drt_sigaction.c42 struct sigaction sa, sa0; in main()
49 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
56 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
61 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
65 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
/external/strace/tests-mx32/
Dlist_sigaction_signum.c41 static const struct sigaction ign = { .sa_handler = SIG_IGN }; in main()
42 static const struct sigaction dfl = { .sa_handler = SIG_DFL }; in main()
43 struct sigaction act; in main()
45 if (sigaction(i, &ign, NULL) || in main()
46 sigaction(i, NULL, &act) || in main()
48 sigaction(i, &dfl, NULL) || in main()
49 sigaction(i, NULL, &act) || in main()
Drt_sigaction.c42 struct sigaction sa, sa0; in main()
49 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
56 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
61 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
65 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
/external/strace/tests/
Dlist_sigaction_signum.c41 static const struct sigaction ign = { .sa_handler = SIG_IGN }; in main()
42 static const struct sigaction dfl = { .sa_handler = SIG_DFL }; in main()
43 struct sigaction act; in main()
45 if (sigaction(i, &ign, NULL) || in main()
46 sigaction(i, NULL, &act) || in main()
48 sigaction(i, &dfl, NULL) || in main()
49 sigaction(i, NULL, &act) || in main()
Drt_sigaction.c42 struct sigaction sa, sa0; in main()
49 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
56 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
61 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
65 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
/external/compiler-rt/lib/esan/
Dworking_set_posix.cpp37 AppSigAct.sigaction = (void (*)(int, void*, void*))Handler; in processWorkingSetSignal()
47 const struct sigaction *Act = (const struct sigaction *) ActVoid; in processWorkingSetSigaction()
48 struct sigaction *OldAct = (struct sigaction *) OldActVoid; in processWorkingSetSigaction()
76 SigAct.sigaction = (void (*)(int, void*, void*)) SIG_DFL; in reinstateDefaultHandler()
95 } else if (AppSigAct.sigaction) { in handleMemoryFault()
98 AppSigAct.sigaction(SigNum, Info, Ctx); in handleMemoryFault()
124 SigAct.sigaction = handleMemoryFault; in registerMemoryFaultHandler()
/external/curl/lib/
Dsigpipe.h31 struct sigaction old_pipe_act;
49 struct sigaction action; in sigpipe_ignore()
51 memset(&ig->old_pipe_act, 0, sizeof(struct sigaction)); in sigpipe_ignore()
52 sigaction(SIGPIPE, NULL, &ig->old_pipe_act); in sigpipe_ignore()
56 sigaction(SIGPIPE, &action, NULL); in sigpipe_ignore()
69 sigaction(SIGPIPE, &ig->old_pipe_act, NULL); in sigpipe_restore()
/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/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/templates/
Dtemplate_2-1.in9 Test case for assertion #2 of the sigaction system call that shows
10 sigaction (when used with a non-null oact pointer) changes the action
14 1. Call sigaction to set handler for %%MYSIG%% to use handler1
15 2. Call sigaction again to set handler for %%MYSIG%% to use handler2,
36 struct sigaction act;
37 struct sigaction oact;
42 if (sigaction(%%MYSIG%%, &act, 0) == -1) {
50 if (sigaction(%%MYSIG%%, &act, &oact) == -1) {
Dtemplate_3-1.in9 Test case for assertion #3 of the sigaction system call that shows
10 calling sigaction with a null act argument does not change the
16 3. Call sigaction with a null act
34 struct sigaction act;
35 struct sigaction oact;
40 if (sigaction(%%MYSIG%%, &act, 0) == -1) {
46 if (sigaction(%%MYSIG%%, 0, &oact) == -1) {
/external/tensorflow/tensorflow/core/platform/
Dstacktrace_handler.cc72 struct sigaction sa_timeout; in StacktraceHandler()
75 sigaction(SIGALRM, &sa_timeout, 0); in StacktraceHandler()
93 struct sigaction sa; in StacktraceHandler()
97 sigaction(SIGABRT, &sa, NULL); in StacktraceHandler()
106 struct sigaction sa; in InstallStacktraceHandler()
107 struct sigaction osa; in InstallStacktraceHandler()
112 if (sigaction(sig, &sa, &osa) != 0) { in InstallStacktraceHandler()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_kill/
Dstress.c103 struct sigaction sa; in flood_receiver()
108 if ((ret = sigaction(SIGABRT, &sa, NULL))) { in flood_receiver()
112 if ((ret = sigaction(SIGBUS, &sa, NULL))) { in flood_receiver()
171 struct sigaction sa; in sync_rec()
176 if ((ret = sigaction(SIGILL, &sa, NULL))) { in sync_rec()
230 struct sigaction sa; in main()
242 if ((ret = sigaction(SIGUSR1, &sa, NULL))) { in main()
246 if ((ret = sigaction(SIGALRM, &sa, NULL))) { in main()
/external/e2fsprogs/misc/
De4crypt.c241 struct sigaction sa; in sigcatcher_setup()
243 memset(&sa, 0, sizeof(struct sigaction)); in sigcatcher_setup()
247 sigaction(SIGHUP, &sa, 0); in sigcatcher_setup()
248 sigaction(SIGINT, &sa, 0); in sigcatcher_setup()
249 sigaction(SIGQUIT, &sa, 0); in sigcatcher_setup()
250 sigaction(SIGFPE, &sa, 0); in sigcatcher_setup()
251 sigaction(SIGILL, &sa, 0); in sigcatcher_setup()
252 sigaction(SIGBUS, &sa, 0); in sigcatcher_setup()
253 sigaction(SIGSEGV, &sa, 0); in sigcatcher_setup()
254 sigaction(SIGABRT, &sa, 0); in sigcatcher_setup()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
D30-1.c93 struct sigaction sa; in main()
114 ret = sigaction(SIG_INVALID, &sa, 0); in main()
133 ret = sigaction(SIGKILL, &sa, 0); in main()
150 ret = sigaction(SIGSTOP, &sa, 0); in main()
169 ret = sigaction(SIGKILL, &sa, 0); in main()
186 ret = sigaction(SIGSTOP, &sa, 0); in main()
D3-26.c34 struct sigaction act; in main()
35 struct sigaction oact; in main()
40 if (sigaction(SIGXFSZ, &act, 0) == -1) { in main()
46 if (sigaction(SIGXFSZ, 0, &oact) == -1) { in main()
D3-15.c34 struct sigaction act; in main()
35 struct sigaction oact; in main()
40 if (sigaction(SIGTTIN, &act, 0) == -1) { in main()
46 if (sigaction(SIGTTIN, 0, &oact) == -1) { in main()
D3-7.c34 struct sigaction act; in main()
35 struct sigaction oact; in main()
40 if (sigaction(SIGHUP, &act, 0) == -1) { in main()
46 if (sigaction(SIGHUP, 0, &oact) == -1) { in main()
/external/ltp/testcases/kernel/mem/mmapstress/
Dmmap-corruption01.c81 struct sigaction sa; in main()
115 if (sigaction(SIGINT, &sa, 0) == -1) { in main()
120 if (sigaction(SIGALRM, &sa, 0) == -1) { in main()
128 if (sigaction(SIGALRM, &sa, 0) == -1) { in main()
137 if (sigaction(SIGQUIT, &sa, 0) == -1) { in main()
141 if (sigaction(SIGTERM, &sa, 0) == -1) { in main()
/external/f2fs-tools/tools/
Df2fscrypt.c287 struct sigaction sa; in sigcatcher_setup()
289 memset(&sa, 0, sizeof(struct sigaction)); in sigcatcher_setup()
293 sigaction(SIGHUP, &sa, 0); in sigcatcher_setup()
294 sigaction(SIGINT, &sa, 0); in sigcatcher_setup()
295 sigaction(SIGQUIT, &sa, 0); in sigcatcher_setup()
296 sigaction(SIGFPE, &sa, 0); in sigcatcher_setup()
297 sigaction(SIGILL, &sa, 0); in sigcatcher_setup()
298 sigaction(SIGBUS, &sa, 0); in sigcatcher_setup()
299 sigaction(SIGSEGV, &sa, 0); in sigcatcher_setup()
300 sigaction(SIGABRT, &sa, 0); in sigcatcher_setup()
[all …]
/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()
/external/e2fsprogs/e2fsck/
Dsigcatcher.c388 struct sigaction sa; in sigcatcher_setup()
390 memset(&sa, 0, sizeof(struct sigaction)); in sigcatcher_setup()
394 sigaction(SIGFPE, &sa, 0); in sigcatcher_setup()
395 sigaction(SIGILL, &sa, 0); in sigcatcher_setup()
396 sigaction(SIGBUS, &sa, 0); in sigcatcher_setup()
397 sigaction(SIGSEGV, &sa, 0); in sigcatcher_setup()
398 sigaction(SIGABRT, &sa, 0); in sigcatcher_setup()
413 struct sigaction sa; in main()
418 memset(&sa, 0, sizeof(struct sigaction)); in main()
422 sigaction(i, &sa, 0); in main()
/external/perfetto/src/base/
Dwatchdog_unittest.cc115 int RestoreSIGABRT(const struct sigaction* act) { in RestoreSIGABRT()
116 return sigaction(SIGABRT, act, nullptr); in RestoreSIGABRT()
127 struct sigaction oldact; in TEST()
128 struct sigaction newact = {}; in TEST()
130 ASSERT_EQ(sigaction(SIGABRT, &newact, &oldact), 0); in TEST()
131 base::ScopedResource<const struct sigaction*, RestoreSIGABRT, nullptr> in TEST()

12345678910>>...50