• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/tcsh-65/tcsh/win32/

Lines Matching defs:signo

46 #define SIGBAD(signo)        ( (signo) <=0 || (signo) >=NSIG) 
114 int sigaddset(sigset_t *set, int signo) {
116 if (SIGBAD(signo)) {
120 *set |= 1 << (signo-1);
123 int sigdelset(sigset_t *set, int signo) {
124 if (SIGBAD(signo)) {
128 *set &= ~( 1 << (signo-1));
133 int sigismember(const sigset_t *set, int signo) {
134 if (SIGBAD(signo)) {
139 return ( (*set & (1 <<(signo-1)) ) != 0);
210 int sigaction(int signo, const struct sigaction *act, struct sigaction *oact) {
212 if (SIGBAD(signo)) {
218 oact->sa_handler = handlers[signo];
222 if ((signo == SIGHUP) && (act && (act->sa_handler == SIG_IGN))
226 handlers[signo]=act->sa_handler;
244 int generic_handler(DWORD signo) {
248 if (SIGBAD(signo) )
250 switch (signo) {
252 if (handlers[signo] != SIG_IGN){
253 if (fast_sigmember(&gBlockMask,signo) ) {
254 inc_pending(signo);
257 else if (handlers[signo] == SIG_DFL)
260 handlers[signo](signo);
264 if (handlers[signo] != SIG_IGN){
265 if (fast_sigmember(&gBlockMask,signo) ) {
266 inc_pending(signo);
269 else if (handlers[signo] == SIG_DFL)
272 handlers[signo](signo);
276 if (handlers[signo] != SIG_IGN){
277 if (fast_sigmember(&gBlockMask,signo) ) {
278 inc_pending(signo);
281 else if (handlers[signo] == SIG_DFL)
284 handlers[signo](signo);
288 if (handlers[signo] != SIG_IGN){
289 if (fast_sigmember(&gBlockMask,signo) ) {
290 inc_pending(signo);
293 else if (handlers[signo] == SIG_DFL)
296 handlers[signo](signo);
302 if (handlers[signo] != SIG_IGN){
303 if (fast_sigmember(&gBlockMask,signo) ) {
304 inc_pending(signo);
307 else if (handlers[signo] == SIG_DFL)
310 handlers[signo](signo);
316 if (handlers[signo] != SIG_IGN){
317 if (fast_sigmember(&gBlockMask,signo) ) {
318 inc_pending(signo);
321 else if (handlers[signo] == SIG_DFL)
324 handlers[signo](signo);
328 if (handlers[signo] != SIG_IGN){
329 if (fast_sigmember(&gBlockMask,signo) ) {
330 dprintf("inc pending for sig %d count %d\n",signo,
331 gPending[signo]);
332 inc_pending(signo);
335 else if (handlers[signo] != SIG_DFL)
336 handlers[signo](signo);