home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1999 February / MACPOWER-1999-02.ISO.7z / MACPOWER-1999-02.ISO / 9902⁄AMUG / UTILITY / mac06-0.95.sit / mac06-0.95 / usr / include / signal.h < prev    next >
Text File  |  1998-09-21  |  1KB  |  42 lines

  1. /* mac06ゥ1997,98 by HNS/DSITRI hns@computer.org
  2. ** signal.h
  3. */
  4.  
  5. #pragma once
  6.  
  7. typedef void (*__SIGFUNCP)(long);
  8.  
  9. #define SIG_DFL        ((__SIGFUNCP) 0)    /* default */
  10. #define SIG_ERR        ((__SIGFUNCP) -1)    /* error */
  11. #define SIG_IGN        ((__SIGFUNCP) 1)    /* ignore */
  12.  
  13. #define SIGHUP        1        /* connection to controlling terminal is lost */
  14. #define SIGINT        2        /* user interrupt */
  15. #define SIGQUIT        3        /* user quit */
  16. #define SIGABRT        SIGQUIT        /* user abort */
  17. #define SIGILL        4        /* illegal instruction */
  18. #define SIGTRAP        5        /* trap instruction */
  19. #define SIGIOT        6
  20. #define SIGEMT        7
  21. #define SIGFPE        8        /* floating point exception */
  22. #define SIGKILL        9        /* kill process */
  23. #define SIGBUS        10
  24. #define SIGSEGV        11        /* address error */
  25. #define SIGSYS        12        /* invalid system call argument */
  26. #define SIGPIPE        13        /* pipe reading process has terminated */
  27. #define SIGALRM        14        /* timeout of alarm() system call */
  28. #define SIGTERM        15        /* default request to terminate */
  29. #define SIGCHLD        16
  30. #define SIGCONT        17
  31. #define SIGSTOP        18
  32. #define SIGTSTP        19
  33. #define SIGTTIN        20
  34. #define SIGTTOU        21
  35. #define SIGUSR1        22
  36. #define SIGUSR2        23
  37.  
  38. int kill(int pid, int sig);
  39. #define raise(S) kill((S), getpid())
  40. __SIGFUNCP signal(int sig, __SIGFUNCP proc);
  41.  
  42. /* EOF */