Lines Matching defs:signals
38 signals[] = /* held inside critical region */
90 * op<0 return non-zero if any signals held in current region
92 * signals[] held until region popped
108 static Sig_handler_t handler[elementsof(signals)];
121 for (i = 0; i < elementsof(signals); i++)
122 if (op & signals[i].op)
123 sigaddset(&nmask, signals[i].sig);
128 for (i = 0; i < elementsof(signals); i++)
129 if (op & signals[i].op)
130 mask |= sigmask(signals[i].sig);
134 for (i = 0; i < elementsof(signals); i++)
135 if ((op & signals[i].op) && (handler[i] = signal(signals[i].sig, interrupt)) == SIG_IGN)
137 signal(signals[i].sig, handler[i]);
138 hold &= ~sigmask(signals[i].sig);
149 for (i = 0; i < elementsof(signals); i++)
150 if (region & signals[i].op)
152 if (sigismember(&nmask, signals[i].sig))
158 /* no way to get pending signals without installing handler */
181 for (i = 0; i < elementsof(signals); i++)
182 if (region & signals[i].op)
183 signal(signals[i].sig, handler[i]);
186 for (i = 0; i < elementsof(signals); i++)
187 if (region & signals[i].op)
189 if (hold & sigmask(signals[i].sig))
190 kill(getpid(), signals[i].sig);