Lines Matching refs:signal

355 static int __sigaction(int signal, const SigactionType* new_action,  in __sigaction()  argument
363 if (signal <= 0 || signal >= _NSIG) { in __sigaction()
368 if (chains[signal].IsClaimed()) { in __sigaction()
369 SigactionType saved_action = chains[signal].GetAction<SigactionType>(); in __sigaction()
371 chains[signal].SetAction(new_action); in __sigaction()
381 return linked(signal, new_action, old_action); in __sigaction()
384 extern "C" int sigaction(int signal, const struct sigaction* new_action, in sigaction() argument
387 return __sigaction(signal, new_action, old_action, linked_sigaction); in sigaction()
391 extern "C" int sigaction64(int signal, const struct sigaction64* new_action, in sigaction64() argument
394 return __sigaction(signal, new_action, old_action, linked_sigaction64); in sigaction64()
398 extern "C" sighandler_t signal(int signo, sighandler_t handler) { in signal() function
434 return signal(signo, handler); in bsd_signal()
480 extern "C" void AddSpecialSignalHandlerFn(int signal, SigchainAction* sa) { in AddSpecialSignalHandlerFn() argument
483 if (signal <= 0 || signal >= _NSIG) { in AddSpecialSignalHandlerFn()
484 fatal("Invalid signal %d", signal); in AddSpecialSignalHandlerFn()
488 chains[signal].AddSpecialHandler(sa); in AddSpecialSignalHandlerFn()
489 chains[signal].Claim(signal); in AddSpecialSignalHandlerFn()
492 extern "C" void RemoveSpecialSignalHandlerFn(int signal, bool (*fn)(int, siginfo_t*, void*)) { in RemoveSpecialSignalHandlerFn() argument
495 if (signal <= 0 || signal >= _NSIG) { in RemoveSpecialSignalHandlerFn()
496 fatal("Invalid signal %d", signal); in RemoveSpecialSignalHandlerFn()
499 chains[signal].RemoveSpecialHandler(fn); in RemoveSpecialSignalHandlerFn()
502 extern "C" void EnsureFrontOfChain(int signal) { in EnsureFrontOfChain() argument
505 if (signal <= 0 || signal >= _NSIG) { in EnsureFrontOfChain()
506 fatal("Invalid signal %d", signal); in EnsureFrontOfChain()
511 linked_sigaction(signal, nullptr, &current_action); in EnsureFrontOfChain()
517 chains[signal].Register(signal); in EnsureFrontOfChain()