Home
last modified time | relevance | path

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

/art/sigchainlib/
Dsigchain.cc38 typedef int (*SigActionFnPtr)(int, const struct sigaction*, struct sigaction*);
46 void Claim(const struct sigaction& action) { in Claim()
54 sigaction(signal, &action_, nullptr); // Restore old action. in Unclaim()
58 const struct sigaction& GetAction() const { in GetAction()
71 void SetAction(const struct sigaction& action, bool oldstyle) { in SetAction()
89 struct sigaction action_; // Action to be performed.
128 extern "C" void ClaimSignalChain(int signal, struct sigaction* oldaction) { in ClaimSignalChain()
164 const struct sigaction& action = user_sigactions[sig].GetAction(); in InvokeUserSignalHandler()
185 extern "C" void EnsureFrontOfChain(int signal, struct sigaction* expected_action) { in EnsureFrontOfChain()
189 struct sigaction current_action; in EnsureFrontOfChain()
[all …]
Dsigchain.h26 extern "C" void ClaimSignalChain(int signal, struct sigaction* oldaction);
35 extern "C" void EnsureFrontOfChain(int signal, struct sigaction* expected_action);
Dsigchain_dummy.cc53 struct sigaction* oldaction ATTRIBUTE_UNUSED) { in ClaimSignalChain()
76 struct sigaction* expected_action ATTRIBUTE_UNUSED) { in EnsureFrontOfChain()
Dversion-script.txt9 sigaction;
/art/test/004-SignalTest/
Dsignaltest.cc76 static struct sigaction oldaction;
79 struct sigaction action; in Java_Main_initSignalTest()
87 sigaction(SIGSEGV, &action, &oldaction); in Java_Main_initSignalTest()
91 sigaction(SIGSEGV, &oldaction, nullptr); in Java_Main_terminateSignalTest()
/art/runtime/
Dfault_handler.cc92 sigaction(SIGSEGV, nullptr, &oldaction_); in FaultManager()
98 static void SetUpArtAction(struct sigaction* action) { in SetUpArtAction()
109 struct sigaction action; in EnsureArtActionInFrontOfSignalChain()
119 struct sigaction action; in Init()
123 int e = sigaction(SIGSEGV, &action, &oldaction_); in Init()
182 struct sigaction action; in HandleFaultByOtherHandlers()
183 struct sigaction oldactions[num_handled_nested_signals]; in HandleFaultByOtherHandlers()
202 success = sigaction(handled_nested_signals[i], &action, &oldactions[i]) == 0; in HandleFaultByOtherHandlers()
219 success = sigaction(handled_nested_signals[i], &oldactions[i], nullptr) == 0; in HandleFaultByOtherHandlers()
234 success = sigaction(handled_nested_signals[i], &oldactions[i], nullptr) == 0; in HandleFaultByOtherHandlers()
Druntime_linux.cc379 struct sigaction action; in HandleUnexpectedSignal()
383 sigaction(signal_number, &action, nullptr); in HandleUnexpectedSignal()
393 struct sigaction action; in InitPlatformSignalHandlers()
403 rc += sigaction(SIGABRT, &action, nullptr); in InitPlatformSignalHandlers()
404 rc += sigaction(SIGBUS, &action, nullptr); in InitPlatformSignalHandlers()
405 rc += sigaction(SIGFPE, &action, nullptr); in InitPlatformSignalHandlers()
406 rc += sigaction(SIGILL, &action, nullptr); in InitPlatformSignalHandlers()
407 rc += sigaction(SIGPIPE, &action, nullptr); in InitPlatformSignalHandlers()
408 rc += sigaction(SIGSEGV, &action, nullptr); in InitPlatformSignalHandlers()
410 rc += sigaction(SIGSTKFLT, &action, nullptr); in InitPlatformSignalHandlers()
[all …]
Druntime_android.cc33 struct sigaction old_action;
60 struct sigaction action; in InitPlatformSignalHandlers()
69 rc += sigaction(SIGSEGV, &action, &old_action); in InitPlatformSignalHandlers()
Dfault_handler.h71 struct sigaction oldaction_;
/art/runtime/arch/arm/
Dinstruction_set_features_arm.cc206 struct sigaction sa, osa; in FromAssembly()
209 sigaction(SIGILL, &sa, &osa); in FromAssembly()
219 sigaction(SIGILL, &osa, nullptr); in FromAssembly()
/art/test/115-native-bridge/
Dnativebridge.cc197 struct sigaction tmp; in trampoline_Java_Main_testSignal()
205 sigaction(SIGSEGV, &tmp, nullptr); in trampoline_Java_Main_testSignal()
218 sigaction(SIGILL, &tmp, nullptr); in trampoline_Java_Main_testSignal()