home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / ansi / signal.h < prev    next >
Text File  |  1991-06-14  |  892b  |  35 lines

  1. #ifndef _SIGNAL_H
  2. #define _SIGNAL_H
  3.  
  4. #ifndef __STRICT_BSD__
  5. typedef char sig_atomic_t;
  6. #define SIG_ERR        (void (*)())-1
  7. int raise(int sig);
  8. #endif /* __STRICT_BSD__ */
  9.  
  10. #ifdef __STRICT_ANSI__
  11. #define SIG_DFL        (void (*)())0
  12. #define SIG_IGN        (void (*)())1
  13.  
  14. #define SIGINT        2
  15. #define SIGILL        4
  16. #define SIGABRT        6
  17. #define SIGFPE        8
  18. #define SIGSEGV        11
  19. #define SIGTERM        15
  20.  
  21. void (*signal(int sig, void (*func)(int)))(int);
  22. #else
  23. /*
  24.  * note: this include file has been moved from this directory to the
  25.  * directory indicated by the include directive, below.  this file
  26.  * is present to preserve compatibility with previous system releases.
  27.  * unlike the bsd releases, symbolic links are not used to maintain
  28.  * compatibility because they would not preserve correct path searching
  29.  * with cpp when -i flags are present.
  30.  */
  31. #import <sys/signal.h>
  32. #endif /* __STRICT_ANSI__ */
  33.  
  34. #endif /* _SIGNAL_H */
  35.