home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / NEWS / RADIANCE / SRC / COMMON / SIGNAL.H < prev    next >
C/C++ Source or Header  |  1993-10-07  |  2KB  |  56 lines

  1. /* Copyright (c) 1992 Regents of the University of California */
  2.  
  3. /* SCCSid "@(#)signal.h 2.1 9/6/92 LBL" */
  4.  
  5. /*
  6.  * Dummy signal definitions for non-UNIX systems
  7.  */
  8.  
  9. #ifdef NIX
  10.  
  11. #define NSIG    2
  12.  
  13. #define SIGHUP  1       /* hangup */
  14. #define SIGINT  1       /* interrupt */
  15. #define SIGQUIT 1       /* quit */
  16. #define SIGILL  1       /* illegal instruction (not reset when caught) */
  17. #define SIGTRAP 1       /* trace trap (not reset when caught) */
  18. #define SIGIOT  1       /* IOT instruction */
  19. #define SIGEMT  1       /* EMT instruction */
  20. #define SIGFPE  1       /* floating point exception */
  21. #define SIGKILL 1       /* kill (cannot be caught or ignored) */
  22. #define SIGBUS  1       /* bus error */
  23. #define SIGSEGV 1       /* segmentation violation */
  24. #define SIGSYS  1       /* bad argument to system call */
  25. #define SIGPIPE 1       /* write on a pipe with no one to read it */
  26. #define SIGALRM 1       /* alarm clock */
  27. #define SIGTERM 1       /* software termination signal from kill */
  28. #define SIGURG  1       /* urgent condition on IO channel */
  29. #define SIGCONT 1       /* continue a stopped process */
  30. #define SIGCHLD 1       /* to parent on child stop or exit */
  31. #define SIGTTIN 1       /* to readers pgrp upon background tty read */
  32. #define SIGTTOU 1       /* like TTIN for output if (tp->t_local<OSTOP) */
  33. #define SIGIO   1       /* input/output possible signal */
  34. #define SIGLOST 1       /* resource lost (eg, record-lock lost) */
  35.  
  36. #define BADSIG          (int (*)())-1
  37. #define SIG_DFL         (int (*)())0
  38. #define SIG_IGN         (int (*)())1
  39.  
  40. /*
  41.  * Macro for converting signal number to a mask suitable for sigblock().
  42.  */
  43. #define sigmask(m)      (1 << ((m)-1))
  44.  
  45. #define signal(n,f)     SIG_DFL
  46.  
  47. #define sigblock(m)     0
  48.  
  49. #define alarm(t)        0
  50.  
  51. #else
  52.  
  53. #include "/usr/include/signal.h"
  54.  
  55. #endif
  56.