1: #ifndef NSIG
   2: 
   3: #ifdef  MENLO_JCL
   4: #define NSIG    32
   5: #else
   6: #define NSIG    17
   7: #endif
   8: 
   9: #define SIGHUP  1   /* hangup */
  10: #define SIGINT  2   /* interrupt */
  11: #define SIGQUIT 3   /* quit */
  12: #define SIGILL  4   /* illegal instruction (not reset when caught) */
  13: #define SIGTRAP 5   /* trace trap (not reset when caught) */
  14: #define SIGIOT  6   /* IOT instruction */
  15: #define SIGEMT  7   /* EMT instruction */
  16: #define SIGFPE  8   /* floating point exception */
  17: #define SIGKILL 9   /* kill (cannot be caught or ignored) */
  18: #define SIGBUS  10  /* bus error */
  19: #define SIGSEGV 11  /* segmentation violation */
  20: #define SIGSYS  12  /* bad argument to system call */
  21: #define SIGPIPE 13  /* write on a pipe with no one to read it */
  22: #define SIGALRM 14  /* alarm clock */
  23: #define SIGTERM 15  /* software termination signal from kill */
  24: #ifdef  UCB_NET
  25: #define SIGURG  16  /* urgent condition on IO channel */
  26: #endif
  27: 
  28: 
  29: #ifdef  MENLO_JCL
  30: #define SIGSTOP 17  /* sendable stop signal not from tty */
  31: #define SIGTSTP 18  /* stop signal from tty */
  32: #define SIGCONT 19  /* continue a stopped process */
  33: #define SIGCHLD 20  /* to parent on child stop or exit */
  34: #define SIGTTIN 21  /* to readers pgrp upon background tty read */
  35: #define SIGTTOU 22  /* like TTIN for output if (tp->t_local&LTOSTOP) */
  36: #define SIGTINT 23  /* to pgrp on every input character if LINTRUP */
  37: #define SIGXCPU 24  /* exceeded CPU time limit */
  38: #define SIGXFSZ 25  /* exceeded file size limit */
  39: #endif
  40: 
  41: #ifndef KERNEL
  42: int (*signal())();
  43: #endif
  44: 
  45: #define BADSIG      (int (*)())-1
  46: #define SIG_DFL     (int (*)())0
  47: #define SIG_IGN     (int (*)())1
  48: 
  49: #ifdef  MENLO_JCL
  50: 
  51: #ifdef  KERNEL
  52: #define SIG_CATCH   (int (*)())2
  53: #endif
  54: #define SIG_HOLD    (int (*)())3
  55: 
  56: #define SIGISDEFER(x)   (((int)(x) & 1) != 0)
  57: #define SIGUNDEFER(x)   (int (*)())((int)(x) &~ 1)
  58: #define DEFERSIG(x) (int (*)())((int)(x) | 1)
  59: 
  60: #define SIGNUMMASK  0377        /* to extract pure signal number */
  61: #define SIGDOPAUSE  0400        /* do pause after setting action */
  62: #define SIGDORTI    01000       /* do ret+rti after setting action */
  63: #endif
  64: 
  65: #endif	NSIG

Defined macros

BADSIG defined in line 45; used 3 times
DEFERSIG defined in line 58; used 5 times
SIGALRM defined in line 22; used 95 times
SIGDOPAUSE defined in line 61; used 2 times
SIGDORTI defined in line 62; used 2 times
SIGHUP defined in line 9; used 144 times
SIGINT defined in line 10; used 421 times
SIGNUMMASK defined in line 60; used 2 times
SIGQUIT defined in line 11; used 134 times
SIGSTOP defined in line 30; used 5 times
SIGSYS defined in line 20; used 3 times
SIGTERM defined in line 23; used 95 times
SIGTINT defined in line 36; used 5 times
SIGUNDEFER defined in line 57; used 1 times
SIGURG defined in line 25; never used
SIGXCPU defined in line 37; never used
SIGXFSZ defined in line 38; never used
SIG_CATCH defined in line 52; used 1 times
SIG_DFL defined in line 46; used 128 times
SIG_IGN defined in line 47; used 486 times

Usage of this include

signal.h used 148 times
Last modified: 1983-08-28
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1146
Valid CSS Valid XHTML 1.0 Strict