Home
last modified time | relevance | path

Searched refs:signo (Results 1 – 25 of 799) sorted by relevance

12345678910>>...32

/external/llvm-project/lldb/source/Target/
DUnixSignals.cpp113 void UnixSignals::AddSignal(int signo, const char *name, bool default_suppress, in AddSignal() argument
118 m_signals.insert(std::make_pair(signo, new_signal)); in AddSignal()
122 void UnixSignals::RemoveSignal(int signo) { in RemoveSignal() argument
123 collection::iterator pos = m_signals.find(signo); in RemoveSignal()
129 const char *UnixSignals::GetSignalAsCString(int signo) const { in GetSignalAsCString()
130 collection::const_iterator pos = m_signals.find(signo); in GetSignalAsCString()
137 bool UnixSignals::SignalIsValid(int32_t signo) const { in SignalIsValid()
138 return m_signals.find(signo) != m_signals.end(); in SignalIsValid()
159 const int32_t signo = in GetSignalNumberFromName() local
161 if (signo != LLDB_INVALID_SIGNAL_NUMBER) in GetSignalNumberFromName()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/debugging/
Dfailure_signal_handler.cc66 static void RaiseToDefaultHandler(int signo) { in RaiseToDefaultHandler() argument
67 signal(signo, SIG_DFL); in RaiseToDefaultHandler()
68 raise(signo); in RaiseToDefaultHandler()
72 const int signo; member
99 static void RaiseToPreviousHandler(int signo) { in RaiseToPreviousHandler() argument
102 if (it.signo == signo) { in RaiseToPreviousHandler()
104 sigaction(signo, &it.previous_action, nullptr); in RaiseToPreviousHandler()
106 signal(signo, it.previous_handler); in RaiseToPreviousHandler()
108 raise(signo); in RaiseToPreviousHandler()
114 RaiseToDefaultHandler(signo); in RaiseToPreviousHandler()
[all …]
Dfailure_signal_handler_test.cc43 void InstallHandlerAndRaise(int signo) { in InstallHandlerAndRaise() argument
45 raise(signo); in InstallHandlerAndRaise()
49 const int signo = GetParam(); in TEST_P() local
51 "\\*\\*\\* ", absl::debugging_internal::FailureSignalToString(signo), in TEST_P()
54 EXPECT_EXIT(InstallHandlerAndRaise(signo), testing::KilledBySignal(signo), in TEST_P()
58 EXPECT_DEATH_IF_SUPPORTED(InstallHandlerAndRaise(signo), exit_regex); in TEST_P()
88 void InstallHandlerWithWriteToFileAndRaise(const char* file, int signo) { in InstallHandlerWithWriteToFileAndRaise() argument
94 raise(signo); in InstallHandlerWithWriteToFileAndRaise()
98 const int signo = GetParam(); in TEST_P() local
100 std::string file = absl::StrCat(tmp_dir, "/signo_", signo); in TEST_P()
[all …]
/external/openscreen/third_party/abseil/src/absl/debugging/
Dfailure_signal_handler.cc66 static void RaiseToDefaultHandler(int signo) { in RaiseToDefaultHandler() argument
67 signal(signo, SIG_DFL); in RaiseToDefaultHandler()
68 raise(signo); in RaiseToDefaultHandler()
72 const int signo; member
99 static void RaiseToPreviousHandler(int signo) { in RaiseToPreviousHandler() argument
102 if (it.signo == signo) { in RaiseToPreviousHandler()
104 sigaction(signo, &it.previous_action, nullptr); in RaiseToPreviousHandler()
106 signal(signo, it.previous_handler); in RaiseToPreviousHandler()
108 raise(signo); in RaiseToPreviousHandler()
114 RaiseToDefaultHandler(signo); in RaiseToPreviousHandler()
[all …]
Dfailure_signal_handler_test.cc43 void InstallHandlerAndRaise(int signo) { in InstallHandlerAndRaise() argument
45 raise(signo); in InstallHandlerAndRaise()
49 const int signo = GetParam(); in TEST_P() local
51 "\\*\\*\\* ", absl::debugging_internal::FailureSignalToString(signo), in TEST_P()
54 EXPECT_EXIT(InstallHandlerAndRaise(signo), testing::KilledBySignal(signo), in TEST_P()
58 EXPECT_DEATH_IF_SUPPORTED(InstallHandlerAndRaise(signo), exit_regex); in TEST_P()
88 void InstallHandlerWithWriteToFileAndRaise(const char* file, int signo) { in InstallHandlerWithWriteToFileAndRaise() argument
94 raise(signo); in InstallHandlerWithWriteToFileAndRaise()
98 const int signo = GetParam(); in TEST_P() local
100 std::string file = absl::StrCat(tmp_dir, "/signo_", signo); in TEST_P()
[all …]
/external/angle/third_party/abseil-cpp/absl/debugging/
Dfailure_signal_handler.cc67 static void RaiseToDefaultHandler(int signo) { in RaiseToDefaultHandler() argument
68 signal(signo, SIG_DFL); in RaiseToDefaultHandler()
69 raise(signo); in RaiseToDefaultHandler()
73 const int signo; member
100 static void RaiseToPreviousHandler(int signo) { in RaiseToPreviousHandler() argument
103 if (it.signo == signo) { in RaiseToPreviousHandler()
105 sigaction(signo, &it.previous_action, nullptr); in RaiseToPreviousHandler()
107 signal(signo, it.previous_handler); in RaiseToPreviousHandler()
109 raise(signo); in RaiseToPreviousHandler()
115 RaiseToDefaultHandler(signo); in RaiseToPreviousHandler()
[all …]
Dfailure_signal_handler_test.cc43 void InstallHandlerAndRaise(int signo) { in InstallHandlerAndRaise() argument
45 raise(signo); in InstallHandlerAndRaise()
49 const int signo = GetParam(); in TEST_P() local
51 "\\*\\*\\* ", absl::debugging_internal::FailureSignalToString(signo), in TEST_P()
54 EXPECT_EXIT(InstallHandlerAndRaise(signo), testing::KilledBySignal(signo), in TEST_P()
58 EXPECT_DEATH_IF_SUPPORTED(InstallHandlerAndRaise(signo), exit_regex); in TEST_P()
88 void InstallHandlerWithWriteToFileAndRaise(const char* file, int signo) { in InstallHandlerWithWriteToFileAndRaise() argument
94 raise(signo); in InstallHandlerWithWriteToFileAndRaise()
98 const int signo = GetParam(); in TEST_P() local
100 std::string file = absl::StrCat(tmp_dir, "/signo_", signo); in TEST_P()
[all …]
/external/libtextclassifier/abseil-cpp/absl/debugging/
Dfailure_signal_handler.cc66 static void RaiseToDefaultHandler(int signo) { in RaiseToDefaultHandler() argument
67 signal(signo, SIG_DFL); in RaiseToDefaultHandler()
68 raise(signo); in RaiseToDefaultHandler()
72 const int signo; member
99 static void RaiseToPreviousHandler(int signo) { in RaiseToPreviousHandler() argument
102 if (it.signo == signo) { in RaiseToPreviousHandler()
104 sigaction(signo, &it.previous_action, nullptr); in RaiseToPreviousHandler()
106 signal(signo, it.previous_handler); in RaiseToPreviousHandler()
108 raise(signo); in RaiseToPreviousHandler()
114 RaiseToDefaultHandler(signo); in RaiseToPreviousHandler()
[all …]
Dfailure_signal_handler_test.cc43 void InstallHandlerAndRaise(int signo) { in InstallHandlerAndRaise() argument
45 raise(signo); in InstallHandlerAndRaise()
49 const int signo = GetParam(); in TEST_P() local
51 "\\*\\*\\* ", absl::debugging_internal::FailureSignalToString(signo), in TEST_P()
54 EXPECT_EXIT(InstallHandlerAndRaise(signo), testing::KilledBySignal(signo), in TEST_P()
58 EXPECT_DEATH_IF_SUPPORTED(InstallHandlerAndRaise(signo), exit_regex); in TEST_P()
88 void InstallHandlerWithWriteToFileAndRaise(const char* file, int signo) { in InstallHandlerWithWriteToFileAndRaise() argument
94 raise(signo); in InstallHandlerWithWriteToFileAndRaise()
98 const int signo = GetParam(); in TEST_P() local
100 std::string file = absl::StrCat(tmp_dir, "/signo_", signo); in TEST_P()
[all …]
/external/abseil-cpp/absl/debugging/
Dfailure_signal_handler.cc66 static void RaiseToDefaultHandler(int signo) { in RaiseToDefaultHandler() argument
67 signal(signo, SIG_DFL); in RaiseToDefaultHandler()
68 raise(signo); in RaiseToDefaultHandler()
72 const int signo; member
99 static void RaiseToPreviousHandler(int signo) { in RaiseToPreviousHandler() argument
102 if (it.signo == signo) { in RaiseToPreviousHandler()
104 sigaction(signo, &it.previous_action, nullptr); in RaiseToPreviousHandler()
106 signal(signo, it.previous_handler); in RaiseToPreviousHandler()
108 raise(signo); in RaiseToPreviousHandler()
114 RaiseToDefaultHandler(signo); in RaiseToPreviousHandler()
[all …]
Dfailure_signal_handler_test.cc43 void InstallHandlerAndRaise(int signo) { in InstallHandlerAndRaise() argument
45 raise(signo); in InstallHandlerAndRaise()
49 const int signo = GetParam(); in TEST_P() local
51 "\\*\\*\\* ", absl::debugging_internal::FailureSignalToString(signo), in TEST_P()
54 EXPECT_EXIT(InstallHandlerAndRaise(signo), testing::KilledBySignal(signo), in TEST_P()
58 EXPECT_DEATH(InstallHandlerAndRaise(signo), exit_regex); in TEST_P()
88 void InstallHandlerWithWriteToFileAndRaise(const char* file, int signo) { in InstallHandlerWithWriteToFileAndRaise() argument
94 raise(signo); in InstallHandlerWithWriteToFileAndRaise()
98 const int signo = GetParam(); in TEST_P() local
100 std::string file = absl::StrCat(tmp_dir, "/signo_", signo); in TEST_P()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/debugging/
Dfailure_signal_handler.cc66 static void RaiseToDefaultHandler(int signo) { in RaiseToDefaultHandler() argument
67 signal(signo, SIG_DFL); in RaiseToDefaultHandler()
68 raise(signo); in RaiseToDefaultHandler()
72 const int signo; member
99 static void RaiseToPreviousHandler(int signo) { in RaiseToPreviousHandler() argument
102 if (it.signo == signo) { in RaiseToPreviousHandler()
104 sigaction(signo, &it.previous_action, nullptr); in RaiseToPreviousHandler()
106 signal(signo, it.previous_handler); in RaiseToPreviousHandler()
108 raise(signo); in RaiseToPreviousHandler()
114 RaiseToDefaultHandler(signo); in RaiseToPreviousHandler()
[all …]
Dfailure_signal_handler_test.cc43 void InstallHandlerAndRaise(int signo) { in InstallHandlerAndRaise() argument
45 raise(signo); in InstallHandlerAndRaise()
49 const int signo = GetParam(); in TEST_P() local
51 "\\*\\*\\* ", absl::debugging_internal::FailureSignalToString(signo), in TEST_P()
54 EXPECT_EXIT(InstallHandlerAndRaise(signo), testing::KilledBySignal(signo), in TEST_P()
58 EXPECT_DEATH(InstallHandlerAndRaise(signo), exit_regex); in TEST_P()
88 void InstallHandlerWithWriteToFileAndRaise(const char* file, int signo) { in InstallHandlerWithWriteToFileAndRaise() argument
94 raise(signo); in InstallHandlerWithWriteToFileAndRaise()
98 const int signo = GetParam(); in TEST_P() local
100 std::string file = absl::StrCat(tmp_dir, "/signo_", signo); in TEST_P()
[all …]
/external/ltp/testcases/kernel/syscalls/sigwaitinfo/
Dsigwaitinfo01.c136 void test_empty_set(swi_func sigwaitinfo, int signo) in test_empty_set() argument
144 child = create_sig_proc(100000, signo, UINT_MAX); in test_empty_set()
152 void test_timeout(swi_func sigwaitinfo, int signo) in test_timeout() argument
162 child = create_sig_proc(100000, signo, UINT_MAX); in test_timeout()
173 void test_unmasked_matching(swi_func sigwaitinfo, int signo) in test_unmasked_matching() argument
180 SUCCEED_OR_DIE(sigaddset, "sigaddset failed", &sigs, signo); in test_unmasked_matching()
183 child = create_sig_proc(100000, signo, UINT_MAX); in test_unmasked_matching()
186 REPORT_SUCCESS_COND(signo, 0, si.si_pid == child in test_unmasked_matching()
188 && si.si_signo == signo, "Struct siginfo mismatch"); in test_unmasked_matching()
193 void test_unmasked_matching_noinfo(swi_func sigwaitinfo, int signo) in test_unmasked_matching_noinfo() argument
[all …]
/external/llvm-project/lldb/source/API/
DSBUnixSignals.cpp69 const char *SBUnixSignals::GetSignalAsCString(int32_t signo) const { in GetSignalAsCString()
71 (int32_t), signo); in GetSignalAsCString()
74 return signals_sp->GetSignalAsCString(signo); in GetSignalAsCString()
89 bool SBUnixSignals::GetShouldSuppress(int32_t signo) const { in GetShouldSuppress()
91 signo); in GetShouldSuppress()
94 return signals_sp->GetShouldSuppress(signo); in GetShouldSuppress()
99 bool SBUnixSignals::SetShouldSuppress(int32_t signo, bool value) { in SetShouldSuppress() argument
101 signo, value); in SetShouldSuppress()
106 return signals_sp->SetShouldSuppress(signo, value); in SetShouldSuppress()
111 bool SBUnixSignals::GetShouldStop(int32_t signo) const { in GetShouldStop()
[all …]
/external/google-breakpad/src/client/solaris/handler/
Dexception_handler.cc143 void ExceptionHandler::SetupHandler(int signo) { in SetupHandler() argument
147 if (sigaction(signo, &act, &old_act) < 0) in SetupHandler()
149 old_handlers_[signo] = old_act.sa_handler; in SetupHandler()
152 void ExceptionHandler::TeardownHandler(int signo) { in TeardownHandler() argument
153 if (old_handlers_.find(signo) != old_handlers_.end()) { in TeardownHandler()
155 act.sa_handler = old_handlers_[signo]; in TeardownHandler()
157 sigaction(signo, &act, 0); in TeardownHandler()
168 void ExceptionHandler::HandleException(int signo) { in HandleException() argument
189 current_handler->TeardownHandler(signo); in HandleException()
192 if (current_handler->InternalWriteMinidump(signo, current_ebp, &sig_ctx)) { in HandleException()
[all …]
/external/llvm-project/lldb/unittests/Signals/
DUnixSignalsTest.cpp60 int32_t signo = 4; in TEST() local
62 signals.GetSignalInfo(signo, should_suppress, should_stop, should_notify); in TEST()
68 EXPECT_EQ(true, signals.GetShouldSuppress(signo)); in TEST()
69 EXPECT_EQ(false, signals.GetShouldStop(signo)); in TEST()
70 EXPECT_EQ(true, signals.GetShouldNotify(signo)); in TEST()
71 EXPECT_EQ(name, signals.GetSignalAsCString(signo)); in TEST()
77 int32_t signo = 8; in TEST() local
80 EXPECT_EQ(true, signals.GetShouldSuppress(signo)); in TEST()
81 EXPECT_EQ(true, signals.GetShouldStop(signo)); in TEST()
82 EXPECT_EQ(true, signals.GetShouldNotify(signo)); in TEST()
[all …]
/external/llvm-project/lldb/include/lldb/Target/
DUnixSignals.h32 const char *GetSignalAsCString(int32_t signo) const;
34 bool SignalIsValid(int32_t signo) const;
38 const char *GetSignalInfo(int32_t signo, bool &should_suppress,
41 bool GetShouldSuppress(int32_t signo) const;
43 bool SetShouldSuppress(int32_t signo, bool value);
47 bool GetShouldStop(int32_t signo) const;
49 bool SetShouldStop(int32_t signo, bool value);
52 bool GetShouldNotify(int32_t signo) const;
54 bool SetShouldNotify(int32_t signo, bool value);
77 void AddSignal(int signo, const char *name, bool default_suppress,
[all …]
/external/llvm-project/lldb/source/Plugins/Process/Linux/
DNativeThreadLinux.cpp49 stop_info.details.signal.signo); in LogThreadStopInfo()
53 header, stop_info.details.signal.signo); in LogThreadStopInfo()
57 header, stop_info.details.signal.signo); in LogThreadStopInfo()
61 stop_info.details.signal.signo); in LogThreadStopInfo()
69 stop_info.details.signal.signo); in LogThreadStopInfo()
206 Status NativeThreadLinux::Resume(uint32_t signo) { in Resume() argument
241 if (signo != LLDB_INVALID_SIGNAL_NUMBER) in Resume()
242 data = signo; in Resume()
248 Status NativeThreadLinux::SingleStep(uint32_t signo) { in SingleStep() argument
262 if (signo != LLDB_INVALID_SIGNAL_NUMBER) in SingleStep()
[all …]
/external/llvm-project/lldb/source/Host/common/
DMainLoop.cpp66 static void SignalHandler(int signo, siginfo_t *info, void *) { in SignalHandler() argument
67 assert(signo < NSIG); in SignalHandler()
68 g_signal_flags[signo] = 1; in SignalHandler()
300 MainLoop::RegisterSignal(int signo, const Callback &callback, Status &error) { argument
305 if (m_signals.find(signo) != m_signals.end()) {
306 error.SetErrorStringWithFormat("Signal %d already monitored.", signo);
316 sigaddset(&new_action.sa_mask, signo);
319 g_signal_flags[signo] = 0;
323 int ret = sigaction(signo, &new_action, &info.old_action);
329 EV_SET(&ev, signo, EVFILT_SIGNAL, EV_ADD, 0, 0, 0);
[all …]
/external/strace/tests-m32/
Dsigaction.c100 static const kernel_ulong_t signo = variable
116 if (k_sigaction(signo, 0, 0)) in main()
120 k_sigaction(signo, 0, 0); in main()
123 k_sigaction(signo, (uintptr_t) (new_act + 1), 0); in main()
127 k_sigaction(signo, (uintptr_t) new_act + 2, 0); in main()
131 k_sigaction(signo, 0, (uintptr_t) (old_act + 1)); in main()
135 k_sigaction(signo, 0, (uintptr_t) old_act + 2); in main()
144 k_sigaction(signo, (uintptr_t) new_act, 0); in main()
156 k_sigaction(signo, (uintptr_t) new_act, (uintptr_t) old_act); in main()
169 k_sigaction(signo, (uintptr_t) new_act, (uintptr_t) old_act); in main()
[all …]
Dqual_signal.c46 test_sig(int signo, const char *name) in test_sig() argument
50 if (sigaction(signo, &act, NULL)) in test_sig()
51 perror_msg_and_fail("sigaction: %d", signo); in test_sig()
55 sigaddset(&mask, signo); in test_sig()
57 perror_msg_and_fail("sigprocmask: %d", signo); in test_sig()
59 if (kill(pid, signo)) in test_sig()
60 perror_msg_and_fail("kill(%d, %d)", pid, signo); in test_sig()
/external/strace/tests-mx32/
Dsigaction.c100 static const kernel_ulong_t signo = variable
116 if (k_sigaction(signo, 0, 0)) in main()
120 k_sigaction(signo, 0, 0); in main()
123 k_sigaction(signo, (uintptr_t) (new_act + 1), 0); in main()
127 k_sigaction(signo, (uintptr_t) new_act + 2, 0); in main()
131 k_sigaction(signo, 0, (uintptr_t) (old_act + 1)); in main()
135 k_sigaction(signo, 0, (uintptr_t) old_act + 2); in main()
144 k_sigaction(signo, (uintptr_t) new_act, 0); in main()
156 k_sigaction(signo, (uintptr_t) new_act, (uintptr_t) old_act); in main()
169 k_sigaction(signo, (uintptr_t) new_act, (uintptr_t) old_act); in main()
[all …]
/external/strace/tests/
Dsigaction.c100 static const kernel_ulong_t signo = variable
116 if (k_sigaction(signo, 0, 0)) in main()
120 k_sigaction(signo, 0, 0); in main()
123 k_sigaction(signo, (uintptr_t) (new_act + 1), 0); in main()
127 k_sigaction(signo, (uintptr_t) new_act + 2, 0); in main()
131 k_sigaction(signo, 0, (uintptr_t) (old_act + 1)); in main()
135 k_sigaction(signo, 0, (uintptr_t) old_act + 2); in main()
144 k_sigaction(signo, (uintptr_t) new_act, 0); in main()
156 k_sigaction(signo, (uintptr_t) new_act, (uintptr_t) old_act); in main()
169 k_sigaction(signo, (uintptr_t) new_act, (uintptr_t) old_act); in main()
[all …]
Dqual_signal.c46 test_sig(int signo, const char *name) in test_sig() argument
50 if (sigaction(signo, &act, NULL)) in test_sig()
51 perror_msg_and_fail("sigaction: %d", signo); in test_sig()
55 sigaddset(&mask, signo); in test_sig()
57 perror_msg_and_fail("sigprocmask: %d", signo); in test_sig()
59 if (kill(pid, signo)) in test_sig()
60 perror_msg_and_fail("kill(%d, %d)", pid, signo); in test_sig()

12345678910>>...32