Lines Matching refs:signal
338 static int __sigaction(int signal, const SigactionType* new_action, in __sigaction() argument
346 if (signal <= 0 || signal >= _NSIG) { in __sigaction()
351 if (chains[signal].IsClaimed()) { in __sigaction()
352 SigactionType saved_action = chains[signal].GetAction<SigactionType>(); in __sigaction()
354 chains[signal].SetAction(new_action); in __sigaction()
364 return linked(signal, new_action, old_action); in __sigaction()
367 extern "C" int sigaction(int signal, const struct sigaction* new_action, in sigaction() argument
370 return __sigaction(signal, new_action, old_action, linked_sigaction); in sigaction()
374 extern "C" int sigaction64(int signal, const struct sigaction64* new_action, in sigaction64() argument
377 return __sigaction(signal, new_action, old_action, linked_sigaction64); in sigaction64()
381 extern "C" sighandler_t signal(int signo, sighandler_t handler) { in signal() function
417 return signal(signo, handler); in bsd_signal()
463 extern "C" void AddSpecialSignalHandlerFn(int signal, SigchainAction* sa) { in AddSpecialSignalHandlerFn() argument
466 if (signal <= 0 || signal >= _NSIG) { in AddSpecialSignalHandlerFn()
467 fatal("Invalid signal %d", signal); in AddSpecialSignalHandlerFn()
471 chains[signal].AddSpecialHandler(sa); in AddSpecialSignalHandlerFn()
472 chains[signal].Claim(signal); in AddSpecialSignalHandlerFn()
475 extern "C" void RemoveSpecialSignalHandlerFn(int signal, bool (*fn)(int, siginfo_t*, void*)) { in RemoveSpecialSignalHandlerFn() argument
478 if (signal <= 0 || signal >= _NSIG) { in RemoveSpecialSignalHandlerFn()
479 fatal("Invalid signal %d", signal); in RemoveSpecialSignalHandlerFn()
482 chains[signal].RemoveSpecialHandler(fn); in RemoveSpecialSignalHandlerFn()
485 extern "C" void EnsureFrontOfChain(int signal) { in EnsureFrontOfChain() argument
488 if (signal <= 0 || signal >= _NSIG) { in EnsureFrontOfChain()
489 fatal("Invalid signal %d", signal); in EnsureFrontOfChain()
495 linked_sigaction64(signal, nullptr, ¤t_action); in EnsureFrontOfChain()
498 linked_sigaction(signal, nullptr, ¤t_action); in EnsureFrontOfChain()
505 chains[signal].Register(signal); in EnsureFrontOfChain()