• Home
  • Raw
  • Download

Lines Matching refs:signal

416 static int __sigaction(int signal, const SigactionType* new_action,  in __sigaction()  argument
428 if (signal <= 0 || signal >= _NSIG) { in __sigaction()
433 if (chains[signal].IsClaimed()) { in __sigaction()
434 SigactionType saved_action = chains[signal].GetAction<SigactionType>(); in __sigaction()
436 chains[signal].SetAction(new_action); in __sigaction()
446 return linked(signal, new_action, old_action); in __sigaction()
449 extern "C" int sigaction(int signal, const struct sigaction* new_action, in sigaction() argument
452 return __sigaction(signal, new_action, old_action, linked_sigaction); in sigaction()
456 extern "C" int sigaction64(int signal, const struct sigaction64* new_action, in sigaction64() argument
459 return __sigaction(signal, new_action, old_action, linked_sigaction64); in sigaction64()
463 extern "C" sighandler_t signal(int signo, sighandler_t handler) { in signal() function
499 return signal(signo, handler); in bsd_signal()
545 extern "C" void AddSpecialSignalHandlerFn(int signal, SigchainAction* sa) { in AddSpecialSignalHandlerFn() argument
548 if (signal <= 0 || signal >= _NSIG) { in AddSpecialSignalHandlerFn()
549 fatal("Invalid signal %d", signal); in AddSpecialSignalHandlerFn()
553 chains[signal].AddSpecialHandler(sa); in AddSpecialSignalHandlerFn()
554 chains[signal].Claim(signal); in AddSpecialSignalHandlerFn()
557 extern "C" void RemoveSpecialSignalHandlerFn(int signal, bool (*fn)(int, siginfo_t*, void*)) { in RemoveSpecialSignalHandlerFn() argument
560 if (signal <= 0 || signal >= _NSIG) { in RemoveSpecialSignalHandlerFn()
561 fatal("Invalid signal %d", signal); in RemoveSpecialSignalHandlerFn()
564 chains[signal].RemoveSpecialHandler(fn); in RemoveSpecialSignalHandlerFn()
567 extern "C" void EnsureFrontOfChain(int signal) { in EnsureFrontOfChain() argument
570 if (signal <= 0 || signal >= _NSIG) { in EnsureFrontOfChain()
571 fatal("Invalid signal %d", signal); in EnsureFrontOfChain()
577 linked_sigaction64(signal, nullptr, &current_action); in EnsureFrontOfChain()
580 linked_sigaction(signal, nullptr, &current_action); in EnsureFrontOfChain()
587 chains[signal].Register(signal); in EnsureFrontOfChain()